-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ARROW-8342: [Python] Continue to return dict from "metadata" properties accessing KeyValueMetadata #6855
Conversation
@github-actions crossbow submit test-conda-python-3.7-kartothek-latest test-conda-python-3.7-kartothek-master test-conda-python-3.7-dask-master test-conda-python-3.7-dask-latest |
@github-actions crossbow submit test-conda-python-3.7-kartothek-latest test-conda-python-3.7-kartothek-master test-conda-python-3.8-dask-master test-conda-python-3.7-dask-latest |
Revision: 612d2cb Submitted crossbow builds: ursa-labs/crossbow @ actions-79
|
The Karthothek tests failing with
Seems that the "ARROW_LARGER_EQ_0150" logic may not have triggered properly with this development build. @xhochy advice? |
Ah appears that the git tags aren't being fetched properly in the task
|
@kszucs could you take a look at this if you know the solution? |
You don't have the tags pushed to your fork. I'm updating the scripts to pass |
@wesm please push the tags to your fork then resubmit the builds. I'm working on the fix in a separate patch. |
I suggest reverting the original changes ( |
@pitrou In this patch the KeyValueMetadata object is no longer exposed publicly unless you go looking for it (it isn't accessible at all anymore on |
@github-actions crossbow submit test-conda-python-3.7-kartothek-latest test-conda-python-3.7-kartothek-master test-conda-python-3.8-dask-master test-conda-python-3.7-dask-latest |
Revision: b2efc83 Submitted crossbow builds: ursa-labs/crossbow @ actions-83
|
The failure in dask seems to suggest that we are still putting the wrong or duplicated pandas metadata in Now I think of it, in the long term, we should check with dask how to fix this issue, because if we have dataset writing, |
OK, looking, evidently there are no tests on our side to validate |
…and **kwargs method. Return dict from .metadata properties
@github-actions crossbow submit test-conda-python-3.8-dask-master test-conda-python-3.7-dask-latest |
@jorisvandenbossche there was a pesky bytes/unicode issue, fixed |
Revision: 32643e6 Submitted crossbow builds: ursa-labs/crossbow @ actions-86
|
+1 |
This patch relegates the KeyValueMetadata wrapper to an implementation detail, so existing third party code should be unaffected, and we can decide later when and how to expose this object publicly in the future without needing to revert the ARROW-8079.
I also fixed the change related to the "pandas" metadata key. Relatedly, I changed the KeyValueMetadata ctor to raise a KeyError if a use of the mixed-argument constructor (merging a prior object with some **kwargs) would create duplicate keys