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 18:12:15 UTC

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

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

 ##########
 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:
   should we just have `getSchemaProvider()` throw this as a HoodieRuntimeException? 

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