yaooqinn commented on code in PR #48625:
URL: https://github.com/apache/spark/pull/48625#discussion_r1819994352
##########
connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/PostgresIntegrationSuite.scala:
##########
@@ -302,4 +317,22 @@ class PostgresIntegrationSuite extends
DockerJDBCIntegrationV2Suite with V2JDBCT
assert(rows10(0).getString(0) === "amy")
assert(rows10(1).getString(0) === "alex")
}
+
+ test("Test reading 2d array from table created via CTAS command") {
+ val dfWithNewBehaviour = sql(s"SELECT * FROM
$catalogName.array_of_array_of_int")
+ val CTASdfWithNewBehaviour = sql(s"SELECT * FROM
$catalogName.ctas_array_of_array_of_int")
+
+ checkAnswer(CTASdfWithNewBehaviour, dfWithNewBehaviour.collect())
+ }
+
+ test("Test reading multiple dimension array from table created via CTAS
command") {
+ val exception = intercept[org.apache.spark.SparkSQLException] {
Review Comment:
Can we use `checkError` here? BTW, we just added this test in passing, not
because of a behavioural change I guess?
--
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]