Github user danielvdende commented on a diff in the pull request:
https://github.com/apache/spark/pull/20057#discussion_r168929792
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/jdbc/MsSqlServerDialect.scala ---
@@ -42,4 +42,17 @@ private object MsSqlServerDialect extends JdbcDialect {
}
override def isCascadingTruncateTable(): Option[Boolean] = Some(false)
+
+ /**
+ * The SQL query used to truncate a table.
+ * @param table The JDBCOptions.
+ * @param cascade Whether or not to cascade the truncation. Default
value is the
+ * value of isCascadingTruncateTable(). Ignored for MsSql
as it is unsupported.
--- End diff --
Hmm, I disagree with this, the reason I added it was to show users that
even if they specified `cascadeTruncate` being `true`, it doesn't take effect
for some databases (like MsSQL). The `isCascadingTruncateTable` only shows the
default behaviour, which for all databases at the moment is false.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]