Hive
  1. Hive
  2. HIVE-494

Select columns by index instead of name

    Details

    • Type: Wish Wish
    • Status: Patch Available
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Clients, Query Processor
    • Labels:

      Description

      SELECT mytable[0], mytable[2] FROM some_table_name mytable;

      ...should return the first and third columns, respectively, from mytable regardless of their column names.

      The need for "names" specifically is kind of silly when they just get translated into numbers anyway.

        Issue Links

          Activity

            People

            • Assignee:
              Navis
              Reporter:
              Adam Kramer
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:

                Development