Skip to content

COMPAT: Upstream compat - #5056

Merged
TomAugspurger merged 19 commits into
dask:masterfrom
TomAugspurger:upstream-fixups
Jul 19, 2019
Merged

TomAugspurger merged 19 commits into
dask:masterfrom
TomAugspurger:upstream-fixups

Conversation

@TomAugspurger

@TomAugspurger TomAugspurger commented Jul 2, 2019 •

Copy link
Copy Markdown
Member

xref #4961

Doesn't quite fix them all. A few text failures related to compression.

@TomAugspurger

Copy link
Copy Markdown
Member Author

I have a couple things to follow up on

@jrbourbeau

Copy link
Copy Markdown
Member

I merged master into this branch as the fsspec work in #5064 should fix some of the test failures on Travis. Hope that's okay

@TomAugspurger

Copy link
Copy Markdown
Member Author

Thanks @jrbourbeau. I think this is getting close (and we're on a bit of a deadline, since the pandas release happened yesterday).

The remaining failures may just be compression related ones, like https://travis-ci.org/dask/dask/jobs/560820240#L2014. I can't reproduce those locally yet.

@TomAugspurger

Copy link
Copy Markdown
Member Author

At least some CI builds have started using pandas 0.25, so I'm probably going to merge this when CI passes (anyone have time for a quick glance over the changes? @jrbourbeau?).

I think that the upstream job will still be failing on the compression changes. I'll follow up with another PR finishing those off. But at least the CI will be passing again (upstream-dev is an allowed failure).

@jrbourbeau jrbourbeau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I gave this a quick review and generally things look good to me, thanks for working on this @TomAugspurger. The only change that looked curious to me was removing a is_dataframe_like check (attached review comment).

I saw you filed a few upstream issues related to some of the changes here (thanks for doing that!). Could you cross reference those issues here so there's a reference we can follow up on

Comment thread dask/dataframe/multi.py
for df in dfs:
# dtypes of all dfs need to be coherent
# refer to https://github.com/dask/dask/issues/4685
if is_dataframe_like(df):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we removing this is_dataframe_like check?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previously we did df.columns.intersection(DataFrame) which was just plain wrong. That always ended up in an empty shared so the .astype never occurred.

When I changed things to df.columns.interesction(meta.columns) to match the intent of the original code, I got failures with know & unknown categoricals.

@TomAugspurger

Copy link
Copy Markdown
Member Author

Thanks. Merging on green.

@TomAugspurger

Copy link
Copy Markdown
Member Author

@TomAugspurger
TomAugspurger merged commit 76af7b7 into dask:master Jul 19, 2019
@TomAugspurger
TomAugspurger deleted the upstream-fixups branch July 19, 2019 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants