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

Implement * or a.* for arguments to UDFs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • Query Processor, UDF
    • None
    • Reviewed

    Description

      For a random UDF, we should be able to use * or a.* to refer to "all of the columns in their natural order." This is not currently implemented.

      I'm reporting this as a bug because it is a manner in which Hive is inconsistent with the SQL spec, and because Hive claims to implement *.

      hive> select all_non_null(a.*) from table a where a.ds='2012-09-01';
      FAILED: ParseException line 1:25 mismatched input '*' expecting Identifier near '.' in expression specification

      Attachments

        1. HIVE-3490.D8889.2.patch
          18 kB
          Phabricator
        2. HIVE-3490.D8889.1.patch
          22 kB
          Phabricator

        Issue Links

          Activity

            People

              navis Navis Ryu
              akramer Adam Kramer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: