Skip to content

Commit 8a8ac00

Browse files
ulysses-youmaropu
authored andcommitted
[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](apache#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 apache#26346 from ulysses-you/SPARK-29687. Authored-by: ulysses <[email protected]> Signed-off-by: Takeshi Yamamuro <[email protected]>
1 parent 888cc46 commit 8a8ac00

File tree

1 file changed

+1
-1
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ object JdbcUtils extends Logging {
652652
}
653653
}
654654
val supportsTransactions = finalIsolationLevel != Connection.TRANSACTION_NONE
655-
var totalRowCount = 0
655+
var totalRowCount = 0L
656656
try {
657657
if (supportsTransactions) {
658658
conn.setAutoCommit(false) // Everything in the same db transaction.

0 commit comments

Comments
 (0)