You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "Justin Swett (Jira)" <ji...@apache.org> on 2020/10/28 20:15:00 UTC

[jira] [Created] (CALCITE-4361) BigQuery comments starting with # cause SqlParseException

Justin Swett created CALCITE-4361:
-------------------------------------

             Summary: BigQuery comments starting with # cause SqlParseException
                 Key: CALCITE-4361
                 URL: https://issues.apache.org/jira/browse/CALCITE-4361
             Project: Calcite
          Issue Type: Bug
          Components: babel
            Reporter: Justin Swett


Unable to parse big query sql statements that use #.

 
{code:java}

@Test void testBigQueryHashtagComments(){
  final String s = "select * from \n" +
      "  (select 1 as foo)\n" +
      "  union all\n" +
      "  # (select 2)\n" +
      "  (select 3) # something useful to be said about this line";
  sql(s).withConformance(SqlConformanceEnum.BIG_QUERY).ok();
}
{code}
 

 



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