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 16:25:00 UTC
[jira] [Created] (ARROW-12825) [Python] PyArrow doesn't compile on
upcoming Cython version
Alessandro Molina created ARROW-12825:
-----------------------------------------
Summary: [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
Fix For: 5.0.0
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)