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

Do not require AS a,b,c part in LATERAL VIEW

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.12.0
    • Query Processor, UDF
    • None
    • Committed. Thanks Navis.

    Description

      Currently, it is required to state column names when LATERAL VIEW is used.
      That shouldn't be necessary, since UDTF returns struct which contains column names - and they should be used by default.

      For example, it would be great if this was possible:

      SELECT t.*, t.key1 + t.key4
      FROM some_table
      LATERAL VIEW JSON_TUPLE(json, 'key1', 'key2', 'key3', 'key3') t;

      Attachments

        1. HIVE-2608.D4317.8.patch
          19 kB
          Phabricator
        2. HIVE-2608.D4317.7.patch
          18 kB
          Phabricator
        3. HIVE-2608.8.patch.txt
          17 kB
          Edward Capriolo
        4. HIVE-2608.D4317.6.patch
          17 kB
          Phabricator
        5. HIVE-2608.D4317.5.patch
          17 kB
          Phabricator

        Issue Links

          Activity

            People

              navis Navis Ryu
              ikabiljo Igor Kabiljo
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: