felipecrv commented on code in PR #33641:
URL: https://github.com/apache/arrow/pull/33641#discussion_r1091312173
##########
cpp/src/arrow/type.h:
##########
@@ -1196,6 +1196,49 @@ class ARROW_EXPORT DenseUnionType : public UnionType {
std::string name() const override { return "dense_union"; }
};
+/// \brief Base class for types using a special-encoding (e.g.
run-end-encoding)
+///
+/// This allows users to check if arrays are logically compatible even when the
+/// physical encoding of the types differs.
+class ARROW_EXPORT EncodedType : public NestedType {
+ public:
+ EncodedType(Type::type id, std::shared_ptr<DataType> encoded_type)
+ : NestedType(id), encoded_type_{std::move(encoded_type)} {}
+
+ const std::shared_ptr<DataType>& encoded_type() const { return
encoded_type_; }
Review Comment:
Renamed to `value_type` everywhere. And `values_array()` is now just
`values()`.
--
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]