Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19715 Consolidated and flexible API for fetching partition metadata from HMS
  3. HIVE-23116

get_partition_with_specs does not use filter spec when projection is empty

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      The API implementation ignores the filter spec if the project spec is empty as seen here https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java#L3903

      if (fieldList == null || fieldList.isEmpty())

      { // no fields are requested. Fallback to regular getPartitions implementation to return all the fields return getPartitionsInternal(table.getCatName(), table.getDbName(), table.getTableName(), -1, true, true); }

       

       

      Attachments

        Activity

          People

            vihangk1 Vihang Karajgaonkar
            vihangk1 Vihang Karajgaonkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: