You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2019/11/05 19:14:17 UTC

[GitHub] [incubator-hudi] pratyakshsharma commented on a change in pull request #995: [HUDI-253]: added validations for schema provider class

pratyakshsharma commented on a change in pull request #995: [HUDI-253]: added validations for schema provider class
URL: https://github.com/apache/incubator-hudi/pull/995#discussion_r342747471
 
 

 ##########
 File path: hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/SourceFormatAdapter.java
 ##########
 @@ -92,6 +96,9 @@ public SourceFormatAdapter(Source source) {
         return ((RowSource) source).fetchNext(lastCkptStr, sourceLimit);
       case AVRO: {
         InputBatch<JavaRDD<GenericRecord>> r = ((AvroSource) source).fetchNext(lastCkptStr, sourceLimit);
+        if (r.getSchemaProvider() == null) {
 
 Review comment:
   makes sense! That makes the code much cleaner. Thank you for pointing this out. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services