You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ap...@apache.org on 2022/07/11 16:03:32 UTC

[arrow] branch master updated: ARROW-17039: [C++] Partition schema() method is not const supported. (#13572)

This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new fc0cecdc3f ARROW-17039: [C++] Partition schema() method is not const supported. (#13572)
fc0cecdc3f is described below

commit fc0cecdc3f931c80e0d5e0b146cc15b130fec3dd
Author: Vibhatha Lakmal Abeykoon <vi...@users.noreply.github.com>
AuthorDate: Mon Jul 11 21:33:28 2022 +0530

    ARROW-17039: [C++] Partition schema() method is not const supported. (#13572)
    
    This is a trivial change but non-trivial in usage. The context is discussed in the JIRA.
    
    Authored-by: Vibhatha Abeykoon <vi...@gmail.com>
    Signed-off-by: Antoine Pitrou <an...@python.org>
---
 cpp/src/arrow/dataset/partition.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpp/src/arrow/dataset/partition.h b/cpp/src/arrow/dataset/partition.h
index cd225f1378..bffa2f979f 100644
--- a/cpp/src/arrow/dataset/partition.h
+++ b/cpp/src/arrow/dataset/partition.h
@@ -88,7 +88,7 @@ class ARROW_DS_EXPORT Partitioning {
   static std::shared_ptr<Partitioning> Default();
 
   /// \brief The partition schema.
-  const std::shared_ptr<Schema>& schema() { return schema_; }
+  const std::shared_ptr<Schema>& schema() const { return schema_; }
 
  protected:
   explicit Partitioning(std::shared_ptr<Schema> schema) : schema_(std::move(schema)) {}