diff --git a/dbt_semantic_interfaces/parsing/generated_json_schemas/default_explicit_schema.json b/dbt_semantic_interfaces/parsing/generated_json_schemas/default_explicit_schema.json index dde90bbc..38047288 100644 --- a/dbt_semantic_interfaces/parsing/generated_json_schemas/default_explicit_schema.json +++ b/dbt_semantic_interfaces/parsing/generated_json_schemas/default_explicit_schema.json @@ -131,11 +131,23 @@ "properties": { "time_granularity": { "enum": [ + "NANOSECOND", + "MICROSECOND", + "MILLISECOND", + "SECOND", + "MINUTE", + "HOUR", "DAY", "WEEK", "MONTH", "QUARTER", "YEAR", + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", "day", "week", "month", @@ -677,11 +689,23 @@ }, "grain": { "enum": [ + "NANOSECOND", + "MICROSECOND", + "MILLISECOND", + "SECOND", + "MINUTE", + "HOUR", "DAY", "WEEK", "MONTH", "QUARTER", "YEAR", + "nanosecond", + "microsecond", + "millisecond", + "second", + "minute", + "hour", "day", "week", "month", diff --git a/dbt_semantic_interfaces/parsing/schemas.py b/dbt_semantic_interfaces/parsing/schemas.py index dcc0a1cf..78a60f3e 100644 --- a/dbt_semantic_interfaces/parsing/schemas.py +++ b/dbt_semantic_interfaces/parsing/schemas.py @@ -34,7 +34,19 @@ window_aggregation_type_values = ["MIN", "MAX"] window_aggregation_type_values += [x.lower() for x in window_aggregation_type_values] -time_granularity_values = ["DAY", "WEEK", "MONTH", "QUARTER", "YEAR"] +time_granularity_values = [ + "NANOSECOND", + "MICROSECOND", + "MILLISECOND", + "SECOND", + "MINUTE", + "HOUR", + "DAY", + "WEEK", + "MONTH", + "QUARTER", + "YEAR", +] time_granularity_values += [x.lower() for x in time_granularity_values] dimension_type_values = ["CATEGORICAL", "TIME"] diff --git a/tests/fixtures/semantic_manifest_yamls/simple_semantic_manifest/semantic_models/id_verifications.yaml b/tests/fixtures/semantic_manifest_yamls/simple_semantic_manifest/semantic_models/id_verifications.yaml index e6303afe..1fb9b4f5 100644 --- a/tests/fixtures/semantic_manifest_yamls/simple_semantic_manifest/semantic_models/id_verifications.yaml +++ b/tests/fixtures/semantic_manifest_yamls/simple_semantic_manifest/semantic_models/id_verifications.yaml @@ -19,7 +19,7 @@ semantic_model: - name: ds type: time type_params: - time_granularity: day + time_granularity: second - name: ds_partitioned type: time is_partition: true