vinothchandar commented on a change in pull request #956: [HUDI-298] Fix issue
with incorrect column mapping casusing bad data, during on-the-fly merge of
Real Time tables
URL: https://github.com/apache/incubator-hudi/pull/956#discussion_r335118997
##########
File path:
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java
##########
@@ -209,6 +209,11 @@ public static Schema generateProjectionSchema(Schema
writeSchema, List<String> f
return projectedSchema;
}
+ public static Map<String, Field> getNameToFieldMap(Schema schema) {
+ return schema.getFields().stream().map(r ->
Pair.of(r.name().toLowerCase(), r))
Review comment:
do we need `toLowerCase()`. avro is case sensitive?
----------------------------------------------------------------
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