Skip to content

Commit

Permalink
PARQUET-2172: [C++] Change field return type to const NodePtr& (apach…
Browse files Browse the repository at this point in the history
…e#13865)

Authored-by: emkornfield <emkornfield@gmail.com>
Signed-off-by: Yibo Cai <yibo.cai@arm.com>
  • Loading branch information
emkornfield authored and ksuarez1423 committed Aug 15, 2022
1 parent 355e4a0 commit 74b6a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/parquet/schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class PARQUET_EXPORT GroupNode : public Node {

bool Equals(const Node* other) const override;

NodePtr field(int i) const { return fields_[i]; }
const NodePtr& field(int i) const { return fields_[i]; }
// Get the index of a field by its name, or negative value if not found.
// If several fields share the same name, it is unspecified which one
// is returned.
Expand Down

0 comments on commit 74b6a68

Please sign in to comment.