Github user danielvdende commented on a diff in the pull request:
https://github.com/apache/spark/pull/19911#discussion_r155477578
--- 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 --
So create a new "improvement" JIRA and change the ticket number in this PR?
(just checking I understand you correctly)
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]