heavydb icon indicating copy to clipboard operation
heavydb copied to clipboard

Add support for Truncate

Open dwayneberry opened this issue 9 years ago • 2 comments

Add TRUNCATE TABLE <TABLENAME> to product.

result of truncate:

Table definition exists for table but all data on disk and in memory is removed. Will currently remove data from dictionary but there is an open question of whether we may want an option to keep dictionary.

dwayneberry avatar Jul 20 '17 18:07 dwayneberry

Not a great idea to purge the dictionary if it's shared, but maybe the truncate is going to be followed by reloading with updated comment and substantially same dictionary encodings. Maybe this and shared dictionary means there should be something like a clean or truncate dictionary?

billmaimone avatar Jul 20 '17 21:07 billmaimone

closed with 45f8069ac34ba1b4b07c7759ed822f44397f6f44

dwayneberry avatar Jul 25 '17 16:07 dwayneberry