Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-18

Parser has some breakage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • 0.4.0
    • None
    • None

    Description

      Hi, I wrote some codes for query parser. These diffs are aimed to pass test
      case of query parser, especially org.apache.drill.parsers.DrqlParserTest.
      To do that, I modified the DrqlAntlr.g and AntlrParser.java.

      • Add some rules (N_AGGREGATE_FUNCTION, aggregateFunc, ... )
      • Swap groupbyClause rule and havingCaluse rule in selectStatement
      • Modify some parsing routine in AntlrParser.java

      I think that the defined grammar still has some problems even if this diff
      is applied. Also, it is not important thing. However, you can pass test
      case

      Attachments

        1. DRILL-18.patch
          6 kB
          Ted Dunning

        Activity

          People

            Unassigned Unassigned
            tdunning Ted Dunning
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: