cloud-fan commented on code in PR #37013:
URL: https://github.com/apache/spark/pull/37013#discussion_r908604424


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala:
##########
@@ -599,10 +610,13 @@ object JdbcUtils extends Logging with SQLConfHelper {
           stmt.setTimestamp(pos + 1, 
toJavaTimestamp(instantToMicros(row.getAs[Instant](pos))))
       } else {

Review Comment:
   since we are touching the code here, let's make it right. I think for ntz 
type, its value is always `java.time.LocalDateTime`, no matter 
`datetimeJava8ApiEnabled` is true or not, right? @MaxGekk @gengliangwang 



-- 
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]

Reply via email to