Github user andrewor14 commented on the pull request:
https://github.com/apache/spark/pull/13315#issuecomment-221949078
@sureshthalamati what behavior did you expect? I would think that
truncating a partitioned table without specifying the specs should just delete
data from all partitions:
```
scala> sql("select * from emp16").show()
+---+------+-----+
| id| name|state|
+---+------+-----+
| 3|Robert| CA|
| 1| john| CA|
| 2| Mike| NY|
+---+------+-----+
scala> sql("TRUNCATE TABLE emp16")
scala> sql("select * from emp16").show()
+---+----+-----+
| id|name|state|
+---+----+-----+
+---+----+-----+
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]