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

alter table drop partition should be compatible with old metastore, as partition pruner does

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: Metastore
    • Labels:
      None
    • Environment:

      all

    • Target Version/s:

      Description

          After the change of  HIVE-4914, we always push the partition expression to metastore, to avoid filtering partition by partition names.

          And HIVE-4914 added some protection in Partition pruner, in case that metastore may not have api of get_partitions_by_expr.

          Therefore, we should also add similar protection to another calling point, when dealing with "alter table drop partition".

        Attachments

        1. temp.diff
          6 kB
          jinzheng

          Activity

            People

            • Assignee:
              jinzheng jinzheng
              Reporter:
              jinzheng jinzheng
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified