Skip to content

[Docs][Python] Doctests for substrait.rst fail on release candidate tag #49745

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

The Python / AMD64 Conda Python 3.11 Sphinx & Numpydoc job fails with:

 =================================== FAILURES ===================================
___________________________ [doctest] substrait.rst ____________________________
052     b'\n\x01x\n\x01y\x12\x0c\n\x04*\x02\x10\x01\n\x04b\x02\x10\x01'
053 
054 In case arrow custom types were used, the schema will require
055 extensions for those types to be actually usable, for this reason
056 the schema is also available as an `Extended Expression`_ including
057 all the extensions types:
058 
059 .. code-block:: python
060 
061     >>> print(bytes(substrait_schema.expression))
Expected:
    b'"\x14\n\x01x\n\x01y\x12\x0c\n\x04*\x02\x10\x01\n\x04b\x02\x10\x01:\x19\x10,*\x15Acero ...'
Got:
    b'"\x14\n\x01x\n\x01y\x12\x0c\n\x04*\x02\x10\x01\n\x04b\x02\x10\x01:\x10\x10,*\x0cAcero 24.0.0'

When running on an RC, this seems to be due to the version number being smaller (not including snapshot) and the output not being truncated.

It's not a release blocker because the docs are correctly generated here: test-debian-13-docs
but something we could try to fix to avoid having red CI jobs on the RC.

Component(s)

Documentation, Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions