Skip to content

Commit

Permalink
Add test time spines for sub-daily granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Jul 27, 2024
1 parent a1fbc3c commit 9cec4eb
Show file tree
Hide file tree
Showing 7 changed files with 261 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,40 @@ project_configuration:
- location: $source_schema.mf_time_spine
column_name: ds
grain: day
time_spines:
- node_relation:
alias: mf_time_spine_nanosecond
schema_name: $source_schema
primary_column:
name: ts
time_granularity: nanosecond
- node_relation:
alias: mf_time_spine_microsecond
schema_name: $source_schema
primary_column:
name: ts
time_granularity: microsecond
- node_relation:
alias: mf_time_spine_millisecond
schema_name: $source_schema
primary_column:
name: ts
time_granularity: millisecond
- node_relation:
alias: mf_time_spine_second
schema_name: $source_schema
primary_column:
name: ts
time_granularity: second
- node_relation:
alias: mf_time_spine_minute
schema_name: $source_schema
primary_column:
name: ts
time_granularity: minute
- node_relation:
alias: mf_time_spine_hour
schema_name: $source_schema
primary_column:
name: ts
time_granularity: hour
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
table_snapshot:
table_name: mf_time_spine_hour
column_definitions:
- name: ts
type: TIME
rows:
- ["2020-01-01 01:00:00"]
- ["2020-01-01 02:00:00"]
- ["2020-01-01 03:00:00"]
- ["2020-01-01 04:00:00"]
- ["2020-01-01 05:00:00"]
- ["2020-01-01 06:00:00"]
- ["2020-01-01 07:00:00"]
- ["2020-01-01 08:00:00"]
- ["2020-01-01 09:00:00"]
- ["2020-01-01 010:00:00"]
- ["2020-01-01 11:00:00"]
- ["2020-01-01 12:00:00"]
- ["2020-01-02 01:00:00"]
- ["2020-01-02 02:00:00"]
- ["2020-01-02 03:00:00"]
- ["2020-01-02 04:00:00"]
- ["2020-01-02 05:00:00"]
- ["2020-01-02 06:00:00"]
- ["2020-01-02 07:00:00"]
- ["2020-01-02 08:00:00"]
- ["2020-01-02 09:00:00"]
- ["2020-01-02 010:00:00"]
- ["2020-01-02 11:00:00"]
- ["2020-01-02 12:00:00"]
- ["2020-01-03 01:00:00"]
- ["2020-01-03 02:00:00"]
- ["2020-01-03 03:00:00"]
- ["2020-01-03 04:00:00"]
- ["2020-01-03 05:00:00"]
- ["2020-01-03 06:00:00"]
- ["2020-01-03 07:00:00"]
- ["2020-01-03 08:00:00"]
- ["2020-01-03 09:00:00"]
- ["2020-01-03 010:00:00"]
- ["2020-01-03 11:00:00"]
- ["2020-01-03 12:00:00"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
table_snapshot:
table_name: mf_time_spine_microsecond
column_definitions:
- name: ts
type: TIME
rows:
- ["2020-01-01 00:00:00.000000"]
- ["2020-01-01 00:00:00.000001"]
- ["2020-01-01 00:00:00.000002"]
- ["2020-01-01 00:00:00.000003"]
- ["2020-01-01 00:00:00.000004"]
- ["2020-01-01 00:00:00.000005"]
- ["2020-01-01 00:00:00.000006"]
- ["2020-01-01 00:00:00.000007"]
- ["2020-01-01 00:00:00.000008"]
- ["2020-01-01 00:00:00.000009"]
- ["2020-01-01 00:00:00.000010"]
- ["2020-01-01 00:00:00.000011"]
- ["2020-01-01 00:00:00.000012"]
- ["2020-01-01 00:00:00.000013"]
- ["2020-01-01 00:00:00.000014"]
- ["2020-01-01 00:00:00.000015"]
- ["2020-01-01 00:00:00.000016"]
- ["2020-01-01 00:00:00.000017"]
- ["2020-01-01 00:00:00.000018"]
- ["2020-01-01 00:00:00.000019"]
- ["2020-01-01 00:00:00.000020"]
- ["2020-01-01 00:00:00.000021"]
- ["2020-01-01 00:00:00.000022"]
- ["2020-01-01 00:00:00.000023"]
- ["2020-01-01 00:00:00.000024"]
- ["2020-01-01 00:00:00.000025"]
- ["2020-01-01 00:00:00.000026"]
- ["2020-01-01 00:00:00.000027"]
- ["2020-01-01 00:00:00.000028"]
- ["2020-01-01 00:00:00.000029"]
- ["2020-01-01 00:00:00.000030"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
table_snapshot:
table_name: mf_time_spine_millisecond
column_definitions:
- name: ts
type: TIME
rows:
- ["2020-01-01 00:00:00.001"]
- ["2020-01-01 00:00:00.002"]
- ["2020-01-01 00:00:00.003"]
- ["2020-01-01 00:00:00.004"]
- ["2020-01-01 00:00:00.005"]
- ["2020-01-01 00:00:00.006"]
- ["2020-01-01 00:00:00.007"]
- ["2020-01-01 00:00:00.008"]
- ["2020-01-01 00:00:00.009"]
- ["2020-01-01 00:00:00.010"]
- ["2020-01-01 00:00:00.011"]
- ["2020-01-01 00:00:00.012"]
- ["2020-01-01 00:00:00.013"]
- ["2020-01-01 00:00:00.014"]
- ["2020-01-01 00:00:00.015"]
- ["2020-01-01 00:00:00.016"]
- ["2020-01-01 00:00:00.017"]
- ["2020-01-01 00:00:00.018"]
- ["2020-01-01 00:00:00.019"]
- ["2020-01-01 00:00:00.020"]
- ["2020-01-01 00:00:00.021"]
- ["2020-01-01 00:00:00.022"]
- ["2020-01-01 00:00:00.023"]
- ["2020-01-01 00:00:00.024"]
- ["2020-01-01 00:00:00.025"]
- ["2020-01-01 00:00:00.026"]
- ["2020-01-01 00:00:00.027"]
- ["2020-01-01 00:00:00.028"]
- ["2020-01-01 00:00:00.029"]
- ["2020-01-01 00:00:00.030"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
table_snapshot:
table_name: mf_time_spine_minute
column_definitions:
- name: ts
type: TIME
rows:
- ["2020-01-01 00:00:00"]
- ["2020-01-01 00:01:00"]
- ["2020-01-01 00:02:00"]
- ["2020-01-01 00:03:00"]
- ["2020-01-01 00:04:00"]
- ["2020-01-01 00:05:00"]
- ["2020-01-01 00:06:00"]
- ["2020-01-01 00:07:00"]
- ["2020-01-01 00:08:00"]
- ["2020-01-01 00:09:00"]
- ["2020-01-01 00:10:00"]
- ["2020-01-01 00:11:00"]
- ["2020-01-01 00:12:00"]
- ["2020-01-01 00:13:00"]
- ["2020-01-01 00:14:00"]
- ["2020-01-01 00:15:00"]
- ["2020-01-01 00:16:00"]
- ["2020-01-01 00:17:00"]
- ["2020-01-01 00:18:00"]
- ["2020-01-01 00:19:00"]
- ["2020-01-01 00:20:00"]
- ["2020-01-01 00:21:00"]
- ["2020-01-01 00:22:00"]
- ["2020-01-01 00:23:00"]
- ["2020-01-01 00:24:00"]
- ["2020-01-01 00:25:00"]
- ["2020-01-01 00:26:00"]
- ["2020-01-01 00:27:00"]
- ["2020-01-01 00:28:00"]
- ["2020-01-01 00:29:00"]
- ["2020-01-01 00:30:00"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
table_snapshot:
table_name: mf_time_spine_nanosecond
column_definitions:
- name: ts
type: TIME
rows:
- ["2020-01-01 00:00:00.000000001"]
- ["2020-01-01 00:00:00.000000002"]
- ["2020-01-01 00:00:00.000000003"]
- ["2020-01-01 00:00:00.000000004"]
- ["2020-01-01 00:00:00.000000005"]
- ["2020-01-01 00:00:00.000000006"]
- ["2020-01-01 00:00:00.000000007"]
- ["2020-01-01 00:00:00.000000008"]
- ["2020-01-01 00:00:00.000000009"]
- ["2020-01-01 00:00:00.000000010"]
- ["2020-01-01 00:00:00.000000011"]
- ["2020-01-01 00:00:00.000000012"]
- ["2020-01-01 00:00:00.000000013"]
- ["2020-01-01 00:00:00.000000014"]
- ["2020-01-01 00:00:00.000000015"]
- ["2020-01-01 00:00:00.000000016"]
- ["2020-01-01 00:00:00.000000017"]
- ["2020-01-01 00:00:00.000000018"]
- ["2020-01-01 00:00:00.000000019"]
- ["2020-01-01 00:00:00.000000020"]
- ["2020-01-01 00:00:00.000000021"]
- ["2020-01-01 00:00:00.000000022"]
- ["2020-01-01 00:00:00.000000023"]
- ["2020-01-01 00:00:00.000000024"]
- ["2020-01-01 00:00:00.000000025"]
- ["2020-01-01 00:00:00.000000026"]
- ["2020-01-01 00:00:00.000000027"]
- ["2020-01-01 00:00:00.000000028"]
- ["2020-01-01 00:00:00.000000029"]
- ["2020-01-01 00:00:00.000000030"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
table_snapshot:
table_name: mf_time_spine_second
column_definitions:
- name: ts
type: TIME
rows:
- ["2020-01-01 00:00:01"]
- ["2020-01-01 00:00:02"]
- ["2020-01-01 00:00:03"]
- ["2020-01-01 00:00:04"]
- ["2020-01-01 00:00:05"]
- ["2020-01-01 00:00:06"]
- ["2020-01-01 00:00:07"]
- ["2020-01-01 00:00:08"]
- ["2020-01-01 00:00:09"]
- ["2020-01-01 00:00:10"]
- ["2020-01-01 00:00:11"]
- ["2020-01-01 00:00:12"]
- ["2020-01-01 00:00:13"]
- ["2020-01-01 00:00:14"]
- ["2020-01-01 00:00:15"]
- ["2020-01-01 00:00:16"]
- ["2020-01-01 00:00:17"]
- ["2020-01-01 00:00:18"]
- ["2020-01-01 00:00:19"]
- ["2020-01-01 00:00:20"]
- ["2020-01-01 00:00:21"]
- ["2020-01-01 00:00:22"]
- ["2020-01-01 00:00:23"]
- ["2020-01-01 00:00:24"]
- ["2020-01-01 00:00:25"]
- ["2020-01-01 00:00:26"]
- ["2020-01-01 00:00:27"]
- ["2020-01-01 00:00:28"]
- ["2020-01-01 00:00:29"]
- ["2020-01-01 00:00:30"]

0 comments on commit 9cec4eb

Please sign in to comment.