You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Alessandro Molina (Jira)" <ji...@apache.org> on 2021/05/18 17:05:00 UTC
[jira] [Commented] (ARROW-12825) [Python] PyArrow doesn't compile
on upcoming Cython version
[ https://issues.apache.org/jira/browse/ARROW-12825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347062#comment-17347062 ]
Alessandro Molina commented on ARROW-12825:
-------------------------------------------
Cross-Linking the related Cython issue -> https://github.com/cython/cython/issues/4171
> [Python] PyArrow doesn't compile on upcoming Cython version
> -----------------------------------------------------------
>
> Key: ARROW-12825
> URL: https://issues.apache.org/jira/browse/ARROW-12825
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Affects Versions: 4.0.0
> Reporter: Alessandro Molina
> Assignee: Alessandro Molina
> Priority: Minor
> Labels: pull-request-available
> Fix For: 5.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Trying to build PyArrow with the current master checkout of Cython results in some compile errors on {{for}} loops.
> {code}
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
> def column_types(self):
> """
> Explicitly map column names to column types.
> """
> d = {frombytes(item.first): pyarrow_wrap_data_type(item.second)
> for item in self.options.column_types}
> ^
> ------------------------------------------------------------
> pyarrow/_csv.pyx:491:25: Cannot assign type 'pair[string,shared_ptr[CDataType]]' to 'shared_ptr[CDataType]'
> {code}
> It seems that Cython is going to be less permissive about autodetecting type of iterated items, this can probably be fixed by explicitly declaring the types
--
This message was sent by Atlassian Jira
(v8.3.4#803005)