You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Shengkai Fang (Jira)" <ji...@apache.org> on 2021/03/25 03:47:00 UTC

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

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)