hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <>
Subject [jira] [Work logged] (HIVE-22826) ALTER TABLE RENAME COLUMN doesn't update list of bucketed column names
Date Fri, 02 Oct 2020 15:45:00 GMT


ASF GitHub Bot logged work on HIVE-22826:

                Author: ASF GitHub Bot
            Created on: 02/Oct/20 15:44
            Start Date: 02/Oct/20 15:44
    Worklog Time Spent: 10m 
      Work Description: ashish-kumar-sharma commented on a change in pull request #1528:

File path: standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/
@@ -130,6 +130,11 @@ public void alterTable(RawStore msdb, Warehouse wh, String catName, String
       throw new InvalidOperationException("Invalid column " + validate);
+    // Validate bucketedColumns in new table
+    if (!MetaStoreServerUtils.validateBucketColumns(newt.getSd())) {
+      throw new InvalidOperationException("Bucket column doesn't match with any table columns");

Review comment:
       1. Converted return type to List<String>.
   2. Added Log.error() along with column name.
   3. Added column to exception also. 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 494014)
    Time Spent: 2h  (was: 1h 50m)

>  ALTER TABLE RENAME COLUMN doesn't update list of bucketed column names
> -----------------------------------------------------------------------
>                 Key: HIVE-22826
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning
>    Affects Versions: 4.0.0
>            Reporter: Karen Coppage
>            Assignee: Ashish Sharma
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: unitTest.patch
>          Time Spent: 2h
>  Remaining Estimate: 0h
> Compaction for tables where a bucketed column has been renamed fails since the list of
bucketed columns in the StorageDescriptor doesn't get updated when the column is renamed,
therefore we can't recreate the table correctly during compaction.
> Attached a unit test that fails.

This message was sent by Atlassian Jira

View raw message