Skip to content

[Python] Cython fails builds on some machines with a CResult[shared_ptr[const Foo]]] declaration #28629

@asfimport

Description

@asfimport

On the Conbench machines, the Cython code is failing to build:


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'

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.

Reporter: David Li / @lidavidm
Assignee: David Li / @lidavidm

PRs and other links:

Note: This issue was originally created as ARROW-12899. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions