Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/20057#discussion_r203949498 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcUtils.scala --- @@ -105,7 +105,12 @@ object JdbcUtils extends Logging { val statement = conn.createStatement try { statement.setQueryTimeout(options.queryTimeout) - statement.executeUpdate(dialect.getTruncateQuery(options.table)) + if (options.isCascadeTruncate.isDefined) { + statement.executeUpdate(dialect.getTruncateQuery(options.table, + options.isCascadeTruncate)) + } else { + statement.executeUpdate(dialect.getTruncateQuery(options.table)) + } --- End diff -- +1 to the above comment of @dongjoon-hyun
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org