[jira] [Updated] (HIVE-24949) Fail to rename a partition with customized catalog

2022-03-01 Thread Zhihua Deng (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-24949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhihua Deng updated HIVE-24949:
---
Fix Version/s: 4.0.0

> Fail to rename a partition with customized catalog
> --
>
> Key: HIVE-24949
> URL: https://issues.apache.org/jira/browse/HIVE-24949
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore, Standalone Metastore
>Affects Versions: 3.1.2
>Reporter: Yufei Gu
>Priority: Major
>  Labels: pull-request-available
> Fix For: 4.0.0
>
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> How to trigger it? 
>  1. Create a customized catalog in HMS 3.x
>  2. Run a sql like "ALTER TABLE student PARTITION (age='12') RENAME TO 
> PARTITION (age='15');"
> Error message:
> {code:java}
> spark-sql> ALTER TABLE student PARTITION (age='12') RENAME TO PARTITION 
> (age='15');
> Error in query: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to 
> rename partition. Unable to alter partition because table or database does 
> not exist.;
> {code}
> We can fix if by replacing {{DEFAULT_CATALOG_NAME}} with {{catName}} in the 
> following 
> line([https://github.com/apache/hive/blob/a00621b49657da3d14bcb20bf9e49fea10dc9273/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java#L604])
> {code:java}
>  Table tbl = msdb.getTable(DEFAULT_CATALOG_NAME, dbname, name, null);
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (HIVE-24949) Fail to rename a partition with customized catalog

2021-12-28 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-24949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated HIVE-24949:
--
Labels: pull-request-available  (was: )

> Fail to rename a partition with customized catalog
> --
>
> Key: HIVE-24949
> URL: https://issues.apache.org/jira/browse/HIVE-24949
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore, Standalone Metastore
>Affects Versions: 3.1.2
>Reporter: Yufei Gu
>Priority: Major
>  Labels: pull-request-available
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> How to trigger it? 
>  1. Create a customized catalog in HMS 3.x
>  2. Run a sql like "ALTER TABLE student PARTITION (age='12') RENAME TO 
> PARTITION (age='15');"
> Error message:
> {code:java}
> spark-sql> ALTER TABLE student PARTITION (age='12') RENAME TO PARTITION 
> (age='15');
> Error in query: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to 
> rename partition. Unable to alter partition because table or database does 
> not exist.;
> {code}
> We can fix if by replacing {{DEFAULT_CATALOG_NAME}} with {{catName}} in the 
> following 
> line([https://github.com/apache/hive/blob/a00621b49657da3d14bcb20bf9e49fea10dc9273/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java#L604])
> {code:java}
>  Table tbl = msdb.getTable(DEFAULT_CATALOG_NAME, dbname, name, null);
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (HIVE-24949) Fail to rename a partition with customized catalog

2021-03-26 Thread Yufei Gu (Jira)


 [ 
https://issues.apache.org/jira/browse/HIVE-24949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yufei Gu updated HIVE-24949:

Summary: Fail to rename a partition with customized catalog  (was: Renaming 
a partition with customized catalog failed)

> Fail to rename a partition with customized catalog
> --
>
> Key: HIVE-24949
> URL: https://issues.apache.org/jira/browse/HIVE-24949
> Project: Hive
>  Issue Type: Bug
>  Components: Metastore, Standalone Metastore
>Affects Versions: 3.1.2
>Reporter: Yufei Gu
>Priority: Major
>
> How to trigger it? 
>  1. Create a customized catalog in HMS 3.x
>  2. Run a sql like "ALTER TABLE student PARTITION (age='12') RENAME TO 
> PARTITION (age='15');"
> Error message:
> {code:java}
> spark-sql> ALTER TABLE student PARTITION (age='12') RENAME TO PARTITION 
> (age='15');
> Error in query: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to 
> rename partition. Unable to alter partition because table or database does 
> not exist.;
> {code}
> We can fix if by replacing {{DEFAULT_CATALOG_NAME}} with {{catName}} in the 
> following 
> line([https://github.com/apache/hive/blob/a00621b49657da3d14bcb20bf9e49fea10dc9273/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HiveAlterHandler.java#L604])
> {code:java}
>  Table tbl = msdb.getTable(DEFAULT_CATALOG_NAME, dbname, name, null);
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)