lxy-9602 commented on code in PR #277:
URL: https://github.com/apache/paimon-cpp/pull/277#discussion_r3923003177
##########
include/paimon/table/source/plan.h:
##########
@@ -34,5 +35,13 @@ class PAIMON_EXPORT Plan {
virtual const std::vector<std::shared_ptr<Split>>& Splits() const = 0;
/// Snapshot id of this plan, return `std::nullopt` if the table is empty.
virtual std::optional<int64_t> SnapshotId() const = 0;
+ /// Immutable snapshot metadata used to build this plan.
+ ///
+ /// The returned view can be injected into a later batch scan to reuse the
already resolved and
+ /// parsed snapshot. Only non-streaming, non-real-time latest-snapshot
plans publish a reusable
+ /// view; other plans return `nullptr`.
+ virtual std::shared_ptr<const SnapshotReadView> GetSnapshotReadView()
const {
+ return nullptr;
+ }
Review Comment:
Thanks for your reply!
--
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]