Github user bolkedebruin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19911#discussion_r155342020
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/jdbc/PostgresDialect.scala ---
    @@ -100,5 +100,5 @@ private object PostgresDialect extends JdbcDialect {
     
       }
     
    -  override def isCascadingTruncateTable(): Option[Boolean] = Some(true)
    +  override def isCascadingTruncateTable(): Option[Boolean] = Some(false)
    --- End diff --
    
    In not sure if you are agreeing or not agreeing with me now :-) , but at 
least as just shown truncate is supported and does not cascade by default on 
Postgres. Can we conclude that this change seems right for Postgres, which is 
the only affected supported database by Spark - others default to truncate?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to