File tree Expand file tree Collapse file tree
include/paimon/table/source
src/paimon/core/table/source Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ class PAIMON_EXPORT DataSplit : public Split {
7474 std::string ToString () const ;
7575 };
7676
77+ // / Get the bucket id of this data split.
78+ virtual int32_t Bucket () const = 0;
79+
7780 // / Get the list of metadata for all data files in this split.
7881 // / @note This method will be removed in future versions and is only used for append tables.
7982 virtual std::vector<SimpleDataFileMeta> GetFileList () const = 0;
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class DataSplitImpl : public DataSplit {
5151 return partition_;
5252 }
5353
54- int32_t Bucket () const {
54+ int32_t Bucket () const override {
5555 return bucket_;
5656 }
5757
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ class FallbackDataSplit : public DataSplit {
2727 FallbackDataSplit (const std::shared_ptr<DataSplit>& split, bool is_fallback)
2828 : is_fallback_(is_fallback), split_(split) {}
2929
30+ int32_t Bucket () const override {
31+ return split_->Bucket ();
32+ }
33+
3034 std::vector<SimpleDataFileMeta> GetFileList () const override {
3135 return split_->GetFileList ();
3236 }
You can’t perform that action at this time.
0 commit comments