Skip to content

SPARK-2766: ScalaReflectionSuite throw an llegalArgumentException in JDK 6 - #1683

Closed
witgo wants to merge 1 commit into
apache:masterfrom
witgo:SPARK-2766
Closed

witgo wants to merge 1 commit into
apache:masterfrom
witgo:SPARK-2766

Conversation

@witgo

@witgo witgo commented Jul 31, 2014

Copy link
Copy Markdown
Contributor

No description provided.

@srowen

srowen commented Jul 31, 2014

Copy link
Copy Markdown
Member

I looked this up just to confirm that it is a behavior change between Java 6 and 7, and indeed 6 was stricter:

http://docs.oracle.com/javase/6/docs/api/java/sql/Timestamp.html#valueOf(java.lang.String)
http://docs.oracle.com/javase/7/docs/api/java/sql/Timestamp.html#valueOf(java.lang.String)

+1

@pwendell

pwendell commented Aug 1, 2014

Copy link
Copy Markdown
Contributor

Jenkins, test this please.

@SparkQA

SparkQA commented Aug 1, 2014

Copy link
Copy Markdown

QA tests have started for PR 1683. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17619/consoleFull

@SparkQA

SparkQA commented Aug 1, 2014

Copy link
Copy Markdown

QA results for PR 1683:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17619/consoleFull

@witgo

witgo commented Aug 1, 2014

Copy link
Copy Markdown
Contributor Author

Jenkins, test this please.

@SparkQA

SparkQA commented Aug 1, 2014

Copy link
Copy Markdown

QA tests have started for PR 1683. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17625/consoleFull

@SparkQA

SparkQA commented Aug 1, 2014

Copy link
Copy Markdown

QA tests have started for PR 1683. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17626/consoleFull

@SparkQA

SparkQA commented Aug 1, 2014

Copy link
Copy Markdown

QA results for PR 1683:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17625/consoleFull

@SparkQA

SparkQA commented Aug 1, 2014

Copy link
Copy Markdown

QA results for PR 1683:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/17626/consoleFull

@asfgit asfgit closed this in 9998efa Aug 1, 2014
@witgo
witgo deleted the SPARK-2766 branch August 1, 2014 05:05
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
…JDK 6

Author: GuoQiang Li <witgo@qq.com>

Closes apache#1683 from witgo/SPARK-2766 and squashes the following commits:

d0db00c [GuoQiang Li] ScalaReflectionSuite  throw an llegalArgumentException in JDK 6
dongjoon-hyun added a commit that referenced this pull request Nov 2, 2026
### What changes were proposed in this pull request?

This PR aims to upgrade FasterXML Jackson to 2.22.4.

### Why are the changes needed?

Jackson 2.22.4 is the latest patch release on the 2.22 line.

