mingkangli-db commented on code in PR #41843:
URL: https://github.com/apache/spark/pull/41843#discussion_r1277904958
##########
connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/PostgresIntegrationSuite.scala:
##########
@@ -432,4 +437,18 @@ class PostgresIntegrationSuite extends
DockerJDBCIntegrationSuite {
assert(row(0).getSeq[String](0) == Seq("1", "fds", "fdsa"))
assert(row(0).getString(1) == "fdasfasdf")
}
+
+ test("SPARK-44280: infinity timestamp test") {
+ val df = sqlContext.read.jdbc(jdbcUrl, "infinity_timestamp", new
Properties)
Review Comment:
The goal here is upon reading one of the infinity timestamps in Postgresql,
it is cast into reasonable values in Spark SQL instead of throwing an overflow
error. However, from the other direction, since there is no built-in "infinity"
values in Spark SQL, we can't write an infinity timestamp value to Postgresql,
so I don't think a roundtrip test would be possible here.
--
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]