[SPARK-29687][SQL] Fix JDBC metrics counter data type
### What changes were proposed in this pull request? Fix JDBC metrics counter data type. Related pull request [26109](https://github.com/apache/spark/pull/26109). ### Why are the changes needed? Avoid overflow. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Exists UT. Closes #26346 from ulysses-you/SPARK-29687. Authored-by: ulysses <youxiduo@weidian.com> Signed-off-by: Takeshi Yamamuro <yamamuro@apache.org>
This commit is contained in:
parent
888cc4601a
commit
8a8ac00271
|
@ -652,7 +652,7 @@ object JdbcUtils extends Logging {
|
|||
}
|
||||
}
|
||||
val supportsTransactions = finalIsolationLevel != Connection.TRANSACTION_NONE
|
||||
var totalRowCount = 0
|
||||
var totalRowCount = 0L
|
||||
try {
|
||||
if (supportsTransactions) {
|
||||
conn.setAutoCommit(false) // Everything in the same db transaction.
|
||||
|
|
Loading…
Reference in a new issue