Skip to content

Fix line length (>100), was failing scalastyle - #1695

Closed
mattf wants to merge 1 commit into
apache:masterfrom
mattf:master-2
Closed

mattf wants to merge 1 commit into
apache:masterfrom
mattf:master-2

Conversation

@mattf

@mattf mattf commented Jul 31, 2014

Copy link
Copy Markdown

No description provided.

@srowen

srowen commented Jul 31, 2014

Copy link
Copy Markdown
Member

Any of these fixes are fine, though there was already one: #1690

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@pwendell

Copy link
Copy Markdown
Contributor

Thanks for this but @srowen beat you to it by a few hours. Mind closing this issue?

@mattf

mattf commented Aug 1, 2014

Copy link
Copy Markdown
Author

no problem!

@mattf mattf closed this Aug 1, 2014
@mattf
mattf deleted the master-2 branch September 6, 2014 18:55
github-actions Bot pushed a commit to MaxGekk/spark that referenced this pull request Nov 25, 2026
… draw (apache#1695)

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

This makes the verdict of one `VarkaGroupingBoundSuite` test under `driverOutputTable=false` not depend on the draw. The test is "under the exact grouping no shape declines, and none falls back to the greedy grouping". It is renamed to "... except once for a composition under the unrolled driver", because that is now what it holds.

- The test excuses one fallback, and only for a coverage composition under the unrolled driver. Every other shape, and every other configuration, keeps the exact claim.
- The draw's seed can be set with `-Dvarka.groupingBound.seed`. The default stays 20261001.
- `sql/varka/matrix/skips.tsv`: the `methodByteBudget=0` line follows the rename. (The stale `driverOutputTable=false` line of the old name is already gone from master, with apache#1694.)
- Row 644 of `sql/varka/plans/m8/PLAN.md` is closed with the cause. `sql/varka/plans/m9/SCOPE.md` item 139 files the emitter change that would remove the fallback.

### Why are the changes needed?

The test draws 60 compositions from the coverage table with a fixed seed. So each new coverage row draws them again. Under `driverOutputTable=false` some draws fall back and some do not, so the option matrix failed the test or failed its skip line as stale.

The cause is this. The suite compiles each composition with the greedy grouping. When a class is over a limit for the whole class, the compiler cuts the projection to the largest prefix whose class fits. The unrolled driver grows with every output, so after the cut a wide composition's masked driver is a few bytes under the 8000-byte method budget. The exact grouping can take one group more than the greedy grouping to save ops. Each group adds a loop call and an epilogue call to the driver, 52 bytes. The unrolled driver cannot split into stages (`VarkaLoopEmitter` returns early from `resizeStages` when the driver is not a table). So the size loop's `fallBack` drops the exact grouping, and the greedy class fits.

Measured examples of the masked driver:

| Seed, composition | Outputs | Greedy: groups, bytes | Exact: groups, bytes |
|---|---|---|---|
| 4, 43 | 95 | 49, 7954 | 50, 8006 |
| 10, 55 | 100 | 46, 7991 | 47, 8043 |
| 12, 4 | 91 | 44, 7951 | 45, 8003 |

Seeds 23, 24 and 28 fall back in the same way: one group more, one fallback. Over 30 seeds (1,800 compositions), the defaults and `splitDriver=false` had no fallback. The driver from a table is about 20 bytes and 44 bytes a group, and it splits into stages, so there the driver never stops the exact grouping.

The excuse is safe at one. After the exact grouping is dropped, the size loop starts again on the greedy grouping's options, so it then takes the greedy grouping's path. The corpus shapes are not cut to the greedy driver, so they get no excuse. The excuse names the family, not a composition by its index, as row 644 asks.

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

No. It changes a test, the option matrix's skip list and the plans. The emitted classes do not change.

### How was this patch tested?

- `dev/varka_matrix.sh --module catalyst --config driverOutputTable=false --config splitDriver=false --suites VarkaGroupingBoundSuite`, which runs the defaults too: passes on the default seed and on seeds 4 and 10. Seeds 12, 23, 24 and 28: pass under `driverOutputTable=false`. Before the change, all six seeds failed under `driverOutputTable=false`.
- The same suite under `driverOutputTable=false` at `785367a44aa`, a head where composition 16 had fallen back: passes.
- The local gate (`pre-pr.sh`): the regeneration of generated files (nothing changed), lint-java, Error Prone, lint-scala, the invariant and proof suites, the push check and the arm sweep.
- `/code-review high`: 5 findings, all fixed in one round. The excuse was narrowed from every shape under both drivers that cannot split to one fallback for a composition under the unrolled driver. The seed became a property, and the row and item 139 name only what was observed.

Row 644's text conflicts with apache#1694's edit of the same row. Whichever merges second keeps both notes.

### 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.

4 participants