Github user dongjoon-hyun commented on a diff in the pull request:
https://github.com/apache/spark/pull/19911#discussion_r155330593
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/jdbc/PostgresDialect.scala ---
@@ -100,5 +100,5 @@ private object PostgresDialect extends JdbcDialect {
}
- override def isCascadingTruncateTable(): Option[Boolean] = Some(true)
+ override def isCascadingTruncateTable(): Option[Boolean] = Some(false)
--- End diff --
Previously, we referred the following sentence in
https://www.postgresql.org/docs/current/static/sql-truncate.html.
```
name
The name (optionally schema-qualified) of a table to truncate. If ONLY
is specified before the table name, only that table is truncated. If ONLY is
not specified, the table and all its descendant tables (if any) are truncated.
Optionally, * can be specified after the table name to explicitly indicate that
descendant tables are included.
```
For your test case, it seems to be different, but could you point us the
sentence you're referring exactly?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]