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

View partitions do not have a storage descriptor

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.0
    • Component/s: Metastore
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      Requires upgrade of the metadata corresponding to partitioned views. Please see the comments in metastore/scripts/upgrade/001-HIVE-2795.update_view_partitions.py for more information.
      Show
      Requires upgrade of the metadata corresponding to partitioned views. Please see the comments in metastore/scripts/upgrade/001- HIVE-2795 .update_view_partitions.py for more information.

      Description

      Besides being an inconsistency, it causes errors.

      Calling describe formatted on a view partition throws an exception

      java.lang.NullPointerException
      at org.apache.hadoop.hive.ql.metadata.Partition.getCols(Partition.java:505)
      at org.apache.hadoop.hive.ql.exec.DDLTask.describeTable(DDLTask.java:2570)

      because it does not have a column descriptor, which is part of the storage descriptor.

        Attachments

          Activity

            People

            • Assignee:
              kevinwilfong Kevin Wilfong
              Reporter:
              namit Namit Jain
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: