Skip to content

Commit

Permalink
[SPARK-48016][SQL][TESTS][FOLLOWUP] Update Java 21 golden file
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

This is a follow-up of SPARK-48016 to update the missed Java 21 golden file.
- apache#46286

### Why are the changes needed?

To recover Java 21 CIs:
- https://github.com/apache/spark/actions/workflows/build_java21.yml
- https://github.com/apache/spark/actions/workflows/build_maven_java21.yml
- https://github.com/apache/spark/actions/workflows/build_maven_java21_macos14.yml

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

No.

### How was this patch tested?

Manual tests. I regenerated all in Java 21 and this was the only one affected.
```
$ SPARK_GENERATE_GOLDEN_FILES=1 build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite"
```

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

No.

Closes apache#46313 from dongjoon-hyun/SPARK-48016.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
  • Loading branch information
dongjoon-hyun committed May 1, 2024
1 parent 02206cd commit 65cf5b1
Showing 1 changed file with 64 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ struct<try_add(2147483647, 1):int>
NULL


-- !query
SELECT try_add(2147483647, decimal(1))
-- !query schema
struct<try_add(2147483647, 1):decimal(11,0)>
-- !query output
2147483648


-- !query
SELECT try_add(2147483647, "1")
-- !query schema
struct<try_add(2147483647, 1):double>
-- !query output
2.147483648E9


-- !query
SELECT try_add(-2147483648, -1)
-- !query schema
Expand Down Expand Up @@ -249,6 +265,22 @@ struct<try_divide(1, (1.0 / 0.0)):decimal(16,9)>
NULL


-- !query
SELECT try_divide(1, decimal(0))
-- !query schema
struct<try_divide(1, 0):decimal(12,11)>
-- !query output
NULL


-- !query
SELECT try_divide(1, "0")
-- !query schema
struct<try_divide(1, 0):double>
-- !query output
NULL


-- !query
SELECT try_divide(interval 2 year, 2)
-- !query schema
Expand Down Expand Up @@ -313,6 +345,22 @@ struct<try_subtract(2147483647, -1):int>
NULL


-- !query
SELECT try_subtract(2147483647, decimal(-1))
-- !query schema
struct<try_subtract(2147483647, -1):decimal(11,0)>
-- !query output
2147483648


-- !query
SELECT try_subtract(2147483647, "-1")
-- !query schema
struct<try_subtract(2147483647, -1):double>
-- !query output
2.147483648E9


-- !query
SELECT try_subtract(-2147483648, 1)
-- !query schema
Expand Down Expand Up @@ -409,6 +457,22 @@ struct<try_multiply(2147483647, -2):int>
NULL


-- !query
SELECT try_multiply(2147483647, decimal(-2))
-- !query schema
struct<try_multiply(2147483647, -2):decimal(21,0)>
-- !query output
-4294967294


-- !query
SELECT try_multiply(2147483647, "-2")
-- !query schema
struct<try_multiply(2147483647, -2):double>
-- !query output
-4.294967294E9


-- !query
SELECT try_multiply(-2147483648, 2)
-- !query schema
Expand Down

0 comments on commit 65cf5b1

Please sign in to comment.