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

Change DataType to Collection or Set

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.0, 3.0.0
    • None
    • HiveServer2
    • None

    Description

      https://github.com/apache/hive/blob/9b36ffa92cc4e0f47ea03d8d167debe743342f5b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java

      Please change the signature of these methods to be Set or Collection

      public static List<String> getColumnNames*
      

      Often these calls are being used to get a list of columns, then searched through. It would be more performant (and database set-theory correct) if the returned data type was a Set and not a List. And they should probably be immutable collections returned as well.

      Attachments

        Activity

          People

            Unassigned Unassigned
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: