gaoqiangz commented on PR #1507: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1507#issuecomment-2466596855
I modified existing `Function` parsing,including a break change,because `JSON_OBJECT` support `FUNC(<expr> : <expr>)` syntax: ```sql DECLARE @id_key nvarchar(10) = N'id',@id_value nvarchar(64) = NEWID(); SELECT JSON_OBJECT(LOWER('USER_NAME') : USER_NAME(), LOWER(@id_key) : @id_value, 'sid':(SELECT @@SPID)); ``` Break change: ```rs pub enum FunctionArg { Named { name: Expr, // << arg: FunctionArgExpr, operator: FunctionArgOperator, }, Unnamed(FunctionArgExpr), } ``` Please take a look! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org