deniskuzZ commented on code in PR #5386:
URL: https://github.com/apache/hive/pull/5386#discussion_r1756786601
##########
ql/src/java/org/apache/hadoop/hive/ql/Driver.java:
##########
@@ -184,7 +186,17 @@ private void runInternal(String command, boolean
alreadyCompiled) throws Command
DriverUtils.checkInterrupted(driverState, driverContext, "at acquiring
the lock.", null, null);
lockAndRespond();
-
+ try {
+ context.getLoadTableOutputMap().forEach(
+ (ltd, we) -> {
+ HiveStorageHandler handler = we.getTable().getStorageHandler();
+ if (handler != null) {
+ handler.validateCurrentSnapshot(ltd.getTable());
+ }
+ });
+ } catch (ReCompileException ex) {
+ compileInternal(context.getCmd(), true);
Review Comment:
at this step we already acquired the locks, so we just need to update the
snapshot
--
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]