Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.3.0
    • None
    • None

    Description

      Antlr v4 is also available but it does not support "->" which is widely used in our grammar. Antlr 3.5.2 is the latest v3 version. It will reduce the code size:

      Here is summary of current parser code size
      
      422345  HiveLexer.java
      2436601  HiveParser.java
      814184  HiveParser_FromClauseParser.java
      2705920  HiveParser_IdentifiersParser.java
      777665 HiveParser_SelectClauseParser.java
      
         After change, it will become
      
      319589 HiveLexer.java
      1853104 HiveParser.java
      574156 HiveParser_FromClauseParser.java
      1799195 HiveParser_IdentifiersParser.java
      587305 HiveParser_SelectClauseParser.java
      

      Attachments

        1. HIVE-14908.01.patch
          2 kB
          Pengcheng Xiong
        2. HIVE-14908.02.patch
          2 kB
          Pengcheng Xiong

        Activity

          People

            pxiong Pengcheng Xiong
            pxiong Pengcheng Xiong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: