You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/12/23 12:58:06 UTC
[GitHub] [hudi] harsh1231 commented on a change in pull request #4353: [HUDI-2374] Fixing AvroDFSSource does not use the overridden schema t…
harsh1231 commented on a change in pull request #4353:
URL: https://github.com/apache/hudi/pull/4353#discussion_r774554053
##########
File path: hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/AvroDFSSource.java
##########
@@ -45,6 +45,7 @@
public AvroDFSSource(TypedProperties props, JavaSparkContext sparkContext, SparkSession sparkSession,
SchemaProvider schemaProvider) throws IOException {
super(props, sparkContext, sparkSession, schemaProvider);
+ sparkContext.hadoopConfiguration().set("avro.schema.input.key",schemaProvider.getSourceSchema().toString());
Review comment:
Fixed 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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org