Skip to content

Commit 2ce4bec

Browse files
LuciferYangKimahriman
authored andcommitted
[SPARK-51937][SQL][TESTS] Re-generate golden files of postgreSQL/float4.sql and postgreSQL/int8.sql for Java 21
### What changes were proposed in this pull request? This pr aims to Re-generate golden files of `postgreSQL/float4.sql` and `postgreSQL/int8.sql` for Java 21. apache#50604 forgot to generate them. ### Why are the changes needed? Restore Java 21 daily test: - master: https://github.com/apache/spark/actions/runs/14699959163/job/41247643789 - branch-4.0: https://github.com/apache/spark/actions/runs/14700610338/job/41249373892 ![image](https://github.com/user-attachments/assets/4bfe3b14-d5a8-4428-928b-8a2e94287bb0) ![image](https://github.com/user-attachments/assets/ab725b03-2da6-4460-8cc7-759806965fbd) ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass Github Actions - locally test with Java 21 ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#50740 from LuciferYang/SPARK-51817-FOLLOWUP. Authored-by: yangjie01 <[email protected]> Signed-off-by: yangjie01 <[email protected]>
1 parent a503859 commit 2ce4bec

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ org.apache.spark.SparkNumberFormatException
9797
"errorClass" : "CAST_INVALID_INPUT",
9898
"sqlState" : "22018",
9999
"messageParameters" : {
100+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
100101
"expression" : "'N A N'",
101102
"sourceType" : "\"STRING\"",
102103
"targetType" : "\"FLOAT\""
@@ -121,6 +122,7 @@ org.apache.spark.SparkNumberFormatException
121122
"errorClass" : "CAST_INVALID_INPUT",
122123
"sqlState" : "22018",
123124
"messageParameters" : {
125+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
124126
"expression" : "'NaN x'",
125127
"sourceType" : "\"STRING\"",
126128
"targetType" : "\"FLOAT\""
@@ -145,6 +147,7 @@ org.apache.spark.SparkNumberFormatException
145147
"errorClass" : "CAST_INVALID_INPUT",
146148
"sqlState" : "22018",
147149
"messageParameters" : {
150+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
148151
"expression" : "' INFINITY x'",
149152
"sourceType" : "\"STRING\"",
150153
"targetType" : "\"FLOAT\""
@@ -193,6 +196,7 @@ org.apache.spark.SparkNumberFormatException
193196
"errorClass" : "CAST_INVALID_INPUT",
194197
"sqlState" : "22018",
195198
"messageParameters" : {
199+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
196200
"expression" : "'nan'",
197201
"sourceType" : "\"STRING\"",
198202
"targetType" : "\"DECIMAL(10,0)\""
@@ -389,6 +393,7 @@ org.apache.spark.SparkArithmeticException
389393
"errorClass" : "CAST_OVERFLOW",
390394
"sqlState" : "22003",
391395
"messageParameters" : {
396+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
392397
"sourceType" : "\"FLOAT\"",
393398
"targetType" : "\"INT\"",
394399
"value" : "2.1474836E9"
@@ -414,6 +419,7 @@ org.apache.spark.SparkArithmeticException
414419
"errorClass" : "CAST_OVERFLOW",
415420
"sqlState" : "22003",
416421
"messageParameters" : {
422+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
417423
"sourceType" : "\"FLOAT\"",
418424
"targetType" : "\"INT\"",
419425
"value" : "-2.147484E9"
@@ -455,6 +461,7 @@ org.apache.spark.SparkArithmeticException
455461
"errorClass" : "CAST_OVERFLOW",
456462
"sqlState" : "22003",
457463
"messageParameters" : {
464+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
458465
"sourceType" : "\"FLOAT\"",
459466
"targetType" : "\"BIGINT\"",
460467
"value" : "-9.22338E18"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ org.apache.spark.SparkArithmeticException
737737
"errorClass" : "CAST_OVERFLOW",
738738
"sqlState" : "22003",
739739
"messageParameters" : {
740+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
740741
"sourceType" : "\"BIGINT\"",
741742
"targetType" : "\"INT\"",
742743
"value" : "4567890123456789L"
@@ -762,6 +763,7 @@ org.apache.spark.SparkArithmeticException
762763
"errorClass" : "CAST_OVERFLOW",
763764
"sqlState" : "22003",
764765
"messageParameters" : {
766+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
765767
"sourceType" : "\"BIGINT\"",
766768
"targetType" : "\"SMALLINT\"",
767769
"value" : "4567890123456789L"
@@ -807,6 +809,7 @@ org.apache.spark.SparkArithmeticException
807809
"errorClass" : "CAST_OVERFLOW",
808810
"sqlState" : "22003",
809811
"messageParameters" : {
812+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
810813
"sourceType" : "\"DOUBLE\"",
811814
"targetType" : "\"BIGINT\"",
812815
"value" : "9.223372036854776E20D"
@@ -895,6 +898,7 @@ org.apache.spark.SparkArithmeticException
895898
"errorClass" : "CAST_OVERFLOW",
896899
"sqlState" : "22003",
897900
"messageParameters" : {
901+
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
898902
"sourceType" : "\"BIGINT\"",
899903
"targetType" : "\"INT\"",
900904
"value" : "-9223372036854775808L"

0 commit comments

Comments
 (0)