Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4361

BigQuery comments starting with # cause SqlParseException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: babel
    • Labels:
      None

      Description

      Unable to parse big query sql statements that use #.

       

      
      @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();
      }
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jswett Justin Swett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: