Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/19911#discussion_r155884560
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcRelationProvider.scala
---
@@ -66,9 +66,9 @@ class JdbcRelationProvider extends
CreatableRelationProvider
if (tableExists) {
mode match {
case SaveMode.Overwrite =>
- if (options.isTruncate &&
isCascadingTruncateTable(options.url) == Some(false)) {
--- End diff --
We still need to respect it, but we can enhance PostgresDialect to support
the JDBC option `truncate`
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]