fhueske commented on a change in pull request #6521: [FLINK-5315][table] Adding 
support for distinct operation for table API on DataStream
URL: https://github.com/apache/flink/pull/6521#discussion_r211226961
 
 

 ##########
 File path: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/expressions/ExpressionParser.scala
 ##########
 @@ -397,6 +403,11 @@ object ExpressionParser extends JavaTokenParsers with 
PackratParsers {
   lazy val prefixToTime: PackratParser[Expression] =
     TO_TIME ~ "(" ~> expression <~ ")" ^^ { e => Cast(e, SqlTimeTypeInfo.TIME) 
}
 
+  lazy val prefixDistinct: PackratParser[Expression] =
+    functionIdent ~ "." ~ "distinct" ~ "(" ~ repsep(expression, ",") ~ ")" ^^ {
 
 Review comment:
   use `DISTINCT` instead of `"distinct"`

----------------------------------------------------------------
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]


With regards,
Apache Git Services

Reply via email to