[jira] [Created] (FLINK-21968) Calcite parser doesn't support to parse "-- test"

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (FLINK-21968) Calcite parser doesn't support to parse "-- test"

Shang Yuanchun (Jira)
Shengkai Fang created FLINK-21968:
-------------------------------------

             Summary: Calcite parser doesn't support to parse "-- test"
                 Key: FLINK-21968
                 URL: https://issues.apache.org/jira/browse/FLINK-21968
             Project: Flink
          Issue Type: Bug
            Reporter: Shengkai Fang


Please add a test in the {{FlinkSqlParserImplTest.java}}.


{code:java}
    @Test
    public void testParseComment() {
        sql("-- test").ok("-- test");
    }
{code}


I think we can fix this by using regex to clear the string that matches "--.*$";




--
This message was sent by Atlassian Jira
(v8.3.4#803005)