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

Hplsql.g4 - 'from_clause' parses the keyword `JOIN` into 'from_alias_clause' in 'from_table_clause' when parsing 'from_join_clause'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: CLI
    • Target Version/s:

      Description

      'from_clause' parses the keyword `JOIN` into 'from_alias_clause' in 'from_table_clause' when parsing 'from_join_clause'.

       

      example:

      Parse sql SELECT `k1, v1, k2, v2 FROM a JOIN b ON k1 = k2;`.

      Now grammar will parse `JOIN` as a `from_alias_clause`, but it should be
      a `from_join_clause`;

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Lleohao Hao Zhou
                Reporter:
                Lleohao Hao Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: