xiarixiaoyao commented on code in PR #6741:
URL: https://github.com/apache/hudi/pull/6741#discussion_r983176750


##########
hudi-hadoop-mr/src/main/java/org/apache/hudi/hadoop/realtime/AbstractRealtimeRecordReader.java:
##########
@@ -95,7 +97,7 @@ private boolean usesCustomPayload(HoodieTableMetaClient 
metaClient) {
 
   private void prepareHiveAvroSerializer() {
     try {
-      List<String> hiveInternalColumns = Arrays.asList(new String[] 
{"BLOCK__OFFSET__INSIDE__FILE", "INPUT__FILE__NAME", "ROW__ID"});
+      Set<String> hiveInternalColumns = new HashSet(Arrays.asList(new String[] 
{"BLOCK__OFFSET__INSIDE__FILE", "INPUT__FILE__NAME", "ROW__ID"}));

Review Comment:
   Thank you very much for your reminder, i think use writeSchema to filter 
virtualcolumns is more reasonable。 update the code



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to