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

[jira] [Updated] (ARROW-12899) [Python] Cython fails builds on some machines with a CResult[shared_ptr[const Foo]]] declaration

     [ https://issues.apache.org/jira/browse/ARROW-12899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Li updated ARROW-12899:
-----------------------------
    Summary: [Python] Cython fails builds on some machines with a CResult[shared_ptr[const Foo]]] declaration  (was: [Python] Work around Cython build failure )

> [Python] Cython fails builds on some machines with a CResult[shared_ptr[const Foo]]] declaration
> ------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-12899
>                 URL: https://issues.apache.org/jira/browse/ARROW-12899
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: David Li
>            Assignee: David Li
>            Priority: Major
>
> On the Conbench machines, the Cython code is failing to build:
> {noformat}
> Error compiling Cython file:
> ------------------------------------------------------------
> ...
>         @staticmethod
>         CStatus Open(const shared_ptr[CRandomAccessFile]& file,
>                      CMemoryPool* pool,
>                      unique_ptr[ORCFileReader]* reader)
>  
>         CResult[shared_ptr[const CKeyValueMetadata]] ReadMetadata()
>                                 ^
> ------------------------------------------------------------
>  
> pyarrow/_orc.pxd:42:33: Expected ']', found 'CKeyValueMetadata'{noformat}
> Cython appears not to like the {{CResult[shared_ptr[const CKeyValueMetadata]]]}}, though this seems to only happen on some machines, even if using the same Cython version. Declaring a Status-returning variant seems to work around it.



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