Repository navigation
Conversation
|
Merged build triggered. |
|
Merged build started. |
|
Merged build finished. All automated tests passed. |
|
All automated tests passed. |
Contributor
Author
|
Merging this in master. |
xiliu82
pushed a commit
to xiliu82/spark
that referenced
this pull request
Sep 4, 2014
Author: Reynold Xin <rxin@apache.org> Closes apache#1258 from rxin/mapOutputTracker and squashes the following commits: a7c95b6 [Reynold Xin] Improve MapOutputTracker error logging.
sunchao
pushed a commit
to sunchao/spark
that referenced
this pull request
Dec 8, 2021
mapr-devops
pushed a commit
to mapr/spark
that referenced
this pull request
May 8, 2025
github-actions Bot
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 2, 2026
…irst (apache#1258) ### What changes were proposed in this pull request? This PR extends the decimal baseline benchmark to the 64-bit decimal conditions and arithmetic Varka is about to fuse, timing Spark's row path before they fuse. It also makes the baselines' "does this section fuse?" check precise enough to tell a fused null test from a fused condition. Under the repository's rule, a change that speeds something up first merges a benchmark of the unchanged code, so the later change can be paired against it. **What it times.** `VarkaDecimalBaselineBenchmark` gains 36 sections after its existing 52, each with no nulls and with one row in ten null: - at `DECIMAL(9, 2)` and `DECIMAL(18, 4)`: `x < w` with `w` at another scale (common types `DECIMAL(11, 4)` and `DECIMAL(18, 4)`), `x IN (c1, c2, c3)`, `x <=> y`, `-x < y` and `abs(x) < y` as filters, and `x < y` as a projected value; - at `DECIMAL(9, 2)`: `x + y < z`, `x - w > 0` and `x8 * y < z` as filters (`x8` a `DECIMAL(8, 2)`), and `x + y`, `x - w` and `x8 * y` as projections. The table gains three columns after its existing ones, so the existing columns' values, and the existing sections' results, are unchanged. **Why the old check was not enough.** A baseline checks before timing that each section's plan fuses as listed, so a results file never silently times Varka instead of the row path. The flag was a boolean: fused when the plan held any Varka node. But from a filter over nullable columns, Spark's optimizer infers `x IS NOT NULL` conjuncts, and Varka already fuses those. Eighteen of the new sections plan as a Varka filter of null tests with the decimal condition still in Spark's row `Filter` above it. As booleans they had to be listed as fusing, and fusing the condition itself later would have moved no flag. **The fusion class.** `VarkaSqlBenchmarkBase` now classifies a plan as one of: - `NONE`: no Varka node; - `NULL_TESTS`: the only Varka nodes are filters of `IS NOT NULL` / `IS NULL` conjuncts, under row operators that do the rest; - `PARTIAL`: no row operator, but a Varka projection hands some of its entries back to the row path; - `WHOLE`: Varka nodes and no row operator evaluating any part of the section. A plan that fits none fails the check, and so does a Varka projection whose classification is empty. Every operator counts as row work except those that only move rows or batches: the cached scan, exchanges, column/row transitions, the whole-stage codegen wrappers, limits, unions, coalesces, and a projection that only passes columns through or renames them. Subqueries and reused exchanges are searched too. So a new operator fails the check rather than reading as fused. A Varka projection's classification is read from the node itself, so the check compiles nothing. Adaptive execution's wrappers are read through, to the plan it actually runs. The decimal baseline lists 12 sections `WHOLE`, 18 `NULL_TESTS` and 58 `NONE`. The six other baselines (floating, floating arithmetic, floating cast, integral cast, TIMESTAMP_NTZ and its arithmetic) move from the boolean to the class. Probing them showed every old `true` is `WHOLE` and every `false` is `NONE`, so none of their results files changes. The boolean overload is removed. **What checks it, in every build:** - `VarkaDecimalBaselineQueriesSuite` checks the new columns, the 88 result types, which side of each rescaled comparison is cast, the arithmetic filters' common types, and that no arithmetic operand over the null-free columns is null. It runs every section on both sessions. - A per-section test in each of the seven baseline suites asserts each section's class on the Varka session. It is tagged to run only at default options, since a matrix option can change how a section fuses. - The classifier has its own tests on built plans: a renaming row projection stays `WHOLE`, a computing one has no class, a forwarding Varka projection is `WHOLE`, a projection that leaves an entry is `PARTIAL`, and under adaptive execution a fused filter below an exchange is still seen. **Cost.** The decimal queries suite takes about 5 s more on the laptop (16 s from 11 s), under 1% of its CI step. A benchmark run grows by about 7 minutes per width on the runner. **Results** come from `benchmark.yml` on an AMD EPYC 7763 runner at 256 and 128 bits, committed to this branch as a follow-up commit with their provenance. ### Why are the changes needed? Varka is about to fuse the 64-bit decimal comparisons, negation, `abs`, rescaling and arithmetic. Without a committed measurement of today's row path on the same runner, that change could not show what it speeds up. And with a boolean fuse flag, the baseline could not tell whether a section's decimal condition or only its null tests ran in Varka, so it could not show the change at all. ### Does this PR introduce _any_ user-facing change? No. It changes test-only benchmarks and suites. Two Varka plan nodes make an existing private value visible inside the `sql` package for the check. ### How was this patch tested? - On the laptop: the seven baseline queries suites pass (decimal, floating, floating arithmetic, floating cast, integral cast, TIMESTAMP_NTZ and its arithmetic), and the boolean output suite, with the per-section class tests and the classifier's own tests. - A self-review (`/code-review high`, then medium rounds on the fixes) found and fixed: a classifier that missed row operators, subqueries and blind spots under adaptive execution; an empty classification read as `PARTIAL`; a kernel-batch check applied to sections that are not whole; a no-null check that never evaluated its operands; and missing per-build class checks. - The plan and quote checks, errorprone, lint-java and lint-scala are clean. The PR Build and the option matrix run on this head. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 5.5)
github-actions Bot
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 2, 2026
…apache#1290) ### What changes were proposed in this pull request? Master's sql/core test tree does not compile. `VarkaTimestampNtzFieldsBaselineBenchmark` (apache#1261) still passes its boolean `s.fuses()` to `VarkaSqlBenchmarkBase.requireBaseline`, but apache#1258 changed that parameter to the `Fusion` class (`NONE`, `NULL_TESTS`, `PARTIAL`, `WHOLE`). The two pull requests merged in the same batch and neither conflicted textually with the other. The call now passes `s.fuses() ? Fusion.WHOLE : Fusion.NONE`. A section of this benchmark fuses exactly when it is listed, and a listed one runs every batch as a kernel, so `WHOLE` and `NONE` keep the baseline's meaning. ### Why are the changes needed? Every branch that merges master fails to compile its sql/core tests until this lands. ### Does this PR introduce _any_ user-facing change? No. Test code only. ### How was this patch tested? The PR Build compiles and runs the sql/core tests on this head. The same one-line change compiles on the `varka-103-dt-expr` branch. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 5.5)
github-actions Bot
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 2, 2026
…pache#1295) ### What changes were proposed in this pull request? Adds row 548 to the milestone 8 plan (`sql/varka/plans/m8/PLAN.md`): two new rules for `dev/varka_lint.py`. - **`global-fault`:** a `static` field that is not `final`, in a class whose name holds `Fault`, under `sql/catalyst/src/main`. A test fault read during emission must belong to the compile that plants it. Otherwise a planted fault leaks into other compiles running in the same JVM, and a faulty kernel class can be cached under a clean shape key. The 128-bit decimal pair's review found its signed low-word fault doing exactly that and moved it into the emit options; `VarkaFloatingFault`'s `private static volatile` field on master has the same hazard. - **`arch-list`:** two or more of the literals `"amd64"`, `"x86_64"` and `"aarch64"` on one line outside `VarkaHostIsa`. The two-lane decline's review (apache#1262) found a test helper repeating `VarkaHostIsa`'s list of x86 `os.arch` names, which drifts from the compiler's host fact as soon as either list changes. A single literal, as a test's constructed host reading uses, still passes. The row also moves `VarkaFloatingFault` into the emit options, so master passes its own rule. **Done when** both rules report their planted cases in `--selftest`, `VarkaFloatingFault` holds no mutable static and its planted fault gets a shape key of its own, and the lint passes on master. Also in this pull request: - **Row 549**, small: every baseline benchmark section declared to fuse whole is checked at run time to run as a kernel. A Varka node can hand a batch back to the row path, and the existing check knows projections only, so the filter baselines (the decimal one among them, apache#1258) time a kernel nobody checked. The day-time baseline's `requireKernel` moves into `VarkaSqlBenchmarkBase` for every baseline. - **Row 550**, medium: kernels driven at the int lane or at a narrow lane load and store their epilogue with masked `BYTE` and `SHORT` operations, which C2 does not lower without AVX512BW, so on CI's AVX2 runners most batches run the Vector API's Java loop once. apache#1291 fixed this for long-lane kernels only. The width audit never saw it because its probe's 256 rows divide every lane count, so the row first makes the audit probe a row count no lane count divides. - **Scope item 129** in `m9/SCOPE.md`: build each pull request merged with current master before it merges. It is harness work outside milestone 8's type goals. - **`sql/varka/AGENTS.md`**: before pushing a change to emitted code, run the preferred-width width audit under `-XX:UseAVX=2`, since the laptop is AVX-512 and CI's runners are AVX2. ### Why are the changes needed? Both slips reached review more than once in two days. The fault one can make a test run give wrong answers depending on what else the JVM is compiling, and a line check catches both at commit time instead of in a review round. ### Does this PR introduce _any_ user-facing change? No. Plan documents and contributor notes only. ### How was this patch tested? The plan lint and the quote check pass on this head. The PR Build runs. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 5.5)
MaxGekk
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 2, 2026
…uses Master's apache#1258 gave each baseline section a Fusion class, set for master's code. This branch fuses the integral casts, so a probe of every section of VarkaIntegralCastBaselineBenchmark on it finds the LEGACY and ANSI narrowings, CAST(y AS BIGINT), CAST(b AS INT) and the filter's CAST(i AS BOOLEAN) WHOLE at both densities; the try_cast, CAST(m AS INTERVAL YEAR) and CAST(dt AS BIGINT) stay NONE. The benchmark declares those classes, the queries suite's list of fused titles follows them, and the benchmark's javadoc and VARKA-332.md 10.1 say which sections 332a fuses. Generated-by: Claude Code (Opus 5.5)
MaxGekk
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 2, 2026
VarkaRoundingBaselineBenchmark (apache#1257) passed its sections' boolean fuses flag to requireBaseline, whose last parameter became a Fusion class in apache#1240 and apache#1258 while apache#1257 was open. apache#1257's Build ran on its older base, so master has not compiled sql's tests since it merged. A row-path baseline lists no section as fusing, so each section expects NONE, and one a later row marks as fusing expects WHOLE. Generated-by: Claude Code (Opus 5.5) (cherry picked from commit cb56b26)
MaxGekk
pushed a commit
to MaxGekk/spark
that referenced
this pull request
Nov 7, 2026
…idth limit A code review of the plan found it written against a master that has moved. Rows 503 and 538 are merged (apache#1262, apache#1255), so the width rule's predicate is on master and the twin and the missing row are settled. The baseline figures quoted in 11.1 item 5 and in predictions 3 to 5 are requoted from the committed baseline files as apache#1258 left them, and the 128-bit note in 11.4 and 11.8 follows. The code line numbers of 11.1 item 1 are refreshed on master at 0b68202. Rule 2 of 11.3 now says it applies to widths of more than two long lanes, which is how 10.1's verdict already read it; the 128-bit columns, where A beats P by two to three times, are read under 11.4. The text says the owner has not confirmed that limit. 11.3's verdict stub points to 10.1, and 10.1 drops the unsupported claim about the JIT level and records that the canary ran once for the three widths and the 128-bit run started at load 1.60. Generated-by: Claude Code (Sonnet 5.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.