cloud-fan commented on code in PR #44969:
URL: https://github.com/apache/spark/pull/44969#discussion_r1473747793
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCRDD.scala:
##########
@@ -272,11 +281,25 @@ private[jdbc] class JDBCRDD(
ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY)
stmt.setFetchSize(options.fetchSize)
stmt.setQueryTimeout(options.queryTimeout)
+
+ val startTime = System.nanoTime
rs = stmt.executeQuery()
+ val endTime = System.nanoTime
+
+ val executionTime = endTime - startTime
+ logInfo(s"Query execution time = $executionTime ns")
Review Comment:
We don't need this log I think. It's redundant with web UI.
--
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]