Hi,
I've large Delta Table for IoT data for over 10K different sensors with timestamp, sensor name and value columns at 1 second precision.
Query pattern is usually random 5-100 sensors at a time. But typically involves specific year/month/day interval.
This table grows with Auto Loader every 4 hours, via appending pre-landing parquet files to Delta Table.
I'm planning to create year, year-month, year-month-day columns and Z-Order by these to improve query time.
My question is, when SQL query is based on using the timestamp column, will it take advantage of Z-Ordering? Or do I have to specify the calculated columns (year, year-month, year-month-day) with a where clause?