Github user tillrohrmann commented on a diff in the pull request: https://github.com/apache/flink/pull/1821#discussion_r58029854 --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/api/table/expressions/ExpressionParser.scala --- @@ -59,6 +59,8 @@ object ExpressionParser extends JavaTokenParsers with PackratParsers { Literal(str.toInt) } else if (str.endsWith("f") | str.endsWith("F")) { Literal(str.toFloat) + } else if (str.endsWith(".")) { --- End diff -- Of course both are valid expressions but `1.` is simply not a valid number literal. Instead `1` would be valid. I guess you should change your grammar such that `1.abs()` will parsed into something like `functionApplication(NumberLiteral(1), abs)` and the `.` indicates the function application but is not part of the number literal token.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---