panbingkun commented on code in PR #47293:
URL: https://github.com/apache/spark/pull/47293#discussion_r1673460019
##########
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala:
##########
@@ -804,31 +811,33 @@ class HiveQuerySuite extends HiveComparisonTest with
SQLTestUtils with BeforeAnd
}
test("ADD JAR command") {
- sql("CREATE TABLE alter1(a INT, b INT) USING HIVE")
- checkError(
- exception = intercept[AnalysisException] {
- sql(
- """ALTER TABLE alter1 SET SERDE
'org.apache.hadoop.hive.serde2.TestSerDe'
- |WITH serdeproperties('s1'='9')""".stripMargin)
- },
- errorClass = "_LEGACY_ERROR_TEMP_3065",
- parameters = Map(
- "clazz" -> "org.apache.hadoop.hive.ql.metadata.HiveException",
- "msg" -> "at least one column must be specified for the table"))
- sql("DROP TABLE alter1")
+ withTable("alter1") {
Review Comment:
Use `withTable` to make it more logically consistent with `other tests`
--
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]