Skip to content

Commit 45374d8

Browse files
PetarVasiljevic-DBMaxGekk
authored andcommitted
[SPARK-52899][SQL] Fix QueryExecutionErrorsSuite test to register H2Dialect back
### What changes were proposed in this pull request? Fixed `QueryExecutionErrorsSuite`'s test `UNRECOGNIZED_SQL_TYPE: unrecognized SQL type DATALINK`. The test is unregistering the H2 dialect and it never registers it back. Suites that rely on H2 can fail because the dialect would be missing. ### Why are the changes needed? Example suite that fails because of this: https://github.com/PetarVasiljevic-DB/spark/actions/runs/16399646273/job/46337197677 ### Does this PR introduce _any_ user-facing change? No. It is test only change. ### How was this patch tested? ### Was this patch authored or co-authored using generative AI tooling? Closes apache#51581 from PetarVasiljevic-DB/register_h2_dialect_back. Authored-by: Petar Vasiljevic <[email protected]> Signed-off-by: Max Gekk <[email protected]>
1 parent ddea7dd commit 45374d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,7 @@ class QueryExecutionErrorsSuite
656656
sqlState = "42704")
657657

658658
JdbcDialects.unregisterDialect(testH2DialectUnrecognizedSQLType)
659+
JdbcDialects.registerDialect(existH2Dialect)
659660
}
660661

661662
test("INVALID_BUCKET_FILE: error if there exists any malformed bucket files") {

0 commit comments

Comments
 (0)