You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/05/31 10:14:37 UTC

[GitHub] [incubator-seatunnel] v-wx-v commented on a diff in pull request #1975: [fix bug] When use TiDB, Spark JDBC update mode, Error "The isolation level ‘READ-UNCOMMITTED’ is not supported. Set tidb_skip_isolation_level_check=1 to skip this error"

v-wx-v commented on code in PR #1975:
URL: https://github.com/apache/incubator-seatunnel/pull/1975#discussion_r885459294


##########
seatunnel-connectors/seatunnel-connectors-spark/seatunnel-connector-spark-jdbc/src/main/scala/org/apache/seatunnel/spark/jdbc/sink/Jdbc.scala:
##########
@@ -65,6 +66,7 @@ class Jdbc extends SparkBatchSink {
         "saveMode" -> "error",
         "useSsl" -> "false",
         "showSql" -> "true",
+        "isolationLevel" -> "READ_UNCOMMITTED",

Review Comment:
   In Spark ,the default value of isolationLevel is  "READ_UNCOMMITTED". Please see https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html.



-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org