Skip to content

Commit 524134c

Browse files
LuciferYangattilapiros
authored andcommitted
[SPARK-49578][SQL][TESTS][FOLLOWUP] Regenerate Java 21 golden file for postgreSQL/float4.sql and postgreSQL/int8.sql
### What changes were proposed in this pull request? This pr regenerate Java 21 golden file for `postgreSQL/float4.sql` and `postgreSQL/int8.sql` to fix Java 21 daily test. ### Why are the changes needed? Fix Java 21 daily test: - https://github.com/apache/spark/actions/runs/10823897095/job/30030200710 ``` [info] - postgreSQL/float4.sql *** FAILED *** (1 second, 100 milliseconds) [info] postgreSQL/float4.sql [info] Expected "...arameters" : { [info] "[ansiConfig" : "\"spark.sql.ansi.enabled\"", [info] "]expression" : "'N A ...", but got "...arameters" : { [info] "[]expression" : "'N A ..." Result did not match for query apache#11 [info] SELECT float('N A N') (SQLQueryTestSuite.scala:663) ... [info] - postgreSQL/int8.sql *** FAILED *** (2 seconds, 474 milliseconds) [info] postgreSQL/int8.sql [info] Expected "...arameters" : { [info] "[ansiConfig" : "\"spark.sql.ansi.enabled\"", [info] "]sourceType" : "\"BIG...", but got "...arameters" : { [info] "[]sourceType" : "\"BIG..." Result did not match for query apache#66 [info] SELECT CAST(q1 AS int) FROM int8_tbl WHERE q2 <> 456 (SQLQueryTestSuite.scala:663) ... [info] *** 2 TESTS FAILED *** [error] Failed: Total 3559, Failed 2, Errors 0, Passed 3557, Ignored 4 [error] Failed tests: [error] org.apache.spark.sql.SQLQueryTestSuite [error] (sql / Test / test) sbt.TestsFailedException: Tests unsuccessful ``` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? - Pass Github Acitons - Manual checked: `build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite" with Java 21, all test passed ` ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#48089 from LuciferYang/SPARK-49578-FOLLOWUP. Authored-by: yangjie01 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 5c11e27 commit 524134c

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ org.apache.spark.SparkNumberFormatException
9797
"errorClass" : "CAST_INVALID_INPUT",
9898
"sqlState" : "22018",
9999
"messageParameters" : {
100-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
101100
"expression" : "'N A N'",
102101
"sourceType" : "\"STRING\"",
103102
"targetType" : "\"FLOAT\""
@@ -122,7 +121,6 @@ org.apache.spark.SparkNumberFormatException
122121
"errorClass" : "CAST_INVALID_INPUT",
123122
"sqlState" : "22018",
124123
"messageParameters" : {
125-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
126124
"expression" : "'NaN x'",
127125
"sourceType" : "\"STRING\"",
128126
"targetType" : "\"FLOAT\""
@@ -147,7 +145,6 @@ org.apache.spark.SparkNumberFormatException
147145
"errorClass" : "CAST_INVALID_INPUT",
148146
"sqlState" : "22018",
149147
"messageParameters" : {
150-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
151148
"expression" : "' INFINITY x'",
152149
"sourceType" : "\"STRING\"",
153150
"targetType" : "\"FLOAT\""
@@ -196,7 +193,6 @@ org.apache.spark.SparkNumberFormatException
196193
"errorClass" : "CAST_INVALID_INPUT",
197194
"sqlState" : "22018",
198195
"messageParameters" : {
199-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
200196
"expression" : "'nan'",
201197
"sourceType" : "\"STRING\"",
202198
"targetType" : "\"DECIMAL(10,0)\""
@@ -393,7 +389,6 @@ org.apache.spark.SparkArithmeticException
393389
"errorClass" : "CAST_OVERFLOW",
394390
"sqlState" : "22003",
395391
"messageParameters" : {
396-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
397392
"sourceType" : "\"FLOAT\"",
398393
"targetType" : "\"INT\"",
399394
"value" : "2.1474836E9"
@@ -419,7 +414,6 @@ org.apache.spark.SparkArithmeticException
419414
"errorClass" : "CAST_OVERFLOW",
420415
"sqlState" : "22003",
421416
"messageParameters" : {
422-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
423417
"sourceType" : "\"FLOAT\"",
424418
"targetType" : "\"INT\"",
425419
"value" : "-2.147484E9"
@@ -461,7 +455,6 @@ org.apache.spark.SparkArithmeticException
461455
"errorClass" : "CAST_OVERFLOW",
462456
"sqlState" : "22003",
463457
"messageParameters" : {
464-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
465458
"sourceType" : "\"FLOAT\"",
466459
"targetType" : "\"BIGINT\"",
467460
"value" : "-9.22338E18"

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,6 @@ org.apache.spark.SparkArithmeticException
737737
"errorClass" : "CAST_OVERFLOW",
738738
"sqlState" : "22003",
739739
"messageParameters" : {
740-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
741740
"sourceType" : "\"BIGINT\"",
742741
"targetType" : "\"INT\"",
743742
"value" : "4567890123456789L"
@@ -763,7 +762,6 @@ org.apache.spark.SparkArithmeticException
763762
"errorClass" : "CAST_OVERFLOW",
764763
"sqlState" : "22003",
765764
"messageParameters" : {
766-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
767765
"sourceType" : "\"BIGINT\"",
768766
"targetType" : "\"SMALLINT\"",
769767
"value" : "4567890123456789L"
@@ -809,7 +807,6 @@ org.apache.spark.SparkArithmeticException
809807
"errorClass" : "CAST_OVERFLOW",
810808
"sqlState" : "22003",
811809
"messageParameters" : {
812-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
813810
"sourceType" : "\"DOUBLE\"",
814811
"targetType" : "\"BIGINT\"",
815812
"value" : "9.223372036854776E20D"
@@ -898,7 +895,6 @@ org.apache.spark.SparkArithmeticException
898895
"errorClass" : "CAST_OVERFLOW",
899896
"sqlState" : "22003",
900897
"messageParameters" : {
901-
"ansiConfig" : "\"spark.sql.ansi.enabled\"",
902898
"sourceType" : "\"BIGINT\"",
903899
"targetType" : "\"INT\"",
904900
"value" : "-9223372036854775808L"

0 commit comments

Comments
 (0)