Skip to content

[Python][Dataset] Table equality check occasionally fails #23960

Description

@asfimport

Failing build https://dev.azure.com/ursa-labs/crossbow/_build/results?buildId=5843&view=logs&j=0da5d1d9-276d-5173-c4c4-9d4d4ed14fdb&t=6c939d89-0d1a-51f2-8b30-091a7a82e98c&l=265

    def _check_dataset_from_path(path, table, **kwargs):
        import pathlib
    
        # pathlib object
        assert isinstance(path, pathlib.Path)
        dataset = ds.dataset(ds.source(path, **kwargs))
        assert dataset.schema.equals(table.schema, check_metadata=False)
        result = dataset.to_table()
        assert result.replace_schema_metadata().equals(table)
    
        # string path
        dataset = ds.dataset(ds.source(str(path), **kwargs))
        assert dataset.schema.equals(table.schema, check_metadata=False)
        result = dataset.to_table()
>       assert result.replace_schema_metadata().equals(table)
E       AssertionError: assert False
E        +  where False = <built-in method equals of pyarrow.lib.Table object at 0x7fecacf0cab0>(pyarrow.Table\na: int64\nb: double)
E        +    where <built-in method equals of pyarrow.lib.Table object at 0x7fecacf0cab0> = pyarrow.Table\na: int64\nb: double.equals
E        +      where pyarrow.Table\na: int64\nb: double = <built-in method replace_schema_metadata of pyarrow.lib.Table object at 0x7fecacf0c990>()
E        +        where <built-in method replace_schema_metadata of pyarrow.lib.Table object at 0x7fecacf0c990> = pyarrow.Table\na: int64\nb: double\nmetadata\n--------\nOrderedDict([(b'ARROW:schema',\n              b'/////7AAAAAQAAAAAAAK...AAQAAAAAAAB'\n              b'AiQAAAAUAAAABAAAAAAAAAAIAAwACAAHAAgAAAAAAAABQAAAAAEAAABhAAAA'\n              b'AAAAAA==')]).replace_schema_metadata

Reporter: Krisztian Szucs / @kszucs
Assignee: Krisztian Szucs / @kszucs

PRs and other links:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions