Github user danielvdende commented on a diff in the pull request: https://github.com/apache/spark/pull/19911#discussion_r155515466 --- 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 -- Done
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org