10-03-2018 01:56 AM - last edited on 10-05-2018 10:14 AM by cjervis
In documentation on impala truncate command (https://www.cloudera.com/documentation/enterprise/latest/topics/impala_truncate_table.html) it is said that trucate moves files to hdfs trashcan.
My tests shows that truncate deletes files without moving to hdfs trashcan.
I suppose truncate is handled by method "truncateTable" in class "org.apache.impala.service.CatalogOpExecutor", it deletes files without moving to trashcan.
The error is in documentation or i've misconfigured impala?
P.S. Deleting without moving to trashcan is best option, hope documentation would be fixed)
10-04-2018 07:28 AM