wzx140 commented on code in PR #5522:
URL: https://github.com/apache/hudi/pull/5522#discussion_r873408893


##########
hudi-common/src/main/java/org/apache/hudi/io/storage/HoodieParquetStreamWriter.java:
##########
@@ -52,11 +53,23 @@ public HoodieParquetStreamWriter(FSDataOutputStream 
outputStream,
         .build();
   }
 
-  public void writeAvro(String key, R object) throws IOException {
-    writer.write(object);
+  @Override
+  public boolean canWrite() {
+    return true;
+  }
+
+  @Override
+  public void writeAvro(String key, IndexedRecord record) throws IOException {
+    writer.write(record);
     writeSupport.add(key);
   }
 
+  @Override
+  public void writeAvroWithMetadata(HoodieKey key, IndexedRecord avroRecord) 
throws IOException {
+    // TODO support populating the metadata

Review Comment:
   HoodieParquetStreamWriter#writeAvroWithMetadata is not used in the code. We 
can implement later if we need it.



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