Skip to content

[SPARK-56868][SQL][FOLLOW-UP] Clarify scaladoc for V2 runtime filter helpers#55958

Closed
szehon-ho wants to merge 3 commits into
apache:masterfrom
szehon-ho:spark-56868-cleanup
Closed

[SPARK-56868][SQL][FOLLOW-UP] Clarify scaladoc for V2 runtime filter helpers#55958
szehon-ho wants to merge 3 commits into
apache:masterfrom
szehon-ho:spark-56868-cleanup

Conversation

@szehon-ho
Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Clarify scaladoc for PushDownUtils.pushRuntimeFilters and PushDownUtils.replanWithRuntimeFilters introduced in SPARK-56868 (#55887):

  • Document the mutating-scan constraint on pushRuntimeFilters, where SupportsRuntimeV2Filtering.filter is invoked.
  • Replace the mixed Note/Precondition text on replanWithRuntimeFilters with a concise Notes bullet list.

Why are the changes needed?

The original helper scaladoc mixed concerns (execute-time requirements, caller caching, and preconditions) and referenced pushRuntimeFilters from the wrong method. This follow-up makes the documentation easier to read without changing behavior.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Documentation-only change; existing tests cover runtime filter behavior.

Was this patch authored or co-authored using generative AI tooling?

No.

…helpers

Move the mutating-scan note to pushRuntimeFilters and consolidate
replanWithRuntimeFilters preconditions into a Notes list.
szehon-ho added 2 commits May 18, 2026 14:27
…ithRuntimeFilters

Document that both original and re-planned splits must implement HasPartitionKey
on the KeyedPartitioning path.
@szehon-ho
Copy link
Copy Markdown
Member Author

@vitaliili-db @gengliangwang @cloud-fan does it make sense?

@cloud-fan
Copy link
Copy Markdown
Contributor

cc @peter-toth

@cloud-fan
Copy link
Copy Markdown
Contributor

thanks, merging to master/4.x!

@cloud-fan cloud-fan closed this in 992290b May 21, 2026
cloud-fan pushed a commit that referenced this pull request May 21, 2026
…helpers

### What changes were proposed in this pull request?

Clarify scaladoc for `PushDownUtils.pushRuntimeFilters` and `PushDownUtils.replanWithRuntimeFilters` introduced in [SPARK-56868](https://issues.apache.org/jira/browse/SPARK-56868) ([#55887](#55887)):

- Document the mutating-scan constraint on `pushRuntimeFilters`, where `SupportsRuntimeV2Filtering.filter` is invoked.
- Replace the mixed Note/Precondition text on `replanWithRuntimeFilters` with a concise Notes bullet list.

### Why are the changes needed?

The original helper scaladoc mixed concerns (execute-time requirements, caller caching, and preconditions) and referenced `pushRuntimeFilters` from the wrong method. This follow-up makes the documentation easier to read without changing behavior.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Documentation-only change; existing tests cover runtime filter behavior.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #55958 from szehon-ho/spark-56868-cleanup.

Authored-by: Szehon Ho <szehon.apache@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit 992290b)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@szehon-ho
Copy link
Copy Markdown
Member Author

thanks!

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