cloud-fan commented on code in PR #47660:
URL: https://github.com/apache/spark/pull/47660#discussion_r1713111487
##########
sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala:
##########
@@ -2104,15 +2104,10 @@ class DataSourceV2SQLSuiteV1Filter
}
test("REPLACE TABLE: v1 table") {
- val e = intercept[AnalysisException] {
- sql(s"CREATE OR REPLACE TABLE tbl (a int) USING
${classOf[SimpleScanSource].getName}")
- }
- checkError(
- exception = e,
- errorClass = "UNSUPPORTED_FEATURE.TABLE_OPERATION",
- sqlState = "0A000",
- parameters = Map("tableName" -> "`spark_catalog`.`default`.`tbl`",
- "operation" -> "REPLACE TABLE"))
+ sql(s"CREATE OR REPLACE TABLE tbl (a int) USING
${classOf[SimpleScanSource].getName}")
+ val descInfo = sql(s"DESCRIBE TABLE EXTENDED tbl").collectAsList()
Review Comment:
we can use `loadTable`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]