yuzhaojing commented on code in PR #12642:
URL: https://github.com/apache/hudi/pull/12642#discussion_r1958984910


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala:
##########
@@ -350,6 +350,7 @@ abstract class HoodieBaseRelation(val sqlContext: 
SQLContext,
    * NOTE: DO NOT OVERRIDE THIS METHOD
    */
   override final def buildScan(requiredColumns: Array[String], filters: 
Array[Filter]): RDD[Row] = {
+    fileIndex.refresh()

Review Comment:
   This also needs to be refreshed. Since Spark will reuse relations for 
multiple queries on the same table, the creation during initialization is just 
the initial state. A refresh is required when it is actually used.



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