This is an automated email from the ASF dual-hosted git repository.
yangjie01 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new ad32d690d609 [SPARK-52400][SQL][TESTS][FOLLOWUP] Regenerate
`nonansi/try_arithmetic.sql.out` for Java 21
ad32d690d609 is described below
commit ad32d690d6095a6bacb694ac3f198bd2bad74c78
Author: yangjie01 <[email protected]>
AuthorDate: Sat Jun 7 22:14:25 2025 +0800
[SPARK-52400][SQL][TESTS][FOLLOWUP] Regenerate
`nonansi/try_arithmetic.sql.out` for Java 21
### What changes were proposed in this pull request?
This pr aims to regenerate `nonansi/try_arithmetic.sql.out.java21` for Java
21
### Why are the changes needed?
To restore Java 21 daily test:
- https://github.com/apache/spark/actions/runs/15482545651/job/43590926620

- https://github.com/apache/spark/actions/runs/15482545651/job/43590924259

### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
- Pass Github Actions
- Manually checked `SQLQueryTestSuite` and `ThriftServerQueryTestSuite`
using Java 21 with this pr
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #51104 from LuciferYang/try_arithmetic_sql_out_java21.
Authored-by: yangjie01 <[email protected]>
Signed-off-by: yangjie01 <[email protected]>
---
.../results/nonansi/try_arithmetic.sql.out.java21 | 32 ++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git
a/sql/core/src/test/resources/sql-tests/results/nonansi/try_arithmetic.sql.out.java21
b/sql/core/src/test/resources/sql-tests/results/nonansi/try_arithmetic.sql.out.java21
index 002a0dfcf37e..b3f78b5a4a8a 100644
---
a/sql/core/src/test/resources/sql-tests/results/nonansi/try_arithmetic.sql.out.java21
+++
b/sql/core/src/test/resources/sql-tests/results/nonansi/try_arithmetic.sql.out.java21
@@ -79,6 +79,14 @@ struct<try_add(1, (1.0 / 0.0)):decimal(9,6)>
NULL
+-- !query
+SELECT try_add(sum(1), 1) GROUP BY ALL
+-- !query schema
+struct<try_add(sum(1), 1):bigint>
+-- !query output
+2
+
+
-- !query
SELECT try_add(date'2021-01-01', 1)
-- !query schema
@@ -281,6 +289,14 @@ struct<try_divide(1, 0):double>
NULL
+-- !query
+SELECT try_divide(sum(1), 1) GROUP BY ALL
+-- !query schema
+struct<try_divide(sum(1), 1):double>
+-- !query output
+1.0
+
+
-- !query
SELECT try_divide(interval 2 year, 2)
-- !query schema
@@ -409,6 +425,14 @@ struct<try_subtract(1, (1.0 / 0.0)):decimal(9,6)>
NULL
+-- !query
+SELECT try_subtract(sum(1), 1) GROUP BY ALL
+-- !query schema
+struct<try_subtract(sum(1), 1):bigint>
+-- !query output
+0
+
+
-- !query
SELECT try_subtract(interval 2 year, interval 3 year)
-- !query schema
@@ -521,6 +545,14 @@ struct<try_multiply(1, (1.0 / 0.0)):decimal(10,6)>
NULL
+-- !query
+SELECT try_multiply(sum(1), 1) GROUP BY ALL
+-- !query schema
+struct<try_multiply(sum(1), 1):bigint>
+-- !query output
+1
+
+
-- !query
SELECT try_multiply(interval 2 year, 2)
-- !query schema
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]