Hive
  1. Hive
  2. HIVE-7097

The Support for REGEX Column Broken in HIVE 0.13

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not A Problem
    • Affects Version/s: 0.13.0
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:
      None

      Description

      The Support for REGEX Column is OK in HIVE 0.12, but is broken in HIVE 0.13.
      For example:

      select `key.*` from src limit 1;
      

      will fail in HIVE 0.13 with the following error from SemanticAnalyzer:

      FAILED: SemanticException [Error 10004]: Line 1:7 Invalid table alias or column reference 'key.*': (possible column names are: key, value)
      

      This issue is related to HIVE-6037. When set "hive.support.quoted.identifiers=none", the issue will be gone.

      I am not sure the configuration was intended to break regex column. But at least the documentation needs to be updated: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Select#LanguageManualSelect-REGEXColumnSpecification

      I would argue backward compatibility is more important.

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Sun Rui
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development