Skip to content

SPARK-1663. (Addendum) Fix signature of one version of JavaPairRDDStream.reduceByKeyAndWindow() - #633

Closed
srowen wants to merge 1 commit into
apache:masterfrom
srowen:SPARK-1663.2
Closed

srowen wants to merge 1 commit into
apache:masterfrom
srowen:SPARK-1663.2

Conversation

@srowen

@srowen srowen commented May 4, 2014

Copy link
Copy Markdown
Member

It appears that one of these methods doesn't use org.apache.spark.api.java.function.Function2 like all the others, but uses Scala's Function2.

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished.

@AmplabJenkins

Copy link
Copy Markdown

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14644/

@pwendell

pwendell commented May 4, 2014

Copy link
Copy Markdown
Contributor

Jenkins, retest this please.

@AmplabJenkins

Copy link
Copy Markdown

Merged build triggered.

@AmplabJenkins

Copy link
Copy Markdown

Merged build started.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. All automated tests passed.

@AmplabJenkins

Copy link
Copy Markdown

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14645/

@pwendell

pwendell commented May 4, 2014

Copy link
Copy Markdown
Contributor

Thanks for catching this @srowen, I've merged it.

asfgit pushed a commit that referenced this pull request May 4, 2014
…eam.reduceByKeyAndWindow()

It appears that one of these methods doesn't use `org.apache.spark.api.java.function.Function2` like all the others, but uses Scala's `Function2`.

Author: Sean Owen <sowen@cloudera.com>

Closes #633 from srowen/SPARK-1663.2 and squashes the following commits:

1e0232d [Sean Owen] Fix signature of one version of reduceByKeyAndWindow to use Java API Function2, as apparently intended
(cherry picked from commit 0088ced)

Signed-off-by: Patrick Wendell <pwendell@gmail.com>
@asfgit asfgit closed this in 0088ced May 4, 2014
@srowen
srowen deleted the SPARK-1663.2 branch May 4, 2014 20:43
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
…eam.reduceByKeyAndWindow()

It appears that one of these methods doesn't use `org.apache.spark.api.java.function.Function2` like all the others, but uses Scala's `Function2`.

Author: Sean Owen <sowen@cloudera.com>

Closes apache#633 from srowen/SPARK-1663.2 and squashes the following commits:

1e0232d [Sean Owen] Fix signature of one version of reduceByKeyAndWindow to use Java API Function2, as apparently intended
bzhaoopenstack pushed a commit to bzhaoopenstack/spark that referenced this pull request Sep 11, 2019
* fix conformance jobs cpo

Setting env variable as mentioned here
kubernetes/test-infra#14164 (comment)

* fix cpo conformance job
rshkv pushed a commit to rshkv/spark that referenced this pull request Feb 27, 2020
## What changes were proposed in this pull request?
Force `xz` to v1.8 to match `commons-compress`'s dependency on that version.

## How was this patch tested?
CI

## Notes
Rebased version of apache#633 to kick off CI
MaxGekk added a commit to MaxGekk/spark that referenced this pull request Oct 5, 2026
### What changes were proposed in this pull request?

A new task in milestone 7: row 288 in `sql/varka/plans/m7/PLAN.md` (the promotion section, 2.5), with its plan in `sql/varka/plans/m7/VARKA-288.md`. The task is a blog post that continues "[The 8000-byte cliff in Spark SQL](https://vecbricks.github.io/the-8000-byte-cliff/)".

- **The thread it closes.** The cliff post showed a large `CASE WHEN` inside a whole-stage stage stepping off the cliff (9433 bytes at 100 branches, about 6x slower). It listed SPARK-33301 as in review and offered `spark.sql.codegen.hugeMethodLimit=8000` as the workaround. apache#59225 fixes it.
- **The post's point.** Splitting costs 5-15% where a stage has no cliff, because C2 stops inlining partway through the chain of calls. So the stage decides per method: it compiles a trial, reads each method's size off the class, and splits only the methods past 8000 bytes. That is the counterpart of "[Under 8000 bytes by construction](https://vecbricks.github.io/under-8000-bytes-by-construction/)": Varka knows each size as it emits the method, while Spark can only measure.
- **What the record already holds.** The `CaseWhenCodegenBenchmark` results files on apache#59225's branch: 30-50x faster past the line, unchanged below it.
- **Two measurements before the draft, with registered predictions.**
  - The cliff post's workaround against the fix. Expected to time close to running with whole-stage codegen off, about 3x slower than the fix at 300 branches.
  - `-XX:+PrintInlining` evidence for why splitting always costs.
- **The outline.** About 1200-1500 words with two figures, building on the cliff post rather than repeating it.
- **Done when.** apache#59225 has merged and the post names the release that ships it. Both measurements are committed and scored, and the post is published. The three published posts also link to apache#59225 instead of apache#59069, the earlier pull request it replaced; that fix can land now.

### Why are the changes needed?

So that the fix gets its post. The cliff post told its readers this case was still open, and the sequel shows what changed, measured against the workaround the cliff post recommended.

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

No. Plan only.

### How was this patch tested?

`dev/varka_quote_check.py` is clean, and the Varka pre-commit check reports no findings.

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

Generated-by: Claude Code (Claude Opus 5.5)
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