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

nonReserved keywords can not be used as table alias

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 0.12.0, 0.13.0, 0.13.1, 0.14.0
    • None
    • SQL
    • None

    Description

      There is a small mistake in the patch of issue HIVE-2906. See the change of FromClauseParser.g

      • : tabname=tableName (ts=tableSample)? (KW_AS? alias=identifier)?
      • -> ^(TOK_TABREF $tabname $ts? $alias?)
        + : tabname=tableName (props=tableProperties)? (ts=tableSample)? (KW_AS? alias=Identifier)?
        + -> ^(TOK_TABREF $tabname $props? $ts? $alias?)

      With the 'identifier' changed to 'Identifier' we can not use nonReserved keywords as table alias.

      Attachments

        1. HIVE-8466.1.patch
          0.7 kB
          Wan Chang
        2. HIVE-8466.2.patch.txt
          47 kB
          Navis Ryu
        3. HIVE-8466.3.patch.txt
          47 kB
          Navis Ryu

        Issue Links

          Activity

            People

              navis Navis Ryu
              wanchang Wan Chang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: