wangyum commented on code in PR #42545:
URL: https://github.com/apache/spark/pull/42545#discussion_r1299022270
##########
sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala:
##########
@@ -2057,4 +2057,11 @@ class JDBCSuite extends QueryTest with
SharedSparkSession {
val df = sql("SELECT * FROM composite_name WHERE `last name` = 'smith'")
assert(df.collect.toSet === Set(Row("smith", 1)))
}
+
+ test("SPARK-44866: SnowflakeDialect BOOLEAN type mapping") {
+ val snowflakeDialect =
JdbcDialects.get("jdbc:snowflake://account.snowflakecomputing.com")
+
assert(snowflakeDialect.getJDBCType(BooleanType).map(_.databaseTypeDefinition).get
== "BOOLEAN")
+ }
+
+
Review Comment:
Remove these two lines.
--
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]