vinothchandar commented on a change in pull request #1460: [HUDI-679] Make io 
package Spark free
URL: https://github.com/apache/incubator-hudi/pull/1460#discussion_r399700184
 
 

 ##########
 File path: hudi-client/src/main/java/org/apache/hudi/io/HoodieWriteHandle.java
 ##########
 @@ -55,26 +55,27 @@
   protected final String partitionPath;
   protected final String fileId;
   protected final String writeToken;
+  protected final Suppliers suppliers;
 
   public HoodieWriteHandle(HoodieWriteConfig config, String instantTime, 
String partitionPath,
-                           String fileId, HoodieTable<T> hoodieTable) {
+                           String fileId, HoodieTable<T> hoodieTable, 
Suppliers suppliers) {
     super(config, instantTime, hoodieTable);
     this.partitionPath = partitionPath;
     this.fileId = fileId;
-    this.writeToken = makeSparkWriteToken();
     this.originalSchema = new Schema.Parser().parse(config.getSchema());
     this.writerSchema = createHoodieWriteSchema(originalSchema);
     this.timer = new HoodieTimer().startTimer();
     this.writeStatus = (WriteStatus) 
ReflectionUtils.loadClass(config.getWriteStatusClassName(),
         !hoodieTable.getIndex().isImplicitWithStorage(), 
config.getWriteStatusFailureFraction());
+    this.suppliers = suppliers;
+    this.writeToken = makeSparkWriteToken();
 
 Review comment:
   rename to just `makeWriteToken()`? 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to