You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by GitBox <gi...@apache.org> on 2023/01/10 12:38:35 UTC

[GitHub] [arrow] js8544 opened a new issue, #15292: [C++] Typeclass alias is missing in ExtensionArray

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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] pitrou closed issue #15292: [C++] Typeclass alias is missing in ExtensionArray

Posted by GitBox <gi...@apache.org>.
pitrou closed issue #15292: [C++] Typeclass alias is missing in ExtensionArray
URL: https://github.com/apache/arrow/issues/15292


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org