js8544 opened a new issue, #15292:
URL: https://github.com/apache/arrow/issues/15292
### Describe the bug, including details regarding any error messages,
version, and platform.
All array classes have the `using TypeClass = xxx` type alias except for
ExtensionArray.
With the alias, it will be easier to write templated inline visitors such as
the following code block:
```Cpp
class ExampleVisitor {
public:
template <typename T>
Status Visit(const T& arr) {
if constexpr (arrow::is_number_type<typename T::TypeClass>::value) {
///
} else {
///
}
return Status::OK();
}
};
```
Current it fails to compile with message: `No type named 'TypeClass' in
'arrow::ExtensionArray'`.
### Component(s)
C++
--
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]