Skip to content

[data][4/n] Port V1 parquet followups into V2: shuffle, stub col, tensor check, local scheduling - #62785

Merged
goutamvenkat-anyscale merged 4 commits into
ray-project:masterfrom
goutamvenkat-anyscale:datasource-v2-parquet-followups
Apr 21, 2026
Merged

goutamvenkat-anyscale merged 4 commits into
ray-project:masterfrom
goutamvenkat-anyscale:datasource-v2-parquet-followups

Conversation

@goutamvenkat-anyscale

@goutamvenkat-anyscale goutamvenkat-anyscale commented Apr 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Followups from #62182

Basically this ports over remaining functionality from V1 parquet datasource.

Also not porting over block_udf. We will be deprecating that param in DatasourceV2, since it's only used in tests.

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@goutamvenkat-anyscale
goutamvenkat-anyscale requested a review from a team as a code owner April 20, 2026 21:33

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request implements file shuffling and block UDF support within the V2 datasource architecture. Key changes include adding a shuffle method to FileManifest, integrating shuffling into the FileScanner planning phase, and introducing a _transform_batch hook in FileReader to support per-batch transformations. Feedback focuses on ensuring compatibility when UDFs return non-Arrow formats (such as Pandas DataFrames) by suggesting that the _on_batch_read hook be executed before transformations and that BlockAccessor be used for robust schema inference in ParquetScanner.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 3914fcb. Configure here.

@goutamvenkat-anyscale goutamvenkat-anyscale changed the title [data][4/n] Port V1 parquet followups into V2: shuffle, block_udf, stub col, tensor check, local scheduling [data][4/n] Port V1 parquet followups into V2: shuffle, stub col, tensor check, local scheduling Apr 20, 2026
@goutamvenkat-anyscale goutamvenkat-anyscale added data Ray Data-related issues go add ONLY when ready to merge, run all tests labels Apr 20, 2026
@goutamvenkat-anyscale
goutamvenkat-anyscale merged commit 1831190 into ray-project:master Apr 21, 2026
3 checks passed
@goutamvenkat-anyscale
goutamvenkat-anyscale deleted the datasource-v2-parquet-followups branch April 21, 2026 22:01
HLDKNotFound pushed a commit to chichic21039/ray that referenced this pull request Apr 22, 2026
…sor check, local scheduling (ray-project#62785)

## Description
Followups from ray-project#62182

Basically this ports over remaining functionality from V1 parquet
datasource.

Also not porting over `block_udf`. We will be deprecating that param in
DatasourceV2, since it's only used in tests.

## Related issues
> Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to
ray-project#1234".

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

---------

Signed-off-by: Goutam <[email protected]>
Lucas61000 pushed a commit to Lucas61000/ray that referenced this pull request May 15, 2026
…sor check, local scheduling (ray-project#62785)

## Description
Followups from ray-project#62182

Basically this ports over remaining functionality from V1 parquet
datasource.

Also not porting over `block_udf`. We will be deprecating that param in
DatasourceV2, since it's only used in tests.

## Related issues
> Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to
ray-project#1234".

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

---------

Signed-off-by: Goutam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

2 participants