Github user bolkedebruin commented on a diff in the pull request:
https://github.com/apache/spark/pull/19911#discussion_r155624133
--- 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 --
Gotcha. It is also backward incompatible. Ie if someone implemented his/her
own dialect one needs to update it (but removing the isCasc...) does this
already so I assume that is ok
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]