[jira] [Commented] (FLINK-10323) A single backslash cannot be successfully parsed in Java Table API
[ https://issues.apache.org/jira/browse/FLINK-10323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16611894#comment-16611894 ] Xingcan Cui commented on FLINK-10323: - Yes, it seems to have been fixed and we even don't need to double the backslashes in SQL queries. Thanks for your work, [~twalthr] :-) > A single backslash cannot be successfully parsed in Java Table API > -- > > Key: FLINK-10323 > URL: https://issues.apache.org/jira/browse/FLINK-10323 > Project: Flink > Issue Type: Bug > Components: Table API & SQL >Affects Versions: 1.4.2, 1.5.3, 1.6.0 >Reporter: Xingcan Cui >Priority: Major > > The snippet below will cause a parser exception. > {code:java} > testAllApis( > concat_ws("~", "AA", "\\"), > "concat_ws('~','AA','\\')", > "concat_ws('~','AA','')", > "AA~\\") > {code} > {code} > org.apache.flink.table.api.ExpressionParserException: Could not parse > expression at column 20: Invalid expression. > concat_ws('~','AA','\') >^ > at > org.apache.flink.table.expressions.ExpressionParser$.throwError(ExpressionParser.scala:549) > at > org.apache.flink.table.expressions.ExpressionParser$.parseExpression(ExpressionParser.scala:542) > at > org.apache.flink.table.expressions.utils.ExpressionTestBase.addTableApiTestExpr(ExpressionTestBase.scala:255) > at > org.apache.flink.table.expressions.utils.ExpressionTestBase.testAllApis(ExpressionTestBase.scala:265) > at > org.apache.flink.table.expressions.ScalarFunctionsTest.testConcatWs(ScalarFunctionsTest.scala:340) > {code} > However, with double (or more) backslashes, it will be successfully parsed. > {code:java} > testAllApis( > concat_ws("~", "AA", ""), > "concat_ws('~','AA','')", > "concat_ws('~','AA','')", > "AA~") > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (FLINK-10323) A single backslash cannot be successfully parsed in Java Table API
[ https://issues.apache.org/jira/browse/FLINK-10323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16611878#comment-16611878 ] Xingcan Cui commented on FLINK-10323: - Thanks for your reminder [~twalthr]. I'll check it and close this issue if it has been addressed. > A single backslash cannot be successfully parsed in Java Table API > -- > > Key: FLINK-10323 > URL: https://issues.apache.org/jira/browse/FLINK-10323 > Project: Flink > Issue Type: Bug > Components: Table API & SQL >Affects Versions: 1.4.2, 1.5.3, 1.6.0 >Reporter: Xingcan Cui >Priority: Major > > The snippet below will cause a parser exception. > {code:java} > testAllApis( > concat_ws("~", "AA", "\\"), > "concat_ws('~','AA','\\')", > "concat_ws('~','AA','')", > "AA~\\") > {code} > {code} > org.apache.flink.table.api.ExpressionParserException: Could not parse > expression at column 20: Invalid expression. > concat_ws('~','AA','\') >^ > at > org.apache.flink.table.expressions.ExpressionParser$.throwError(ExpressionParser.scala:549) > at > org.apache.flink.table.expressions.ExpressionParser$.parseExpression(ExpressionParser.scala:542) > at > org.apache.flink.table.expressions.utils.ExpressionTestBase.addTableApiTestExpr(ExpressionTestBase.scala:255) > at > org.apache.flink.table.expressions.utils.ExpressionTestBase.testAllApis(ExpressionTestBase.scala:265) > at > org.apache.flink.table.expressions.ScalarFunctionsTest.testConcatWs(ScalarFunctionsTest.scala:340) > {code} > However, with double (or more) backslashes, it will be successfully parsed. > {code:java} > testAllApis( > concat_ws("~", "AA", ""), > "concat_ws('~','AA','')", > "concat_ws('~','AA','')", > "AA~") > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (FLINK-10323) A single backslash cannot be successfully parsed in Java Table API
[ https://issues.apache.org/jira/browse/FLINK-10323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16611867#comment-16611867 ] Timo Walther commented on FLINK-10323: -- [~xccui] does my PR also solve your issue? > A single backslash cannot be successfully parsed in Java Table API > -- > > Key: FLINK-10323 > URL: https://issues.apache.org/jira/browse/FLINK-10323 > Project: Flink > Issue Type: Bug > Components: Table API & SQL >Affects Versions: 1.4.2, 1.5.3, 1.6.0 >Reporter: Xingcan Cui >Priority: Major > > The snippet below will cause a parser exception. > {code:java} > testAllApis( > concat_ws("~", "AA", "\\"), > "concat_ws('~','AA','\\')", > "concat_ws('~','AA','')", > "AA~\\") > {code} > {code} > org.apache.flink.table.api.ExpressionParserException: Could not parse > expression at column 20: Invalid expression. > concat_ws('~','AA','\') >^ > at > org.apache.flink.table.expressions.ExpressionParser$.throwError(ExpressionParser.scala:549) > at > org.apache.flink.table.expressions.ExpressionParser$.parseExpression(ExpressionParser.scala:542) > at > org.apache.flink.table.expressions.utils.ExpressionTestBase.addTableApiTestExpr(ExpressionTestBase.scala:255) > at > org.apache.flink.table.expressions.utils.ExpressionTestBase.testAllApis(ExpressionTestBase.scala:265) > at > org.apache.flink.table.expressions.ScalarFunctionsTest.testConcatWs(ScalarFunctionsTest.scala:340) > {code} > However, with double (or more) backslashes, it will be successfully parsed. > {code:java} > testAllApis( > concat_ws("~", "AA", ""), > "concat_ws('~','AA','')", > "concat_ws('~','AA','')", > "AA~") > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)