skywalker0618 commented on code in PR #20219:
URL: https://github.com/apache/hudi/pull/20219#discussion_r4250721664


##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/HiveQueryDDLExecutor.java:
##########
@@ -65,18 +65,23 @@ public class HiveQueryDDLExecutor extends 
QueryBasedDDLExecutor {
   // Owned by HoodieHiveSyncClient; close() is delegated through there. See
   // HiveMetaStoreClientPool javadoc for the usage contract (partition-row ops 
only).
   private final Option<HiveMetaStoreClientPool> metaStoreClientPool;
+  // Run on the calling thread before the session's Driver runs statements: 
its first statement
+  // sets up the session's authorization, which replaces the Hive instance 
cached for the thread.
+  private final Runnable beforeSessionStatements;
 
   public HiveQueryDDLExecutor(HiveSyncConfig config, IMetaStoreClient 
metaStoreClient) {
-    this(config, metaStoreClient, Option.empty(), Option.empty());
+    this(config, metaStoreClient, Option.empty(), Option.empty(), () -> { });
   }

Review Comment:
   Done



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

Reply via email to