Commit Graph

3 Commits

Author SHA1 Message Date
Marcell Szabo
8135ef6eaa IMPALA-2641: Add IF EXISTS clause to TRUNCATE TABLE statement
Change-Id: I3169390b0e04f07fb4ea53d987d86a76482d7e9d
Reviewed-on: http://gerrit.cloudera.org:8080/1905
Reviewed-by: Dimitris Tsirogiannis <dtsirogiannis@cloudera.com>
Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
Tested-by: Internal Jenkins
2016-02-19 14:08:58 +00:00
Shant Hovsepian
6d87fe090c Improve Hll estimate for small cardinalities.
Based on Google's HyperLogLog++ paper. Uses a bias correcting
interpolation as a sub algorithm for Hll estimates within a specific
range.

Change-Id: If4fe692b4308f6a57aea6167e9bc00db11eaaab9
Reviewed-on: http://gerrit.cloudera.org:8080/415
Tested-by: Internal Jenkins
Reviewed-by: Henry Robinson <henry@cloudera.com>
2015-07-16 19:38:17 +00:00
zuowang
304d985523 IMPALA-1139: Implement TRUNCATE TABLE statement
Synopsis:  TRUNCATE [TABLE] [database.]table

TRUNCATE quickly removes all rows from a set of tables.
TRUNCATE also drops all table and column stats, but preserves
HMS partitions and HDFS directories.
You must have the INSERT privilege on a table to truncate it.
It requires taking the metastoreDdlLock before truncate tables.

Examples:
TRUNCATE TABLE t1;
TRUNCATE t1;

Change-Id: I546e4ee0279083f437cdf0e7487faad47957dbf6
Reviewed-on: http://gerrit.cloudera.org:8080/241
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Internal Jenkins
2015-05-14 07:50:34 +00:00