The partition date picker

The partition date picker is the date tree in the Truncate Partitions dialog. It unfolds a table's partitions by year, month and day, and the dates you tick are the partitions the truncate acts on.

Where the picker appears

How the tree is laid out

The tree opens on years, newest first. Open a year to see its months in calendar order, from January to December; open a month to see its dates, earliest to latest. Entries that fall on the same day sit together.

Pick the dates to truncate

Tick a date to add it to the truncate; untick it to leave the date out.

Read the row counts

Questions, answered

What does the dash next to a date mean?

The platform could not count the rows in that date's partitions, so the number is unknown. It does not mean the date is empty.

What does "3 of 12 selected" count?

It counts dates: how many you have ticked out of all the dates in the tree. It does not count the rows behind them.

How do I pick a whole month at once?

Tick the checkbox on the month's row. It ticks every date in the month, or clears them when they are all ticked already. The same works on a year row for a whole year.

How do I select every date at once?

Click Select All while nothing is ticked. If dates are already ticked, it clears the selection first, so click it again to tick everything.

Why does a year or month row show no row total?

Because at least one of its dates has no known count. Rather than show a total that understates the removal, the row hides it.

In what order do the years and months appear?

Years come newest first, and months run in calendar order, January to December. Dates inside a month run earliest to latest.

Why do some dates show a time?

Some partition dates carry a time of day as well as a day. When they do, the row shows it in a chip, like 14:00:00, next to the date. A date without a time shows the day only.

Do my picks stay when I reopen the dialog?

No. Every time the Truncate Partitions dialog opens, the selection starts empty. On a Warehouse table, switching to another source system also clears your picks, because each source system has its own dates.