Can I know z-order column?
Asked Answered
G

1

5

Is there any way to know which column was used for z-ordering for a given table? I've tried multiple commands like describe and describe extended along with viewing the delta log. I found no information which column was used to perform the optimization.

Garrard answered 10/10, 2022 at 11:2 Comment(0)
U
8

You can find this information in the history of the table. Filter by operation = 'OPTIMIZE' then the operationParameters column will be a struct with fields predicate and zOrderBy (string encoding a JSON array of ZOrder columns)...

For example, when I optimized table by with ZOrder by rnd column

enter image description here

Unity answered 10/10, 2022 at 14:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.