Skip to content
Snippets Groups Projects
Commit 10e315c2 authored by Reynold Xin's avatar Reynold Xin
Browse files

Fix style violation for b63938a8

parent 5eaed4e4
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,8 @@ package org.apache.spark.sql.execution.datasources.jdbc
import java.sql.{Connection, DriverManager, ResultSet, ResultSetMetaData, SQLException}
import java.util.Properties
import scala.util.control.NonFatal
import org.apache.commons.lang3.StringUtils
import org.apache.spark.rdd.RDD
......@@ -498,7 +500,7 @@ private[sql] class JDBCRDD(
try {
conn.commit()
} catch {
case e: Throwable => logWarning("Exception committing transaction", e)
case NonFatal(e) => logWarning("Exception committing transaction", e)
}
}
conn.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment