vinothchandar commented on a change in pull request #1848:
URL: https://github.com/apache/hudi/pull/1848#discussion_r466828072
##########
File path: hudi-spark/src/main/scala/org/apache/hudi/DefaultSource.scala
##########
@@ -132,11 +132,15 @@ class DefaultSource extends RelationProvider
log.info("Constructing hoodie (as parquet) data source with options :" +
optParams)
// simply return as a regular parquet relation
- DataSource.apply(
+ val relation = DataSource.apply(
sparkSession = sqlContext.sparkSession,
userSpecifiedSchema = Option(schema),
className = "parquet",
options = optParams)
.resolveRelation()
+
+
sqlContext.sparkContext.hadoopConfiguration.unset("mapreduce.input.pathFilter.class")
Review comment:
@bvaradar keeping this code actually. given now, we are adding support
for MOR snapshot query, if we don't unset this, then if you do a RO query and
then a snapshot query, then this will filter out all except latest base files.
which will be problematic.
cc @garyli1019 does this make sense? Let me see if I can add a test case
for this
----------------------------------------------------------------
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]