yihua commented on code in PR #11163:
URL: https://github.com/apache/hudi/pull/11163#discussion_r1594787897
##########
hudi-common/src/main/java/org/apache/hudi/io/storage/HoodieFileReaderFactory.java:
##########
@@ -46,14 +46,21 @@ public class HoodieFileReaderFactory {
public static HoodieFileReaderFactory
getReaderFactory(HoodieRecord.HoodieRecordType recordType) {
switch (recordType) {
case AVRO:
- return new HoodieAvroFileReaderFactory();
+
+ try {
+ Class<?> clazz =
+
ReflectionUtils.getClass("org.apache.hudi.io.storage.HoodieHadoopAvroFileReaderFactory");
Review Comment:
Looks like the `HoodieFileReaderFactory` and `HoodieFileWriterFactory` are
already the central station for creating all readers and writers. We can add
configs to control what `HoodieFileReaderFactory` and `HoodieFileWriterFactory`
to return, and the current `HoodieFileReaderFactory` is for Hadoop-based
implementation.
--
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]