From 16291013a1f7b2193ef442227871b15af0913adb Mon Sep 17 00:00:00 2001 From: Muhammad Faisal Date: Fri, 9 Aug 2024 14:25:16 -0700 Subject: [PATCH] Wiring up the column statistics returned from the `FileWriter` by allowing access to the footer in the `velox::dwrf::Writer`. (#10554) Summary: Pull Request resolved: https://github.com/facebookincubator/velox/pull/10554 The `FileWriter` now has a new getter for the footer. Reviewed By: Yuhta Differential Revision: D59924728 fbshipit-source-id: c0abd5cbb5ec75eb88e7c97b42414ec19032772e --- velox/dwio/dwrf/writer/Writer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/velox/dwio/dwrf/writer/Writer.h b/velox/dwio/dwrf/writer/Writer.h index 7e64ff62bb12..9dbe2252e0b3 100644 --- a/velox/dwio/dwrf/writer/Writer.h +++ b/velox/dwio/dwrf/writer/Writer.h @@ -132,6 +132,10 @@ class Writer : public dwio::common::Writer { return writerBase_->getContext(); } + const proto::Footer& getFooter() const { + return writerBase_->getFooter(); + } + WriterSink& getSink() { return writerBase_->getSink(); }