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

Support ellipsis for selecting multiple columns

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • Query Processor
    • None

    Description

      Some UDF should take all columns starting from second or third one and in this case, star argument(HIVE-3490) cannot be used. It's not pleasant to specify all of them especially when the table has many of columns. For example,

      select some_udtf(a2,a3,a4,a5,a6) as (a2,a3,a4,a5,a6) from table;
      

      it can be simplified to

      select some_udtf(a2...) as (a2,a3,a4,a5,a6) from table;
      

      if HIVE-2608 would be committed, it can be simplified further

      select some_udtf(a2...) from table;
      

      Attachments

        1. HIVE-4204.D9549.4.patch
          32 kB
          Phabricator
        2. HIVE-4204.D9549.3.patch
          32 kB
          Phabricator
        3. HIVE-4204.D9549.2.patch
          31 kB
          Phabricator
        4. HIVE-4204.D9549.1.patch
          31 kB
          Phabricator

        Activity

          People

            navis Navis Ryu
            navis Navis Ryu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: