difin commented on code in PR #6449:
URL: https://github.com/apache/hive/pull/6449#discussion_r3314651694


##########
ql/src/java/org/apache/hadoop/hive/ql/ddl/view/create/CreateViewOperation.java:
##########
@@ -105,6 +114,25 @@ public int execute() throws HiveException {
     return 0;
   }
 
+  private void pushExternalLogicalViewSessionHints(boolean replace, boolean 
ifNotExists) {
+    SessionStateUtil.addResource(context.getConf(), 
Constants.EXTERNAL_LOGICAL_VIEW_DDL_REPLACE,
+        Boolean.toString(replace));
+    SessionStateUtil.addResource(context.getConf(), 
Constants.EXTERNAL_LOGICAL_VIEW_CREATE_IF_NOT_EXISTS,
+        Boolean.toString(ifNotExists));
+  }

Review Comment:
   The values of `replace` and `ifNotExists` are added to the session state 
because they are needed when creating a view using Iceberg API, which happens 
in `IcebergNativeLogicalViewSupport.createOrReplaceNativeView()`. This method 
is called from `HiveIcebergMetaHook` (when using HMS) or from 
`HiveRESTCatalogClient` (when using REST Catalog).



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