sv2000 commented on a change in pull request #2714: let writer pass latest 
schema to WorkUnitState
URL: https://github.com/apache/incubator-gobblin/pull/2714#discussion_r314130838
 
 

 ##########
 File path: 
gobblin-core/src/main/java/org/apache/gobblin/writer/PartitionedDataWriter.java
 ##########
 @@ -97,7 +97,9 @@ public PartitionedDataWriter(DataWriterBuilder<S, D> 
builder, final State state)
     this.closer = Closer.create();
     this.writerBuilder = builder;
     this.controlMessageHandler = new PartitionDataWriterMessageHandler();
-    this.state.setProp(TASK_LATEST_SCHEMA, builder.getSchema());
+    if(builder.schema!=null) {
+      
this.state.setProp(AvroSerdeUtils.AvroTableProperties.SCHEMA_LITERAL.getPropName(),
 builder.getSchema());
 
 Review comment:
   maybe writer.latest.schema?

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