zzcclp commented on code in PR #5221:
URL: https://github.com/apache/incubator-gluten/pull/5221#discussion_r1549088356


##########
backends-clickhouse/src/main/scala/org/apache/spark/sql/execution/datasources/utils/MergeTreePartsPartitionsUtil.scala:
##########
@@ -55,6 +55,9 @@ object MergeTreePartsPartitionsUtil extends Logging {
     }
     val fileIndex = relation.location.asInstanceOf[TahoeFileIndex]
 
+    // when querying, use deltaLog.update(true) to get the staleness 
acceptable snapshot
+    val latestCommitTimestamp = table.deltaLog.update(true).timestamp

Review Comment:
   set `spark.databricks.delta.stalenessLimit` to non-zero, it will launch a 
thread to update the snapshot:
   
![image](https://github.com/apache/incubator-gluten/assets/9430290/21dd709b-ca3a-4c4f-92eb-74793a17fc26)
   



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to