Github user dongjoon-hyun commented on a diff in the pull request: https://github.com/apache/spark/pull/19911#discussion_r155478097 --- 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 -- Yep. And, we need to fix the following. ``` The PostgresDialect indicates that cascade is true by default for Postgres. This is not the case. This patch fixes this. ```
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org