ayushtkn commented on code in PR #4437:
URL: https://github.com/apache/hive/pull/4437#discussion_r1234713570


##########
ql/src/java/org/apache/hadoop/hive/ql/HiveQueryLifeTimeHook.java:
##########
@@ -74,6 +75,15 @@ private void checkAndRollbackCTAS(QueryLifeTimeHookContext 
ctx) {
     PrivateHookContext pCtx = (PrivateHookContext) ctx.getHookContext();
     Path tblPath = pCtx.getContext().getLocation();
 
+    try {
+      FileSystem fs = FileSystem.get(conf);

Review Comment:
   this will give you the defaultFs, the one specified by fs.defaultFs, when 
using federation or multiple FS, in that case it can lead to "Wrong FS" errors.
   Do
   ```
   tblPath.getFileSystem(conf)
   ```



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to