- https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.22.4 (2026-10-17)
  - Streaming
    - [#1683](FasterXML/jackson-core#1683) `ReaderBasedJsonParser` accepts lone surrogates in `\uXXXX` escapes in field names
    - [#1744](FasterXML/jackson-core#1744) `UTF8DataInputJsonParser` fails on JSON-escaped surrogate pairs in property names
    - [#1750](FasterXML/jackson-core#1750) `ALLOW_UNESCAPED_CONTROL_CHARS` is ignored for single-quoted string values in UTF-8 byte parsers
    - [#1742](FasterXML/jackson-core#1742), [#1746](FasterXML/jackson-core#1746), [#1756](FasterXML/jackson-core#1756) Non-blocking parser fixes for escaped surrogate pairs, leading decimal point numbers, and multi-byte UTF-8 characters after a backslash escape
    - [#1730](FasterXML/jackson-core#1730) `FilteringGeneratorDelegate` handles embedded objects, typed arrays, and raw/binary values consistently
  - Databind
    - CVE-2026-110879 [#6287](FasterXML/jackson-databind#6287) Validate type parameters and array element types of type ids
    - [#6206](FasterXML/jackson-databind#6206) Report a cycle through a `JsonValue` accessor as a `DatabindException`
    - [#6227](FasterXML/jackson-databind#6227) `BeanDescription.findProperties()` is not thread-safe on a shared, cached instance
    - [#6249](FasterXML/jackson-databind#6249) Avoid an NPE when the parser reports `VALUE_STRING` with null text
  - CBOR
    - CVE-2026-106554 [#821](FasterXML/jackson-dataformats-binary#821) Grow the `CBORParser.TagList` backing array geometrically

`jackson-annotations` stays at 2.22 as referenced by `jackson-bom` 2.22.4.

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

No.

### How was this patch tested?

Pass the CIs.

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

Generated-by: Claude Sonnet 5.5

Closes #60004 from dongjoon-hyun/SPARK-60799.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
MaxGekk added a commit to MaxGekk/spark that referenced this pull request Nov 25, 2026
… kernel (apache#1683)

<!-- title: [VARKA-549] Check that every baseline section planned whole runs as a kernel -->
### What changes were proposed in this pull request?

Varka's baselines time each section on Spark's row path and with Varka on, and list how much of it Varka fuses. `requireBaseline` checked only the plan. But a Varka node decides per batch whether its kernel serves the batch, and a plan cannot show that.

- `VarkaSqlBenchmarkBase.requireKernel` runs a section once and fails unless its Varka nodes ran a kernel batch and handed none to another path. It names each node with its input batches, kernel batches and fallbacks.
- `requireBaseline` calls it on every section whose plan is `WHOLE`. The per-baseline copies are removed.
- With the fuse check lifted, a section that falls back is noted in the results file instead.
- The decimal baseline's two `IS NULL` filters over the columns with no null run with the in-memory scan's batch pruning off, so both arms read every row.

<details>
<summary>Design details, and the two IS NULL sections</summary>

The check keys on the plan's class, not the listed one.

A section that times a fallback on purpose is exempt through `timesFallback`.

The rounding baseline's `floor` and `ceil` over the wide columns are marked so.

The first run of the check failed the decimal baseline's `IS NULL` filter over a column with no null: the in-memory scan prunes every cached batch of that filter by its null count, so both arms had timed an empty scan since the sections were added.

`VARKA-359.md`'s measurement of the 128-bit lane pair names these sections, so they are kept: each runs with `spark.sql.inMemoryColumnarStorage.partitionPruning=false` on both sessions (`NO_PRUNING`), and both arms now scan the rows.

Their committed results time the empty scan, so a rerun of the decimal baseline is owed: `VarkaDecimalBaselineBenchmark` at 256 and 128 bits on an EPYC 7763, at least the sections `DECIMAL(38, 10) IS NULL filter, no nulls` and `DECIMAL(20, 2) IS NULL filter, no nulls`.

</details>

### Why are the changes needed?

A `WHOLE` section's "varka on" arm is meant to time a kernel. A batch the kernel hands back goes to the row path, so without this check that arm can time the row path under the kernel's label.

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

No. Benchmark and test code only.

### How was this patch tested?

On the laptop, at this head: `sql/testOnly *VarkaDecimalBaselineQueriesSuite` passed, 12 tests, the kept sections' kernel check included; before the last fixes the rounding baseline's suite passed too.

The full local gate (`~/varka-ops/pre-pr.sh`) passed on `f66ef5bfe91`. It merged master at `95a40cd8ef0`, and the regeneration changed nothing. Extra-gate (lint-java, Error Prone, lint-scala) passed, and so did the push check, at 646 counted lines. The arm sweep ran the twelve baseline queries suites with no failure: 36 passed at the defaults, and 15 passed with 21 cancelled under each of `useAVX=2` and `useAVX=3`.

CI is held at the owner's request. This PR is opened so its owed benchmarks can run on the runners. The CI Build and the option matrix run later.

<details>
<summary>Full test record</summary>

Before the rebase, on the laptop: the twelve fuse-check tests and the planted test of `*BaselineQueriesSuite` passed after the decimal fix.

Not run: the 24 dry runs of the plan's section 5, a CI Build and the option matrix.

</details>

### Review

`/code-review high` on the rebased branch found two important issues, both from master's new sections and both fixed: the rounding baseline's new loop built the old `Section`, and the decimal suite's type list. A second high review, after the sections were kept, found no important issue; two of its seven nits are fixed (the planted test's settings and its cancel under a lifted check). The review covers `c3c78403f93`. After it comes only the gate's master merge.

<details>
<summary>The nits left</summary>

- `VarkaIntegralDivisionBaselineBenchmark`, a thirteenth baseline from master, still uses its own `varkaFused` check.
- `ranAsKernel` does not count emission failures or warm-up batches as fallbacks.
- The lifted-check note reads "0 of 0 batches" on an empty scan.
- The rounding doc promises a fallback note that is not written today.

</details>

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