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

[Datasets] Dataset.zip doesn't work if blocks have different types #31550

Closed
bveeramani opened this issue Jan 10, 2023 · 1 comment · Fixed by #43764 · May be fixed by #39960
Closed

[Datasets] Dataset.zip doesn't work if blocks have different types #31550

bveeramani opened this issue Jan 10, 2023 · 1 comment · Fixed by #43764 · May be fixed by #39960
Assignees
Labels
bug Something that is supposed to be working; but isn't data Ray Data-related issues P1 Issue that should be fixed within a few weeks ray 2.10 size:small usability

Comments

@bveeramani
Copy link
Member

What happened + What you expected to happen

Tried to zip two datasets, got:

(do_zip pid=52072) ValueError: Cannot zip <class 'ray.data._internal.pandas_block.PandasBlockAccessor'> with block of type <class 'pyarrow.lib.Table'>

Versions / Dependencies

Ray: 1012fbc

Reproduction script

import ray
import pandas as pd
df = pd.DataFrame({"spam": [0]})
ds1 = ray.data.from_pandas(df)
ds2 = ray.data.from_items([{"ham": [0]}])
ds1.zip(ds2)

Issue Severity

Medium: It is a significant difficulty but I can work around it.

@bveeramani bveeramani added bug Something that is supposed to be working; but isn't P1 Issue that should be fixed within a few weeks data Ray Data-related issues labels Jan 10, 2023
@anyscalesam anyscalesam added the ray 2.9 Issues targeting Ray 2.9 release (~Q4 CY2023) label Nov 2, 2023
@anyscalesam anyscalesam added ray 2.10 and removed ray 2.9 Issues targeting Ray 2.9 release (~Q4 CY2023) labels Nov 13, 2023
@anyscalesam
Copy link
Contributor

part of trend of aggregating Blocks of different type; for consideration as a larger project for ray210

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't data Ray Data-related issues P1 Issue that should be fixed within a few weeks ray 2.10 size:small usability
Projects
None yet
4 participants