delta-io/delta

[Kernel] Remove unecessary N.json loading for InCommitTimestamp value

開放

#4,914 建立於 2025年7月10日

 (3 則留言) (0 個反應) (0 位負責人)Scala (2,153 個分叉)batch import
good first issuekernel

倉庫指標

星標
 (8,939 顆星)
PR 合併指標
 (平均合併 7天 1小時) (30 天內合併 142 個 PR)

描述

Today, Kernel will issue a cloud read request to read the Snapshot's latest N.json file, in order to read the in-commit-timestamp value from the CommitInfo action.

We should be able to remove such a cloud call (in 99.99% of cases). The basis for this is the following:

  • To get a Snapshot, we must resolve the latest Protocol and Metadata
  • We can get the latest P & M in one of two ways
  • First, by reading a .crc file. If so, the ICT value should be in there. (If not, we have to make the N.json cloud request later on)
  • Second, by reading the delta log .json files until we find the latest P & M. Even if the latest P & M are found in the latest N.json file, when ICT is enabled we require that the CommitInfo action is the first action written into such a file -- so we can guarantee we find it either way

貢獻者指南