wangyum commented on issue #25114: [SPARK-28349][SQL] Add FALSE and SETMINUS to 
ansiNonReserved
URL: https://github.com/apache/spark/pull/25114#issuecomment-513070211
 
 
   or add a 
[regular_id](https://github.com/antlr/grammars-v4/blob/b7f5b6d8c4da4d45d3dcb8146df310b89cd58114/plsql/PlSqlParser.g4#L4569-L4644)?
 Some UDFs are also not available in ansi mode:
   ```sql
   spark-sql> select left('12345', 2);
   12
   spark-sql> set spark.sql.parser.ansi.enabled=true;
   spark.sql.parser.ansi.enabled        true
   spark-sql> select left('12345', 2);
   Error in query:
   no viable alternative at input 'left'(line 1, pos 7)
   
   == SQL ==
   select left('12345', 2)
   -------^^^
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to