Github user bolkedebruin commented on a diff in the pull request: https://github.com/apache/spark/pull/19911#discussion_r155619800 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/jdbc/DB2Dialect.scala --- @@ -48,5 +48,7 @@ private object DB2Dialect extends JdbcDialect { case _ => None } - override def isCascadingTruncateTable(): Option[Boolean] = Some(false) + override def getTruncateQuery(table: String): String = { + s"TRUNCATE $table" --- End diff -- (And all others that are not Postgres?)
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org