[ 
https://issues.apache.org/jira/browse/FLINK-10463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16657797#comment-16657797
 ] 

ASF GitHub Bot commented on FLINK-10463:
----------------------------------------

xccui commented on a change in pull request #6888: [FLINK-10463][table] Null 
literal cannot be properly parsed in Java Table API function call
URL: https://github.com/apache/flink/pull/6888#discussion_r226821436
 
 

 ##########
 File path: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/expressions/ExpressionParser.scala
 ##########
 @@ -455,7 +455,7 @@ object ExpressionParser extends JavaTokenParsers with 
PackratParsers {
 
   // suffix/prefix composite
 
-  lazy val composite: PackratParser[Expression] = over | nullLiteral | 
suffixed | prefixed | atom |
+  lazy val composite: PackratParser[Expression] = over | suffixed | 
nullLiteral | prefixed | atom |
 
 Review comment:
   This is documented in the TableAPI.md page. Update it correspondingly?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Null literal cannot be properly parsed in Java Table API function call
> ----------------------------------------------------------------------
>
>                 Key: FLINK-10463
>                 URL: https://issues.apache.org/jira/browse/FLINK-10463
>             Project: Flink
>          Issue Type: Bug
>          Components: Table API & SQL
>            Reporter: Xingcan Cui
>            Assignee: Hequn Cheng
>            Priority: Major
>              Labels: pull-request-available
>
> For example, the expression `Null(STRING).regexpReplace('oo|ar', '')` throws 
> the following exception.
> {code:java}
> org.apache.flink.table.api.ExpressionParserException: Could not parse 
> expression at column 13: string matching regex 
> `(?i)\Qas\E(?![_$\p{javaJavaIdentifierPart}])' expected but `.' found
> Null(STRING).regexpReplace('oo|ar', '')
>             ^
>       at 
> org.apache.flink.table.expressions.ExpressionParser$.throwError(ExpressionParser.scala:576)
>       at 
> org.apache.flink.table.expressions.ExpressionParser$.parseExpression(ExpressionParser.scala:569)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to