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/27 08:09:00 UTC
[jira] [Closed] (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:all-tabpanel ]
Alessandro Molina closed ARROW-12825.
-------------------------------------
Fix Version/s: (was: 5.0.0)
Resolution: Won't Fix
> [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
> Time Spent: 50m
> 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)