Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-416

Get rid of backtrack in Hive.g

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • Query Processor
    • None
    • Reviewed

    Description

      Hive.g now still uses "backtrack=true". "backtrack" not only slows down the parsing in case of error, it can also produce wrong syntax error messages (usually based on the last try of the backtracking).

      We should follow http://www.antlr.org/wiki/display/ANTLR3/How+to+remove+global+backtracking+from+your+grammar to remove the need of doing backtrack.

      Attachments

        1. HIVE-416.1.patch
          4 kB
          Zheng Shao
        2. HIVE-416.1.1.patch
          7 kB
          Zheng Shao
        3. HIVE-416.1.2.patch
          7 kB
          Zheng Shao
        4. HIVE-416.1.2.branch-0.3.patch
          7 kB
          Zheng Shao

        Issue Links

          Activity

            People

              zshao Zheng Shao
              zshao Zheng Shao
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: