bvaradar commented on a change in pull request #674: MOR read query fixes and 
performance improvement
URL: https://github.com/apache/incubator-hudi/pull/674#discussion_r283454741
 
 

 ##########
 File path: 
hoodie-hadoop-mr/src/main/java/com/uber/hoodie/hadoop/realtime/AbstractRealtimeRecordReader.java
 ##########
 @@ -323,13 +340,21 @@ private static Schema addPartitionFields(Schema schema, 
List<String> partitionin
    * the base split was written.
    */
   private void init() throws IOException {
-    writerSchema = new AvroSchemaConverter().convert(baseFileSchema);
-    List<String> fieldNames = 
writerSchema.getFields().stream().map(Field::name).collect(Collectors.toList());
+    Schema schemaFromLogFile = null;
+    HoodieTableMetaClient metaClient = new HoodieTableMetaClient(jobConf, 
split.getBasePath());
+    HoodieTimeline completedTimeline = 
metaClient.getActiveTimeline().getCommitsTimeline()
 
 Review comment:
   Move this whole logic including readSchemaFromLogFile to a utility class. It 
can be usable for CLI too. 

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