cloud-fan commented on a change in pull request #30089:
URL: https://github.com/apache/spark/pull/30089#discussion_r510639062
##########
File path:
external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/V2JDBCTest.scala
##########
@@ -73,6 +73,53 @@ trait V2JDBCTest extends SharedSparkSession {
assert(msg.contains("Table not found"))
}
+ test("SPARK-33034: ALTER TABLE ... rename column") {
+ withTable(s"$catalogName.alt_table") {
+ sql(s"CREATE TABLE $catalogName.alt_table (id INTEGER, C0 INTEGER) USING
_")
+ sql(s"ALTER TABLE $catalogName.alt_table RENAME COLUMN id TO C")
+ val t = spark.table(s"$catalogName.alt_table")
+ val expectedSchema = catalogName match {
+ case "oracle" => new StructType().add("C", DecimalType(10,
0)).add("C0", DecimalType(10, 0))
Review comment:
to work around it, shall we use string or boolean type instead? It's
testing rename so the type doesn't matter.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]