Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
asfimport opened this issue Jan 29, 2020 · 1 comment
Closed

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

asfimport opened this issue Jan 29, 2020 · 1 comment

Comments

@asfimport
Copy link

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.

@asfimport
Copy link
Author

Antoine Pitrou / @pitrou:
Issue resolved by pull request 6319
#6319

@asfimport asfimport added this to the 0.16.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants