You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "binmahone (via GitHub)" <gi...@apache.org> on 2024/04/01 02:32:08 UTC

Re: [PR] [GLUTEN-5219][CH]Fix the table metadata sync issue for the CH backend [incubator-gluten]

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


##########
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:
   will this impact perf benchmark ? need perf result



-- 
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@gluten.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org