Skip to content

Commit 65cf5b1

Browse files
committed
[SPARK-48016][SQL][TESTS][FOLLOWUP] Update Java 21 golden file
### What changes were proposed in this pull request? This is a follow-up of SPARK-48016 to update the missed Java 21 golden file. - #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 #46313 from dongjoon-hyun/SPARK-48016. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 02206cd commit 65cf5b1

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed

sql/core/src/test/resources/sql-tests/results/try_arithmetic.sql.out.java21

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,22 @@ struct<try_add(2147483647, 1):int>
1515
NULL
1616

1717

18+
-- !query
19+
SELECT try_add(2147483647, decimal(1))
20+
-- !query schema
21+
struct<try_add(2147483647, 1):decimal(11,0)>
22+
-- !query output
23+
2147483648
24+
25+
26+
-- !query
27+
SELECT try_add(2147483647, "1")
28+
-- !query schema
29+
struct<try_add(2147483647, 1):double>
30+
-- !query output
31+
2.147483648E9
32+
33+
1834
-- !query
1935
SELECT try_add(-2147483648, -1)
2036
-- !query schema
@@ -249,6 +265,22 @@ struct<try_divide(1, (1.0 / 0.0)):decimal(16,9)>
249265
NULL
250266

251267

268+
-- !query
269+
SELECT try_divide(1, decimal(0))
270+
-- !query schema
271+
struct<try_divide(1, 0):decimal(12,11)>
272+
-- !query output
273+
NULL
274+
275+
276+
-- !query
277+
SELECT try_divide(1, "0")
278+
-- !query schema
279+
struct<try_divide(1, 0):double>
280+
-- !query output
281+
NULL
282+
283+
252284
-- !query
253285
SELECT try_divide(interval 2 year, 2)
254286
-- !query schema
@@ -313,6 +345,22 @@ struct<try_subtract(2147483647, -1):int>
313345
NULL
314346

315347

348+
-- !query
349+
SELECT try_subtract(2147483647, decimal(-1))
350+
-- !query schema
351+
struct<try_subtract(2147483647, -1):decimal(11,0)>
352+
-- !query output
353+
2147483648
354+
355+
356+
-- !query
357+
SELECT try_subtract(2147483647, "-1")
358+
-- !query schema
359+
struct<try_subtract(2147483647, -1):double>
360+
-- !query output
361+
2.147483648E9
362+
363+
316364
-- !query
317365
SELECT try_subtract(-2147483648, 1)
318366
-- !query schema
@@ -409,6 +457,22 @@ struct<try_multiply(2147483647, -2):int>
409457
NULL
410458

411459

460+
-- !query
461+
SELECT try_multiply(2147483647, decimal(-2))
462+
-- !query schema
463+
struct<try_multiply(2147483647, -2):decimal(21,0)>
464+
-- !query output
465+
-4294967294
466+
467+
468+
-- !query
469+
SELECT try_multiply(2147483647, "-2")
470+
-- !query schema
471+
struct<try_multiply(2147483647, -2):double>
472+
-- !query output
473+
-4.294967294E9
474+
475+
412476
-- !query
413477
SELECT try_multiply(-2147483648, 2)
414478
-- !query schema

0 commit comments

Comments
 (0)