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


##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergSerDe.java:
##########
@@ -130,13 +131,14 @@ public void initialize(@Nullable Configuration 
configuration, Properties serDePr
       }
     }
 
-    this.projectedSchema = projectedSchema(configuration, 
serDeProperties.getProperty(Catalogs.NAME), tableSchema);
+    this.projectedSchema =
+        projectedSchema(configuration, 
serDeProperties.getProperty(Catalogs.NAME), tableSchema, jobConfs);
 
     // Currently ClusteredWriter is used which requires that records are 
ordered by partition keys.
     // Here we ensure that SortedDynPartitionOptimizer will kick in and do the 
sorting.
     // TODO: remove once we have both Fanout and ClusteredWriter available: 
HIVE-25948
-    HiveConf.setIntVar(configuration, 
HiveConf.ConfVars.HIVEOPTSORTDYNAMICPARTITIONTHRESHOLD, 1);
-    HiveConf.setVar(configuration, HiveConf.ConfVars.DYNAMICPARTITIONINGMODE, 
"nonstrict");
+    
jobConfs.put(HiveConf.ConfVars.HIVEOPTSORTDYNAMICPARTITIONTHRESHOLD.varname, 
"1");
+    jobConfs.put(HiveConf.ConfVars.DYNAMICPARTITIONINGMODE.varname, 
"nonstrict");

Review Comment:
   I don't think there is any problem there, the caller isn't explicitly 
passing, it is {{SessionState.getSessionConf()}}, and ideally the values which 
we are setting aren't of any use to session & all other SerDe use it as a 
Read-Only configuration.



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