SavicStefan commented on code in PR #53830:
URL: https://github.com/apache/spark/pull/53830#discussion_r2703912077
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/v2/jdbc/JDBCTableCatalogSuite.scala:
##########
@@ -789,4 +792,23 @@ class JDBCTableCatalogSuite extends QueryTest with
SharedSparkSession {
assert(plan.isInstanceOf[InMemoryTableScanExec])
}
}
+
+ test("loadTable execute single query") {
Review Comment:
With this test I am measuring executeQuery() calls, which is a JDBC API
call. This ensures we only execute one query when loading a table schema.
And we don't have metrics for the number of JDBC connection creation.
--
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]