zhuangchong commented on code in PR #1833:
URL: https://github.com/apache/incubator-paimon/pull/1833#discussion_r1296869000
##########
paimon-hive/paimon-hive-catalog/src/main/java/org/apache/paimon/hive/HiveCatalog.java:
##########
@@ -358,9 +358,28 @@ public void renameTable(Identifier fromTable, Identifier
toTable, boolean ignore
try {
checkIdentifierUpperCase(toTable);
+
+ // Rename the file system's table directory. Maintain consistency
between tables in the
+ // file system and tables in the Hive Metastore.
+ Path fromPath = getDataTableLocation(fromTable);
+ Path toPath = getDataTableLocation(toTable);
+ try {
+ fileIO.rename(fromPath, toPath);
Review Comment:
The version of hive used by the user is 3.1.3. After the rename operation,
the location of the new table has not changed, and it points to the original
path.
<img width="773" alt="465A537E-183E-4543-8F47-061B0E581173"
src="https://github.com/apache/incubator-paimon/assets/37063904/bdbdd8c1-d651-43ec-bc33-c44cbe44e212">
<img width="357" alt="B79371E6-AAB0-4fbb-8AD6-555E8818C8C3"
src="https://github.com/apache/incubator-paimon/assets/37063904/99e6c2a9-fdac-458c-b337-656c36f724b6">
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]