Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/19911#discussion_r155473951
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/jdbc/JdbcDialects.scala ---
@@ -116,6 +116,17 @@ abstract class JdbcDialect extends Serializable {
s"SELECT * FROM $table WHERE 1=0"
}
+ /**
+ * The SQL query that should be used to truncate a table. Dialects can
override this method to
+ * return a query that is suitable for a particular database
+ * @param table The name of the table.
+ * @return The SQL query to use for truncating a table
+ */
+ @Since("2.3.0")
--- End diff --
@danielvdende .
As we see here, this is a new feature. It seems that we had better a new
JIRA as a `New Feature` with a title like `Add getTruncateQuery to JdbcDialect`.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]