This is an automated email from the ASF dual-hosted git repository.
maxgekk pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new aed7ec957cc6 [SPARK-52899][SQL] Fix QueryExecutionErrorsSuite test to
register H2Dialect back
aed7ec957cc6 is described below
commit aed7ec957cc6947cef880817ab15c87fbd5c8620
Author: Petar Vasiljevic <[email protected]>
AuthorDate: Mon Jul 21 10:25:33 2025 +0200
[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 #51581 from PetarVasiljevic-DB/register_h2_dialect_back.
Authored-by: Petar Vasiljevic <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
(cherry picked from commit 45374d8950fbb2ff56d07bd2676efb3a70a7597c)
Signed-off-by: Max Gekk <[email protected]>
---
.../scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala | 1 +
1 file changed, 1 insertion(+)
diff --git
a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
index 46f2502582c3..04d33ecd3d54 100644
---
a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
+++
b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
@@ -656,6 +656,7 @@ class QueryExecutionErrorsSuite
sqlState = "42704")
JdbcDialects.unregisterDialect(testH2DialectUnrecognizedSQLType)
+ JdbcDialects.registerDialect(existH2Dialect)
}
test("INVALID_BUCKET_FILE: error if there exists any malformed bucket
files") {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]