-
- Downloads
[SPARK-21338][SQL][FOLLOW-UP] Implement isCascadingTruncateTable() method in AggregatedDialect
## What changes were proposed in this pull request? The implemented `isCascadingTruncateTable` in `AggregatedDialect` is wrong. When no dialect claims cascading, once there is an unknown cascading truncate in the dialects, we should return unknown cascading, instead of false. ## How was this patch tested? Added test. Author: Liang-Chi Hsieh <viirya@gmail.com> Closes #19286 from viirya/SPARK-21338-followup.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/jdbc/AggregatedDialect.scala 7 additions, 1 deletion...n/scala/org/apache/spark/sql/jdbc/AggregatedDialect.scala
- sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala 25 additions, 0 deletions.../src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala
Please register or sign in to comment