diff --git a/core/dbt/artifacts/resources/v1/components.py b/core/dbt/artifacts/resources/v1/components.py index 6f3781b06c0..01f5cdf36d4 100644 --- a/core/dbt/artifacts/resources/v1/components.py +++ b/core/dbt/artifacts/resources/v1/components.py @@ -133,7 +133,7 @@ def __bool__(self): @dataclass class HasRelationMetadata(dbtClassMixin): database: Optional[str] - schema: str + schema: Optional[str] # Can't set database to None like it ought to be # because it messes up the subclasses and default parameters diff --git a/schemas/dbt/manifest/v12.json b/schemas/dbt/manifest/v12.json index 0be0a978588..5d5aed78a21 100644 --- a/schemas/dbt/manifest/v12.json +++ b/schemas/dbt/manifest/v12.json @@ -121,7 +121,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -783,7 +790,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "alias": { "type": "string" @@ -1193,7 +1207,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -1999,7 +2020,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -2665,7 +2693,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -3482,7 +3517,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -4405,7 +4447,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "alias": { "type": "string" @@ -4910,7 +4959,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -5716,7 +5772,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -6443,7 +6506,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -7369,7 +7439,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "alias": { "type": "string" @@ -7789,7 +7866,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -10090,7 +10174,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -10752,7 +10843,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "alias": { "type": "string" @@ -11162,7 +11260,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -11968,7 +12073,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -12634,7 +12746,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -13451,7 +13570,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -14374,7 +14500,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "alias": { "type": "string" @@ -14879,7 +15012,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -15685,7 +15825,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -16412,7 +16559,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" @@ -17338,7 +17492,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "alias": { "type": "string" @@ -17749,7 +17910,14 @@ ] }, "schema": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "type": "string"