Table Details
| Property | Value |
|---|---|
| Table Name | common.utility.hours |
| Table Status | Production-Ready |
| Unique Key | hour_timestamp |
| Clustering Key(s) | hour_timestamp::date |
Table Columns
| Column Name | Data Type | Description |
|---|---|---|
| hour_timestamp | TIMESTAMP_NTZ(9) | UTC timestamp representing the start of this hour (minutes and seconds zeroed out). |
| date | DATE | Calendar date (UTC) this record represents. Used in daily aggregate tables. |
| hour_of_day | NUMBER(38,0) | Hour of the day as an integer (0–23, UTC). |
| am_pm | VARCHAR(2) | AM or PM designation for this hour (AM for hours 0–11, PM for hours 12–23). |
| hour_display | VARCHAR(16777216) | Human-readable hour label (e.g., “2 PM”, “11 AM”). |
| day_part | VARCHAR(9) | Part of the day for this hour (UTC): Morning (5–11), Afternoon (12–16), Evening (17–20) or Night (21–4). |
| is_business_hour | BOOLEAN | True for hours 9 through 16 UTC (9 AM to 5 PM), on every day of the week including weekends. |
| previous_hour | TIMESTAMP_NTZ(9) | UTC timestamp of the immediately preceding hour. |
| next_hour | TIMESTAMP_NTZ(9) | UTC timestamp of the immediately following hour. |
| day_of_week | NUMBER(38,0) | Day of the week as an integer, 0 = Sunday through 6 = Saturday. |
| day_name | VARCHAR(16777216) | Full name of the day of the week (e.g., Monday, Tuesday). |
| month | NUMBER(38,0) | Month of the year as an integer (1–12). |
| year | NUMBER(38,0) | Calendar year as an integer (e.g., 2025). |
| quarter | NUMBER(38,0) | Calendar quarter as an integer (1–4). |