You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ya...@apache.org on 2024/02/19 09:04:35 UTC
(spark) branch master updated: [SPARK-46972][SQL][TESTS][FOLLOWUP] Remove the assertion for table existence
This is an automated email from the ASF dual-hosted git repository.
yao 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 63a5acd2431a [SPARK-46972][SQL][TESTS][FOLLOWUP] Remove the assertion for table existence
63a5acd2431a is described below
commit 63a5acd2431a020f0aade5a1d121bd15c0fccd4c
Author: Kent Yao <ya...@apache.org>
AuthorDate: Mon Feb 19 17:04:14 2024 +0800
[SPARK-46972][SQL][TESTS][FOLLOWUP] Remove the assertion for table existence
### What changes were proposed in this pull request?
This PR removes the assertion for table existence, which introduces undefined scan logic.
### Why are the changes needed?
test improvement
### Does this PR introduce _any_ user-facing change?
no
### How was this patch tested?
the existing one
### Was this patch authored or co-authored using generative AI tooling?
no
Closes #45163 from yaooqinn/SPARK-46972-F.
Authored-by: Kent Yao <ya...@apache.org>
Signed-off-by: Kent Yao <ya...@apache.org>
---
.../test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala | 1 -
1 file changed, 1 deletion(-)
diff --git a/sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
index 2701738351b1..cfa17bdf1e0d 100644
--- a/sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
+++ b/sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
@@ -1740,7 +1740,6 @@ class DataSourceV2SQLSuiteV1Filter
spark.conf.unset(V2_SESSION_CATALOG_IMPLEMENTATION.key)
withTable("t") {
sql(s"CREATE TABLE t(c char(1), v varchar(2)) USING $v2Source")
- assert(!spark.table("t").isEmpty)
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org