You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ian Cook (Jira)" <ji...@apache.org> on 2021/05/14 00:50:00 UTC

[jira] [Commented] (ARROW-12788) [C++] arrow::compute::Expression::type_id() function

    [ https://issues.apache.org/jira/browse/ARROW-12788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17344203#comment-17344203 ] 

Ian Cook commented on ARROW-12788:
----------------------------------

Oh, I see, it's trivial to get this: just  {{type()->id()}} 

> [C++] arrow::compute::Expression::type_id() function
> ----------------------------------------------------
>
>                 Key: ARROW-12788
>                 URL: https://issues.apache.org/jira/browse/ARROW-12788
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Ian Cook
>            Assignee: Ian Cook
>            Priority: Major
>
> There is a function {{type()}} that returns the type of a post-bind {{Expression}} as a {{std::shared_ptr<arrow::DataType>}}:
>  [https://github.com/apache/arrow/blob/master/cpp/src/arrow/compute/exec/expression.h#L105]
> It would be convenient to also have a function {{type_id()}} that returns this as an {{arrow::Type::type}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)