Hive
  1. Hive
  2. HIVE-2795

View partitions do not have a storage descriptor

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

        Activity

        Ashutosh Chauhan made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Carl Steinbach made changes -
        Release Note 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.
        Carl Steinbach made changes -
        Fix Version/s 0.9.0 [ 12317742 ]
        Component/s Metastore [ 12312584 ]
        Namit Jain made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Phabricator made changes -
        Attachment HIVE-2795.D1683.3.patch [ 12514066 ]
        Phabricator made changes -
        Attachment HIVE-2795.D1683.2.patch [ 12514033 ]
        Kevin Wilfong made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Phabricator made changes -
        Attachment HIVE-2795.D1683.1.patch [ 12514030 ]
        Kevin Wilfong made changes -
        Field Original Value New Value
        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.
        Namit Jain created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development