From 6543ddbe7e588718414ce6b389c287f3c80d8064 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 13:47:49 +0300 Subject: [PATCH 01/87] workflows --- .github/workflows/ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..337d50e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: CI +on: + push: + branches: + - master + pull_request: {} + +jobs: + ci: + strategy: + fail-fast: false + matrix: + python-version: [3.9] + poetry-version: [1.1.11] + os: [ubuntu-18.04] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Run image + uses: abatilo/actions-poetry@v2.0.0 + with: + poetry-version: ${{ matrix.poetry-version }} + - name: Poetry Build + run: poetry build + - name: Build and publish to pypi + if: ${{ !github.event.issue.pull_request }} + uses: JRubics/poetry-publish@v1.10 + with: + repository_username: ${{ secrets.JFROG_USER }} + repository_password: ${{ secrets.JFROG_PASSWORD }} + repository_name: "dbt2looker" + repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" \ No newline at end of file From 69e956fdf1be3d65f1da3a28341199d520e2cd4d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 14:09:03 +0300 Subject: [PATCH 02/87] workflows --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 337d50e..c549770 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,4 +32,4 @@ jobs: repository_username: ${{ secrets.JFROG_USER }} repository_password: ${{ secrets.JFROG_PASSWORD }} repository_name: "dbt2looker" - repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" \ No newline at end of file + repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" From 3311e6af906554e3037ea7d1f4b5206caa9c9b5e Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 14:12:39 +0300 Subject: [PATCH 03/87] workflows --- .github/workflows/ci.yml | 6 ++++-- .vscode/settings.json | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c549770..a13755d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,11 @@ jobs: - name: Run image uses: abatilo/actions-poetry@v2.0.0 with: - poetry-version: ${{ matrix.poetry-version }} + poetry-version: ${{ matrix.poetry-version }} + - name: Poetry Version + run: poetry version prepatch - name: Poetry Build - run: poetry build + run: poetry build - name: Build and publish to pypi if: ${{ !github.event.issue.pull_request }} uses: JRubics/poetry-publish@v1.10 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4fa7638 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "jira-plugin.workingProject": "", + "files.associations": { + "*.yaml": "home-assistant" + } +} \ No newline at end of file From 1ce9960767b8ebca0d68818efc97ad663e657652 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 14:19:51 +0300 Subject: [PATCH 04/87] workflows --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a13755d..2b5181e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,8 +23,12 @@ jobs: uses: abatilo/actions-poetry@v2.0.0 with: poetry-version: ${{ matrix.poetry-version }} - - name: Poetry Version + - name: Poetry Version Pull Request + if: ${{ !github.event.issue.pull_request }} run: poetry version prepatch + - name: Poetry Version Master + if: ${{ github.event.issue.pull_request }} + run: poetry version patch - name: Poetry Build run: poetry build - name: Build and publish to pypi @@ -35,3 +39,7 @@ jobs: repository_password: ${{ secrets.JFROG_PASSWORD }} repository_name: "dbt2looker" repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" + - name: Push Version to git + uses: stefanzweifel/git-auto-commit-action@v4 + commit_message: "Automated Change: Version Updated" + file_pattern: pyproject.toml \ No newline at end of file From 5473b9a0cd8ab9f72d562773d9f5677c423ed47d Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 14:21:08 +0300 Subject: [PATCH 05/87] workflows --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b5181e..5189008 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,5 +41,6 @@ jobs: repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" - name: Push Version to git uses: stefanzweifel/git-auto-commit-action@v4 - commit_message: "Automated Change: Version Updated" - file_pattern: pyproject.toml \ No newline at end of file + with: + commit_message: "Automated Change: Version Updated" + file_pattern: pyproject.toml \ No newline at end of file From 4ef9d0aa1625013bb8ba1139bcfc7993f0573da7 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 15:26:26 +0300 Subject: [PATCH 06/87] workflows --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 52330a4..b20cf04 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dbt2looker" -version = "0.9.3" +version = "0.9.4" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 8fde769a8863f21c7d7d465866193470d5720398 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 15:34:12 +0300 Subject: [PATCH 07/87] update name --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index b20cf04..3e854e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,12 +1,12 @@ [tool.poetry] -name = "dbt2looker" +name = "yoda-dbt2looker" version = "0.9.4" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" readme = "README.md" -homepage = "https://github.com/hubble-data/dbt2looker" -repository = "https://github.com/hubble-data/dbt2looker" +homepage = "https://github.com/YotpoLtd/yoda-dbt2looker" +repository = "https://github.com/YotpoLtd/yoda-dbt2looker" [tool.poetry.dependencies] python = ">=3.7" From 94fdbc5a630cf7ec03da8a58f4e356442655fb4b Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 26 Apr 2022 15:35:53 +0300 Subject: [PATCH 08/87] update name --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3e854e9..4a7853e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [tool.poetry] -name = "yoda-dbt2looker" +name = "dbt2looker" version = "0.9.4" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" readme = "README.md" -homepage = "https://github.com/YotpoLtd/yoda-dbt2looker" +homepage = "https://github.com/hubble-data/dbt2looker" repository = "https://github.com/YotpoLtd/yoda-dbt2looker" [tool.poetry.dependencies] From 455ac9bc0688eea611be0d8f4ca53594a6cd251e Mon Sep 17 00:00:00 2001 From: retraut Date: Tue, 26 Apr 2022 13:43:05 +0000 Subject: [PATCH 09/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4a7853e..54d7bce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dbt2looker" -version = "0.9.4" +version = "0.9.5-alpha.0" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From faa57b02848ff7929eac35a2534257ffd95e39e0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 28 Apr 2022 11:49:55 +0300 Subject: [PATCH 10/87] fix manifest --- dbt2looker/cli.py | 26 +- .../dbt_json_schemas/manifest_dbt2looker.json | 1920 ++++-- dbt2looker/dbt_json_schemas/manifest_v4.json | 5939 +++++++++++++++++ dbt2looker/generator.py | 2 + 4 files changed, 7322 insertions(+), 565 deletions(-) create mode 100644 dbt2looker/dbt_json_schemas/manifest_v4.json diff --git a/dbt2looker/cli.py b/dbt2looker/cli.py index a7c0ee4..ad8e294 100644 --- a/dbt2looker/cli.py +++ b/dbt2looker/cli.py @@ -98,20 +98,23 @@ def run(): type=str, ) args = argparser.parse_args() + run_convert(args.target_dir, args.project_dir, args.output_dir, args.tag, args.log_level) + +def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOKML_OUTPUT_DIR, tag=None, log_level='INFO'): logging.basicConfig( - level=getattr(logging, args.log_level), + level=getattr(logging, log_level), format='%(asctime)s %(levelname)-6s %(message)s', datefmt='%H:%M:%S', ) # Load raw manifest file - raw_manifest = get_manifest(prefix=args.target_dir) - raw_catalog = get_catalog(prefix=args.target_dir) - raw_config = get_dbt_project_config(prefix=args.project_dir) + raw_manifest = get_manifest(prefix=target_dir) + raw_catalog = get_catalog(prefix=target_dir) + raw_config = get_dbt_project_config(prefix=project_dir) - # Get dbt models from manifest + # Get dbt models from manifestpo dbt_project_config = parser.parse_dbt_project_config(raw_config) - typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, tag=args.tag) + typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, tag=tag) adapter_type = parser.parse_adapter_type(raw_manifest) # Generate lookml views @@ -119,12 +122,12 @@ def run(): generator.lookml_view_from_dbt_model(model, adapter_type) for model in typed_dbt_models ] - pathlib.Path(os.path.join(args.output_dir, 'views')).mkdir(parents=True, exist_ok=True) + pathlib.Path(os.path.join(output_dir, 'views')).mkdir(parents=True, exist_ok=True) for view in lookml_views: - with open(os.path.join(args.output_dir, 'views', view.filename), 'w') as f: + with open(os.path.join(output_dir, 'views', view.filename), 'w') as f: f.write(view.contents) - logging.info(f'Generated {len(lookml_views)} lookml views in {os.path.join(args.output_dir, "views")}') + logging.info(f'Generated {len(lookml_views)} lookml views in {os.path.join(output_dir, "views")}') # Generate Lookml models lookml_models = [ @@ -132,7 +135,8 @@ def run(): for model in typed_dbt_models ] for model in lookml_models: - with open(os.path.join(args.output_dir, model.filename), 'w') as f: + with open(os.path.join(output_dir, model.filename), 'w') as f: f.write(model.contents) - logging.info(f'Generated {len(lookml_models)} lookml models in {args.output_dir}') + logging.info(f'Generated {len(lookml_models)} lookml models in {output_dir}') logging.info('Success') + diff --git a/dbt2looker/dbt_json_schemas/manifest_dbt2looker.json b/dbt2looker/dbt_json_schemas/manifest_dbt2looker.json index 7c928b5..c804e72 100644 --- a/dbt2looker/dbt_json_schemas/manifest_dbt2looker.json +++ b/dbt2looker/dbt_json_schemas/manifest_dbt2looker.json @@ -7,6 +7,7 @@ "macros", "docs", "exposures", + "metrics", "selectors" ], "properties": { @@ -22,7 +23,7 @@ "$ref": "#/definitions/CompiledAnalysisNode" }, { - "$ref": "#/definitions/CompiledDataTestNode" + "$ref": "#/definitions/CompiledSingularTestNode" }, { "$ref": "#/definitions/CompiledModelNode" @@ -34,7 +35,10 @@ "$ref": "#/definitions/CompiledRPCNode" }, { - "$ref": "#/definitions/CompiledSchemaTestNode" + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" }, { "$ref": "#/definitions/CompiledSeedNode" @@ -46,7 +50,7 @@ "$ref": "#/definitions/ParsedAnalysisNode" }, { - "$ref": "#/definitions/ParsedDataTestNode" + "$ref": "#/definitions/ParsedSingularTestNode" }, { "$ref": "#/definitions/ParsedHookNode" @@ -58,7 +62,10 @@ "$ref": "#/definitions/ParsedRPCNode" }, { - "$ref": "#/definitions/ParsedSchemaTestNode" + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" }, { "$ref": "#/definitions/ParsedSeedNode" @@ -98,6 +105,13 @@ }, "description": "The exposures defined in the dbt project and its dependencies" }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, "selectors": { "type": "object", "description": "The selectors defined in selectors.yml" @@ -105,68 +119,77 @@ "disabled": { "oneOf": [ { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledDataTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSchemaTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedDataTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSchemaTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedSourceDefinition" - } - ] + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } } }, { "type": "null" } ], - "description": "A list of the disabled nodes in the target" + "description": "A mapping of the disabled nodes in the target" }, "parent_map": { "oneOf": [ @@ -204,7 +227,7 @@ } }, "additionalProperties": false, - "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", "definitions": { "LightdashDimension": { "type": "object", @@ -374,16 +397,16 @@ "properties": { "dbt_schema_version": { "type": "string", - "default": "https://schemas.getdbt.com/dbt/manifest/v2.json" + "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" }, "dbt_version": { "type": "string", - "default": "0.20.0rc1" + "default": "1.0.0rc2" }, "generated_at": { "type": "string", "format": "date-time", - "default": "2021-06-07T14:49:01.099700Z" + "default": "2021-11-30T01:35:47.307789Z" }, "invocation_id": { "oneOf": [ @@ -393,7 +416,8 @@ { "type": "null" } - ] + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" }, "env": { "type": "object", @@ -528,16 +552,17 @@ "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -562,7 +587,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -633,8 +661,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.3118432 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -669,7 +701,7 @@ } }, "additionalProperties": false, - "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" }, "FileHash": { "type": "object", @@ -696,40 +728,6 @@ "type": "boolean", "default": true }, - "materialized": { - "type": "string", - "default": "view" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, "alias": { "oneOf": [ { @@ -774,6 +772,40 @@ ], "default": [] }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, "full_refresh": { "oneOf": [ { @@ -783,10 +815,21 @@ "type": "null" } ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" } }, "additionalProperties": true, - "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None)" + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" }, "Hook": { "type": "object", @@ -915,7 +958,7 @@ "additionalProperties": false, "description": "InjectedCTE(id: str, sql: str)" }, - "CompiledDataTestNode": { + "CompiledSingularTestNode": { "type": "object", "required": [ "raw_sql", @@ -992,25 +1035,19 @@ "$ref": "#/definitions/TestConfig", "default": { "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], - "full_refresh": null, + "meta": {}, + "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", - "error_if": "!= 0", - "post-hook": [], - "pre-hook": [] + "error_if": "!= 0" } }, "tags": { @@ -1033,7 +1070,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -1057,7 +1097,7 @@ }, "meta": { "type": "object", - "$ref": "#/definitions/LightdashModelMetadata" + "default": {} }, "docs": { "$ref": "#/definitions/Docs", @@ -1104,8 +1144,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.314477 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -1140,7 +1184,7 @@ } }, "additionalProperties": false, - "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" }, "TestConfig": { "type": "object", @@ -1150,40 +1194,6 @@ "type": "boolean", "default": true }, - "materialized": { - "type": "string", - "default": "test" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, "alias": { "oneOf": [ { @@ -1229,15 +1239,13 @@ ], "default": [] }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" }, "severity": { "type": "string", @@ -1288,7 +1296,7 @@ } }, "additionalProperties": true, - "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'test', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" }, "CompiledModelNode": { "type": "object", @@ -1367,16 +1375,17 @@ "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -1401,7 +1410,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -1472,8 +1484,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.315979 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -1508,7 +1524,7 @@ } }, "additionalProperties": false, - "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" }, "CompiledHookNode": { "type": "object", @@ -1587,16 +1603,17 @@ "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -1621,7 +1638,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -1692,8 +1712,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.317642 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -1738,7 +1762,7 @@ } }, "additionalProperties": false, - "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" }, "CompiledRPCNode": { "type": "object", @@ -1817,16 +1841,17 @@ "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -1851,7 +1876,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -1922,8 +1950,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.319278 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -1958,13 +1990,12 @@ } }, "additionalProperties": false, - "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" }, - "CompiledSchemaTestNode": { + "CompiledSqlNode": { "type": "object", "required": [ "raw_sql", - "test_metadata", "compiled", "schema", "fqn", @@ -1982,9 +2013,6 @@ "raw_sql": { "type": "string" }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, "compiled": { "type": "boolean" }, @@ -2028,7 +2056,7 @@ "resource_type": { "type": "string", "enum": [ - "test" + "sql" ] }, "alias": { @@ -2038,26 +2066,20 @@ "$ref": "#/definitions/FileHash" }, "config": { - "$ref": "#/definitions/TestConfig", + "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, - "schema": "dbt_test__audit", + "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0", + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -2082,7 +2104,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -2153,8 +2178,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.321433 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -2186,52 +2215,16 @@ "type": "null" } ] - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" - }, - "TestMetadata": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "kwargs": { - "type": "object", - "default": {} - }, - "namespace": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] } }, "additionalProperties": false, - "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" }, - "CompiledSeedNode": { + "CompiledGenericTestNode": { "type": "object", "required": [ "raw_sql", + "test_metadata", "compiled", "schema", "fqn", @@ -2249,6 +2242,9 @@ "raw_sql": { "type": "string" }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, "compiled": { "type": "boolean" }, @@ -2292,7 +2288,7 @@ "resource_type": { "type": "string", "enum": [ - "seed" + "test" ] }, "alias": { @@ -2302,22 +2298,22 @@ "$ref": "#/definitions/FileHash" }, "config": { - "$ref": "#/definitions/SeedConfig", + "$ref": "#/definitions/TestConfig", "default": { "enabled": true, - "materialized": "seed", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, - "schema": null, + "schema": "dbt_test__audit", "database": null, "tags": [], - "full_refresh": null, - "quote_columns": null, - "post-hook": [], - "pre-hook": [] + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" } }, "tags": { @@ -2340,7 +2336,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -2411,8 +2410,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.323731 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -2444,54 +2447,8 @@ "type": "null" } ] - } - }, - "additionalProperties": false, - "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "SeedConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "seed" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { + "column_name": { "oneOf": [ { "type": "string" @@ -2501,7 +2458,7 @@ } ] }, - "schema": { + "file_key_name": { "oneOf": [ { "type": "string" @@ -2510,45 +2467,28 @@ "type": "null" } ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "kwargs": { + "type": "object", + "default": {} }, - "tags": { + "namespace": { "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, { "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "quote_columns": { - "oneOf": [ - { - "type": "boolean" }, { "type": "null" @@ -2556,10 +2496,10 @@ ] } }, - "additionalProperties": true, - "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, quote_columns: Union[bool, NoneType] = None)" + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" }, - "CompiledSnapshotNode": { + "CompiledSeedNode": { "type": "object", "required": [ "raw_sql", @@ -2623,7 +2563,7 @@ "resource_type": { "type": "string", "enum": [ - "snapshot" + "seed" ] }, "alias": { @@ -2633,19 +2573,21 @@ "$ref": "#/definitions/FileHash" }, "config": { - "$ref": "#/definitions/NodeConfig", + "$ref": "#/definitions/SeedConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, "post-hook": [], "pre-hook": [] } @@ -2670,7 +2612,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -2741,8 +2686,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.326388 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "compiled_sql": { "oneOf": [ @@ -2777,9 +2726,551 @@ } }, "additionalProperties": false, - "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.328031 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.329485 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, - "ParsedAnalysisNode": { + "ParsedSingularTestNode": { "type": "object", "required": [ "raw_sql", @@ -2839,7 +3330,7 @@ "resource_type": { "type": "string", "enum": [ - "analysis" + "test" ] }, "alias": { @@ -2849,21 +3340,22 @@ "$ref": "#/definitions/FileHash" }, "config": { - "$ref": "#/definitions/NodeConfig", + "$ref": "#/definitions/TestConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, - "schema": null, + "schema": "dbt_test__audit", "database": null, "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" } }, "tags": { @@ -2886,7 +3378,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -2957,14 +3452,18 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.3306549 + }, + "config_call_dict": { + "type": "object", + "default": {} } }, "additionalProperties": false, - "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, - "ParsedDataTestNode": { + "ParsedHookNode": { "type": "object", "required": [ "raw_sql", @@ -3024,7 +3523,7 @@ "resource_type": { "type": "string", "enum": [ - "test" + "operation" ] }, "alias": { @@ -3034,26 +3533,20 @@ "$ref": "#/definitions/FileHash" }, "config": { - "$ref": "#/definitions/TestConfig", + "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, - "schema": "dbt_test__audit", + "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0", + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -3078,7 +3571,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -3149,14 +3645,28 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.332001 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, - "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" }, - "ParsedHookNode": { + "ParsedModelNode": { "type": "object", "required": [ "raw_sql", @@ -3216,7 +3726,7 @@ "resource_type": { "type": "string", "enum": [ - "operation" + "model" ] }, "alias": { @@ -3229,16 +3739,17 @@ "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -3263,7 +3774,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -3334,24 +3848,18 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.333348 }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] + "config_call_dict": { + "type": "object", + "default": {} } }, "additionalProperties": false, - "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , index: Union[int, NoneType] = None)" + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, - "ParsedModelNode": { + "ParsedRPCNode": { "type": "object", "required": [ "raw_sql", @@ -3411,7 +3919,7 @@ "resource_type": { "type": "string", "enum": [ - "model" + "rpc" ] }, "alias": { @@ -3424,16 +3932,17 @@ "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -3458,7 +3967,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -3529,14 +4041,18 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.335125 + }, + "config_call_dict": { + "type": "object", + "default": {} } }, "additionalProperties": false, - "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, - "ParsedRPCNode": { + "ParsedSqlNode": { "type": "object", "required": [ "raw_sql", @@ -3596,7 +4112,7 @@ "resource_type": { "type": "string", "enum": [ - "rpc" + "sql" ] }, "alias": { @@ -3609,16 +4125,17 @@ "$ref": "#/definitions/NodeConfig", "default": { "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "post-hook": [], "pre-hook": [] } @@ -3643,7 +4160,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -3714,14 +4234,18 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.336567 + }, + "config_call_dict": { + "type": "object", + "default": {} } }, "additionalProperties": false, - "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, - "ParsedSchemaTestNode": { + "ParsedGenericTestNode": { "type": "object", "required": [ "raw_sql", @@ -3798,25 +4322,19 @@ "$ref": "#/definitions/TestConfig", "default": { "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], - "full_refresh": null, + "meta": {}, + "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", - "error_if": "!= 0", - "post-hook": [], - "pre-hook": [] + "error_if": "!= 0" } }, "tags": { @@ -3839,7 +4357,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -3910,8 +4431,12 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.3383949 + }, + "config_call_dict": { + "type": "object", + "default": {} }, "column_name": { "oneOf": [ @@ -3922,10 +4447,20 @@ "type": "null" } ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, - "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , column_name: Union[str, NoneType] = None)" + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" }, "ParsedSeedNode": { "type": "object", @@ -4000,16 +4535,17 @@ "$ref": "#/definitions/SeedConfig", "default": { "enabled": true, - "materialized": "seed", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, "alias": null, "schema": null, "database": null, "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, "full_refresh": null, + "on_schema_change": "ignore", "quote_columns": null, "post-hook": [], "pre-hook": [] @@ -4035,7 +4571,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -4106,12 +4645,16 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.339838 + }, + "config_call_dict": { + "type": "object", + "default": {} } }, "additionalProperties": false, - "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "ParsedSnapshotNode": { "type": "object", @@ -4206,7 +4749,10 @@ "sources": { "type": "array", "items": { - "type": "array" + "type": "array", + "items": { + "type": "string" + } }, "default": [] }, @@ -4277,12 +4823,16 @@ "default": {} }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.3425322 + }, + "config_call_dict": { + "type": "object", + "default": {} } }, "additionalProperties": false, - "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "SnapshotConfig": { "type": "object", @@ -4292,6 +4842,54 @@ "type": "boolean", "default": true }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, "materialized": { "type": "string", "default": "snapshot" @@ -4314,71 +4912,34 @@ }, "default": [] }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "quoting": { + "type": "object", + "default": {} }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "column_types": { + "type": "object", + "default": {} }, - "database": { + "full_refresh": { "oneOf": [ { - "type": "string" + "type": "boolean" }, { "type": "null" } ] }, - "tags": { + "on_schema_change": { "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, { "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" }, { "type": "null" } - ] + ], + "default": "ignore" }, "strategy": { "oneOf": [ @@ -4448,7 +5009,7 @@ } }, "additionalProperties": true, - "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" }, "ParsedSourceDefinition": { "type": "object", @@ -4619,12 +5180,12 @@ ] }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.345053 } }, "additionalProperties": false, - "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: int = )" + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" }, "Quoting": { "type": "object", @@ -4686,7 +5247,11 @@ { "type": "null" } - ] + ], + "default": { + "count": null, + "period": null + } }, "error_after": { "oneOf": [ @@ -4696,7 +5261,11 @@ { "type": "null" } - ] + ], + "default": { + "count": null, + "period": null + } }, "filter": { "oneOf": [ @@ -4710,7 +5279,7 @@ } }, "additionalProperties": false, - "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" }, "FreshnessMetadata": { "type": "object", @@ -4718,16 +5287,16 @@ "properties": { "dbt_schema_version": { "type": "string", - "default": "https://schemas.getdbt.com/dbt/sources/v1.json" + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" }, "dbt_version": { "type": "string", - "default": "0.20.0rc1" + "default": "1.0.0rc2" }, "generated_at": { "type": "string", "format": "date-time", - "default": "2021-06-07T14:49:01.095724Z" + "default": "2021-11-30T01:35:47.301745Z" }, "invocation_id": { "oneOf": [ @@ -4737,7 +5306,8 @@ { "type": "null" } - ] + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" }, "env": { "type": "object", @@ -4748,7 +5318,7 @@ } }, "additionalProperties": false, - "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.20.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" }, "SourceFreshnessRuntimeError": { "type": "object", @@ -4792,7 +5362,10 @@ "max_loaded_at_time_ago_in_s", "status", "criteria", - "adapter_response" + "adapter_response", + "timing", + "thread_id", + "execution_time" ], "properties": { "unique_id": { @@ -4823,32 +5396,90 @@ }, "adapter_response": { "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" } }, "additionalProperties": false, - "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" }, "Time": { "type": "object", - "required": [ - "count", - "period" - ], + "required": [], "properties": { "count": { - "type": "integer" + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] }, "period": { - "type": "string", - "enum": [ - "minute", - "hour", - "day" + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } ] } }, "additionalProperties": false, - "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" }, "ExternalTable": { "type": "object", @@ -5032,12 +5663,12 @@ "default": [] }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.345993 } }, "additionalProperties": false, - "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: int = )" + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" }, "MacroDependsOn": { "type": "object", @@ -5179,10 +5810,12 @@ "operation", "seed", "rpc", + "sql", "docs", "source", "macro", - "exposure" + "exposure", + "metric" ], "default": "exposure" }, @@ -5254,12 +5887,12 @@ "default": [] }, "created_at": { - "type": "integer", - "default": 1623077341 + "type": "number", + "default": 1638236147.347234 } }, "additionalProperties": false, - "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: int = )" + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" }, "ExposureOwner": { "type": "object", @@ -5283,8 +5916,187 @@ }, "additionalProperties": false, "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "model", + "name", + "description", + "label", + "type", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.348404 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" } }, "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schemas.lightdash.com/dbt2looker/manifest/v2.json" + "$id": "https://schemas.lightdash.com/dbt2looker/manifest/v4.json" } \ No newline at end of file diff --git a/dbt2looker/dbt_json_schemas/manifest_v4.json b/dbt2looker/dbt_json_schemas/manifest_v4.json new file mode 100644 index 0000000..6db292f --- /dev/null +++ b/dbt2looker/dbt_json_schemas/manifest_v4.json @@ -0,0 +1,5939 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.307789Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3118432 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.314477 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.315979 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.317642 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.319278 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.321433 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.323731 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.326388 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.328031 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.329485 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3306549 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.332001 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.333348 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.335125 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.336567 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3383949 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.339838 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3425322 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1638236147.345053 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.301745Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.345993 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.347234 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "model", + "name", + "description", + "label", + "type", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.348404 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v4.json" +} \ No newline at end of file diff --git a/dbt2looker/generator.py b/dbt2looker/generator.py index 65ef549..0d828c8 100644 --- a/dbt2looker/generator.py +++ b/dbt2looker/generator.py @@ -193,6 +193,8 @@ def normalise_spark_types(column_type: str) -> str: def map_adapter_type_to_looker(adapter_type: models.SupportedDbtAdapters, column_type: str): + if column_type is None: + return None normalised_column_type = normalise_spark_types(column_type) if adapter_type == models.SupportedDbtAdapters.spark.value else column_type looker_type = LOOKER_DTYPE_MAP[adapter_type].get(normalised_column_type) if (column_type is not None) and (looker_type is None): From 4d565b1952f7c2785072e786ab34bb3a8f20087f Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 28 Apr 2022 13:05:02 +0300 Subject: [PATCH 11/87] change master to main --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5189008..61ed7e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: branches: - - master + - main pull_request: {} jobs: From 8620a8e001e5f4d2f9b83a60a9b0aff34adf1fc9 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Thu, 28 Apr 2022 13:34:22 +0300 Subject: [PATCH 12/87] sperate forkflows --- .github/workflows/ci.yml | 20 ------------------ .github/workflows/master.yml | 40 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61ed7e0..63a2ff4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,5 @@ name: CI on: - push: - branches: - - main pull_request: {} jobs: @@ -24,23 +21,6 @@ jobs: with: poetry-version: ${{ matrix.poetry-version }} - name: Poetry Version Pull Request - if: ${{ !github.event.issue.pull_request }} run: poetry version prepatch - - name: Poetry Version Master - if: ${{ github.event.issue.pull_request }} - run: poetry version patch - name: Poetry Build run: poetry build - - name: Build and publish to pypi - if: ${{ !github.event.issue.pull_request }} - uses: JRubics/poetry-publish@v1.10 - with: - repository_username: ${{ secrets.JFROG_USER }} - repository_password: ${{ secrets.JFROG_PASSWORD }} - repository_name: "dbt2looker" - repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" - - name: Push Version to git - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "Automated Change: Version Updated" - file_pattern: pyproject.toml \ No newline at end of file diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..445b629 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,40 @@ +name: CI +on: + push: + branches: + - main + +jobs: + ci: + strategy: + fail-fast: false + matrix: + python-version: [3.9] + poetry-version: [1.1.11] + os: [ubuntu-18.04] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Run image + uses: abatilo/actions-poetry@v2.0.0 + with: + poetry-version: ${{ matrix.poetry-version }} + - name: Poetry Version Master + run: poetry version patch + - name: Poetry Build + run: poetry build + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.10 + with: + repository_username: ${{ secrets.JFROG_USER }} + repository_password: ${{ secrets.JFROG_PASSWORD }} + repository_name: "dbt2looker" + repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" + - name: Push Version to git + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "Automated Change: Version Updated" + file_pattern: pyproject.toml \ No newline at end of file From 8c8ecc74075b49f9be518ab77687cff7edbfe04c Mon Sep 17 00:00:00 2001 From: chaimt Date: Thu, 28 Apr 2022 10:41:44 +0000 Subject: [PATCH 13/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 54d7bce..880b315 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dbt2looker" -version = "0.9.5-alpha.0" +version = "0.9.5" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 4363e093051057d81366b3c64d71aa5cb63262eb Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 1 May 2022 16:42:32 +0300 Subject: [PATCH 14/87] update version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 880b315..43182d4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dbt2looker" -version = "0.9.5" +version = "0.9.6" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 253be4db818f6b6d189e36533675bef6b80a55e5 Mon Sep 17 00:00:00 2001 From: chaimt Date: Sun, 1 May 2022 13:43:53 +0000 Subject: [PATCH 15/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 43182d4..0983294 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dbt2looker" -version = "0.9.6" +version = "0.9.7" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 54b01b6d0d9851d39113aecbd1a733c3f213a9d0 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 1 May 2022 16:50:32 +0300 Subject: [PATCH 16/87] update version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 43182d4..87d14ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [tool.poetry] -name = "dbt2looker" +name = "yoda-dbt2looker" version = "0.9.6" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] From 842a0a151378bb711be9a0ad4fc033e053f616f8 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 1 May 2022 16:57:24 +0300 Subject: [PATCH 17/87] update version --- yoda_dbt2looker/__init__.py | 0 yoda_dbt2looker/cli.py | 142 + yoda_dbt2looker/dbt_json_schemas/__init__.py | 0 .../dbt_json_schemas/manifest_dbt2looker.json | 6102 +++++++++++++++++ .../dbt_json_schemas/manifest_v1.json | 5073 ++++++++++++++ .../dbt_json_schemas/manifest_v2.json | 5127 ++++++++++++++ .../dbt_json_schemas/manifest_v4.json | 5939 ++++++++++++++++ yoda_dbt2looker/generator.py | 347 + yoda_dbt2looker/models.py | 217 + yoda_dbt2looker/parser.py | 125 + 10 files changed, 23072 insertions(+) create mode 100644 yoda_dbt2looker/__init__.py create mode 100644 yoda_dbt2looker/cli.py create mode 100644 yoda_dbt2looker/dbt_json_schemas/__init__.py create mode 100644 yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json create mode 100644 yoda_dbt2looker/dbt_json_schemas/manifest_v1.json create mode 100644 yoda_dbt2looker/dbt_json_schemas/manifest_v2.json create mode 100644 yoda_dbt2looker/dbt_json_schemas/manifest_v4.json create mode 100644 yoda_dbt2looker/generator.py create mode 100644 yoda_dbt2looker/models.py create mode 100644 yoda_dbt2looker/parser.py diff --git a/yoda_dbt2looker/__init__.py b/yoda_dbt2looker/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/yoda_dbt2looker/cli.py b/yoda_dbt2looker/cli.py new file mode 100644 index 0000000..ad8e294 --- /dev/null +++ b/yoda_dbt2looker/cli.py @@ -0,0 +1,142 @@ +import argparse +import json +import logging +import pathlib +import os +try: + from importlib.metadata import version +except ImportError: + from importlib_metadata import version + +import yaml +try: + from yaml import CLoader as Loader +except ImportError: + from yaml import Loader + + +from . import parser +from . import generator + +MANIFEST_PATH = './manifest.json' +DEFAULT_LOOKML_OUTPUT_DIR = './lookml' + + +def get_manifest(prefix: str): + manifest_path = os.path.join(prefix, 'manifest.json') + try: + with open(manifest_path, 'r') as f: + raw_manifest = json.load(f) + except FileNotFoundError as e: + logging.error(f'Could not find manifest file at {manifest_path}. Use --target-dir to change the search path for the manifest.json file.') + raise SystemExit('Failed') + parser.validate_manifest(raw_manifest) + logging.debug(f'Detected valid manifest at {manifest_path}') + return raw_manifest + + +def get_catalog(prefix: str): + catalog_path = os.path.join(prefix, 'catalog.json') + try: + with open(catalog_path, 'r') as f: + raw_catalog = json.load(f) + except FileNotFoundError as e: + logging.error(f'Could not find catalog file at {catalog_path}. Use --target-dir to change the search path for the catalog.json file.') + raise SystemExit('Failed') + parser.validate_catalog(raw_catalog) + logging.debug(f'Detected valid catalog at {catalog_path}') + return raw_catalog + + +def get_dbt_project_config(prefix: str): + project_path = os.path.join(prefix, 'dbt_project.yml') + try: + with open(project_path, 'r') as f: + project_config = yaml.load(f, Loader=Loader) + except FileNotFoundError as e: + logging.error(f'Could a dbt_project.yml file at {project_path}. Use --project-dir to change the search path for the dbt_project.yml file.') + raise SystemExit('Failed') + logging.debug(f'Detected valid dbt config at {project_path}') + return project_config + + +def run(): + argparser = argparse.ArgumentParser() + argparser.add_argument( + '--version', + action='version', + version=f'dbt2looker {version("dbt2looker")}', + ) + argparser.add_argument( + '--project-dir', + help='Path to dbt project directory containing dbt_project.yml. Default is "."', + default='./', + type=str, + ) + argparser.add_argument( + '--target-dir', + help='Path to dbt target directory containing manifest.json and catalog.json. Default is "./target"', + default='./target', + type=str, + ) + argparser.add_argument( + '--tag', + help='Filter to dbt models using this tag', + type=str, + ) + argparser.add_argument( + '--log-level', + help='Set level of logs. Default is INFO', + choices=['DEBUG', 'INFO', 'WARN', 'ERROR'], + type=str, + default='INFO', + ) + argparser.add_argument( + '--output-dir', + help='Path to a directory that will contain the generated lookml files', + default=DEFAULT_LOOKML_OUTPUT_DIR, + type=str, + ) + args = argparser.parse_args() + run_convert(args.target_dir, args.project_dir, args.output_dir, args.tag, args.log_level) + +def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOKML_OUTPUT_DIR, tag=None, log_level='INFO'): + logging.basicConfig( + level=getattr(logging, log_level), + format='%(asctime)s %(levelname)-6s %(message)s', + datefmt='%H:%M:%S', + ) + + # Load raw manifest file + raw_manifest = get_manifest(prefix=target_dir) + raw_catalog = get_catalog(prefix=target_dir) + raw_config = get_dbt_project_config(prefix=project_dir) + + # Get dbt models from manifestpo + dbt_project_config = parser.parse_dbt_project_config(raw_config) + typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, tag=tag) + adapter_type = parser.parse_adapter_type(raw_manifest) + + # Generate lookml views + lookml_views = [ + generator.lookml_view_from_dbt_model(model, adapter_type) + for model in typed_dbt_models + ] + pathlib.Path(os.path.join(output_dir, 'views')).mkdir(parents=True, exist_ok=True) + for view in lookml_views: + with open(os.path.join(output_dir, 'views', view.filename), 'w') as f: + f.write(view.contents) + + logging.info(f'Generated {len(lookml_views)} lookml views in {os.path.join(output_dir, "views")}') + + # Generate Lookml models + lookml_models = [ + generator.lookml_model_from_dbt_model(model, dbt_project_config.name) + for model in typed_dbt_models + ] + for model in lookml_models: + with open(os.path.join(output_dir, model.filename), 'w') as f: + f.write(model.contents) + logging.info(f'Generated {len(lookml_models)} lookml models in {output_dir}') + logging.info('Success') + diff --git a/yoda_dbt2looker/dbt_json_schemas/__init__.py b/yoda_dbt2looker/dbt_json_schemas/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json new file mode 100644 index 0000000..c804e72 --- /dev/null +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json @@ -0,0 +1,6102 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "LightdashDimension": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "description": "When enabled a dimension will be created in lookml for this column, otherwise it will be ignored. Default is enabled=true.", + "default": true + }, + "name": { + "type": "string", + "pattern": "^[a-z][a-z0-9_]*$", + "description": "An optional name for the dimension, defaults to DBT column name" + }, + "description": { + "type": "string", + "description": "An optional description for the column, defaults to the DBT column description" + }, + "sql": { + "type": "string", + "description": "Optional sql string defining the dimension. Defaults to ${TABLE}.column_name" + }, + "value_format_name": { + "description": "Optional format for numerical dimensions", + "type": "string", + "enum": [ + "decimal_0", "decimal_1", "decimal_2", "decimal_3", "decimal_4", + "usd_0", "usd", + "gbp_0", "gbp", + "eur_0", "eur", + "id", + "percent_0", "percent_1", "percent_2", "percent_3", "percent_4" + ] + } + } + }, + "LightdashMeasure": { + "type": "object", + "required": ["type"], + "properties": { + "type": { + "description": "The type of the measure e.g. average, max min. Not all looker measure types are supported.", + "type": "string", + "enum": [ + "average", + "average_distinct", + "count", + "count_distinct", + "list", + "max", + "median", + "median_distinct", + "min", + "sum", + "sum_distinct" + ] + }, + "description": { + "description": "Optional description for the measure. Default's to a variant of the column description depending on the measure type.", + "type": "string" + }, + "sql": { + "description": "Optional sql string defining the measure value. Defaults ${TABLE}.column_name", + "type": "string" + }, + "value_format_name": { + "description": "Optional format for measure", + "type": "string", + "enum": [ + "decimal_0", "decimal_1", "decimal_2", "decimal_3", "decimal_4", + "usd_0", "usd", + "gbp_0", "gbp", + "eur_0", "eur", + "id", + "percent_0", "percent_1", "percent_2", "percent_3", "percent_4" + ] + }, + "filters": { + "type": "array", + "default": [], + "items": { + "description": "Object of filters. The keys must be a valid dimension name.", + "type": "object", + "required": [], + "patternProperties": { + "^[a-z][a-z0-9_]*$": { + "type": "string", + "description": "Lookml filter expression" + } + } + } + } + } + }, + "LightdashColumnMetadata": { + "type": "object", + "required": [], + "properties": { + "dimension": { + "$ref": "#/definitions/LightdashDimension" + } + }, + "patternProperties": { + "^measures?|metrics?$": { + "type": "object", + "description": "Object containing measures definitions. Keys ust be valid measure names and unique in this model.", + "patternProperties": { + "^[a-z][a-z0-9_]*$": { + "$ref": "#/definitions/LightdashMeasure" + } + }, + "default": {} + } + } + }, + "LightdashModelMetadata": { + "type": "object", + "required": [], + "properties": { + "joins": { + "type": "array", + "items": { + "type": "object", + "required": [ + "join", + "sql_on" + ], + "properties": { + "join": { + "description": "Name of the dbt model you'd like to join to", + "type": "string" + }, + "sql_on": { + "description": "Sql string defining the join. Use looker references ${table.dimension}=${table.dimesion}", + "type": "string" + }, + "type": { + "type": "string", + "default": "left_outer", + "enum": [ + "left_outer", + "full_outer", + "inner", + "cross" + ] + }, + "relationship": { + "type": "string", + "default": "many_to_one", + "enum": [ + "many_to_one", + "many_to_many", + "one_to_many", + "one_to_one" + ] + } + } + } + } + }, + "default": {} + }, + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.307789Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3118432 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "$ref": "#/definitions/LightdashColumnMetadata", + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.314477 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.315979 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.317642 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.319278 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.321433 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.323731 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.326388 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.328031 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.329485 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3306549 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.332001 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.333348 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.335125 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.336567 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3383949 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.339838 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3425322 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1638236147.345053 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.301745Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.345993 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.347234 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "model", + "name", + "description", + "label", + "type", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.348404 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.lightdash.com/dbt2looker/manifest/v4.json" +} \ No newline at end of file diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_v1.json b/yoda_dbt2looker/dbt_json_schemas/manifest_v1.json new file mode 100644 index 0000000..af80e5b --- /dev/null +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_v1.json @@ -0,0 +1,5073 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + }, + { + "type": "null" + } + ], + "description": "A list of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v1.json" + }, + "dbt_version": { + "type": "string", + "default": "0.19.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-02-10T04:42:33.683996Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "NodeConfig(*args, **kwds)" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "test" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + } + }, + "additionalProperties": true, + "description": "TestConfig(*args, **kwds)" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "CompiledSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name", + "kwargs" + ], + "properties": { + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + }, + "kwargs": { + "type": "object" + } + }, + "additionalProperties": false, + "description": "TestMetadata(namespace: Union[str, NoneType], name: str, kwargs: Dict[str, Any])" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(*args, **kwds)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , column_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "post-hook": [], + "pre-hook": [], + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "oneOf": [ + { + "$ref": "#/definitions/TimestampSnapshotConfig" + }, + { + "$ref": "#/definitions/CheckSnapshotConfig" + }, + { + "$ref": "#/definitions/GenericSnapshotConfig" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: Union[ForwardRef('TimestampSnapshotConfig'), ForwardRef('CheckSnapshotConfig'), ForwardRef('GenericSnapshotConfig')], tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" + }, + "TimestampSnapshotConfig": { + "type": "object", + "required": [ + "unique_key", + "target_schema", + "strategy", + "updated_at" + ], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "type": "string" + }, + "target_schema": { + "type": "string" + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "type": "string", + "enum": [ + "timestamp" + ] + }, + "updated_at": { + "type": "string" + } + }, + "additionalProperties": true, + "description": "TimestampSnapshotConfig(*args, **kwds)" + }, + "CheckSnapshotConfig": { + "type": "object", + "required": [ + "unique_key", + "target_schema", + "strategy", + "check_cols" + ], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "type": "string" + }, + "target_schema": { + "type": "string" + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "type": "string", + "enum": [ + "check" + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string", + "enum": [ + "all" + ] + }, + { + "type": "array", + "items": { + "type": "string" + } + } + ] + } + }, + "additionalProperties": true, + "description": "CheckSnapshotConfig(*args, **kwds)" + }, + "GenericSnapshotConfig": { + "type": "object", + "required": [ + "unique_key", + "target_schema", + "strategy" + ], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "type": "string" + }, + "target_schema": { + "type": "string" + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "allOf": [ + { + "type": "string" + }, + { + "not": { + "type": "string", + "enum": [ + "timestamp" + ] + } + }, + { + "not": { + "type": "string", + "enum": [ + "check" + ] + } + } + ] + } + }, + "additionalProperties": true, + "description": "GenericSnapshotConfig(*args, **kwds)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None)" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v1.json" + }, + "dbt_version": { + "type": "string", + "default": "0.19.0" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-02-10T04:42:33.675309Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.19.0', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(*args, **kwds)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "docs", + "source", + "macro", + "exposure" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v1.json" +} diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_v2.json b/yoda_dbt2looker/dbt_json_schemas/manifest_v2.json new file mode 100644 index 0000000..bb40495 --- /dev/null +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_v2.json @@ -0,0 +1,5127 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledDataTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSchemaTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedDataTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSchemaTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + }, + { + "type": "null" + } + ], + "description": "A list of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v2.json" + }, + "dbt_version": { + "type": "string", + "default": "0.20.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-06-07T14:49:01.099700Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None)" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "test" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'test', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedDataTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "materialized": "view", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedSchemaTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "materialized": "test", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "full_refresh": null, + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , column_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "materialized": "seed", + "persist_docs": {}, + "vars": {}, + "quoting": {}, + "column_types": {}, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "full_refresh": null, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "vars": { + "type": "object", + "default": {} + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: int = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ] + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v1.json" + }, + "dbt_version": { + "type": "string", + "default": "0.20.0rc1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-06-07T14:49:01.095724Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.20.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" + }, + "Time": { + "type": "object", + "required": [ + "count", + "period" + ], + "properties": { + "count": { + "type": "integer" + }, + "period": { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + } + }, + "additionalProperties": false, + "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: int = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "docs", + "source", + "macro", + "exposure" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "integer", + "default": 1623077341 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: int = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v2.json" +} \ No newline at end of file diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_v4.json b/yoda_dbt2looker/dbt_json_schemas/manifest_v4.json new file mode 100644 index 0000000..6db292f --- /dev/null +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_v4.json @@ -0,0 +1,5939 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.307789Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3118432 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.314477 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.315979 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.317642 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.319278 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.321433 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.323731 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.326388 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.328031 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.329485 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3306549 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.332001 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.333348 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.335125 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.336567 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3383949 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "on_schema_change": "ignore", + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.339838 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1638236147.3425322 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1638236147.345053 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.0.0rc2" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2021-11-30T01:35:47.301745Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.345993 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.347234 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "model", + "name", + "description", + "label", + "type", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "model": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1638236147.348404 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v4.json" +} \ No newline at end of file diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py new file mode 100644 index 0000000..0d828c8 --- /dev/null +++ b/yoda_dbt2looker/generator.py @@ -0,0 +1,347 @@ +import logging +import re + +import lkml + +from . import models + +LOOKER_DTYPE_MAP = { + 'bigquery': { + 'INT64': 'number', + 'INTEGER': 'number', + 'FLOAT': 'number', + 'FLOAT64': 'number', + 'NUMERIC': 'number', + 'BOOLEAN': 'yesno', + 'STRING': 'string', + 'TIMESTAMP': 'timestamp', + 'DATETIME': 'datetime', + 'DATE': 'date', + 'TIME': 'string', # Can time-only be handled better in looker? + 'BOOL': 'yesno', + 'ARRAY': 'string', + 'GEOGRAPHY': 'string', + }, + 'snowflake': { + 'NUMBER': 'number', + 'DECIMAL': 'number', + 'NUMERIC': 'number', + 'INT': 'number', + 'INTEGER': 'number', + 'BIGINT': 'number', + 'SMALLINT': 'number', + 'FLOAT': 'number', + 'FLOAT4': 'number', + 'FLOAT8': 'number', + 'DOUBLE': 'number', + 'DOUBLE PRECISION': 'number', + 'REAL': 'number', + 'VARCHAR': 'string', + 'CHAR': 'string', + 'CHARACTER': 'string', + 'STRING': 'string', + 'TEXT': 'string', + 'BINARY': 'string', + 'VARBINARY': 'string', + 'BOOLEAN': 'yesno', + 'DATE': 'date', + 'DATETIME': 'datetime', + 'TIME': 'string', # can we support time? + 'TIMESTAMP': 'timestamp', + 'TIMESTAMP_NTZ': 'timestamp', + # TIMESTAMP_LTZ not supported (see https://docs.looker.com/reference/field-params/dimension_group) + # TIMESTAMP_TZ not supported (see https://docs.looker.com/reference/field-params/dimension_group) + 'VARIANT': 'string', + 'OBJECT': 'string', + 'ARRAY': 'string', + 'GEOGRAPHY': 'string', + }, + 'redshift': { + 'SMALLINT': 'number', + 'INT2': 'number', + 'INTEGER': 'number', + 'INT': 'number', + 'INT4': 'number', + 'BIGINT': 'number', + 'INT8': 'number', + 'DECIMAL': 'number', + 'NUMERIC': 'number', + 'REAL': 'number', + 'FLOAT4': 'number', + 'DOUBLE PRECISION': 'number', + 'FLOAT8': 'number', + 'FLOAT': 'number', + 'BOOLEAN': 'yesno', + 'BOOL': 'yesno', + 'CHAR': 'string', + 'CHARACTER': 'string', + 'NCHAR': 'string', + 'BPCHAR': 'string', + 'VARCHAR': 'string', + 'CHARACTER VARYING': 'string', + 'NVARCHAR': 'string', + 'TEXT': 'string', + 'DATE': 'date', + 'TIMESTAMP': 'timestamp', + 'TIMESTAMP WITHOUT TIME ZONE': 'timestamp', + # TIMESTAMPTZ not supported + # TIMESTAMP WITH TIME ZONE not supported + 'GEOMETRY': 'string', + # HLLSKETCH not supported + 'TIME': 'string', + 'TIME WITHOUT TIME ZONE': 'string', + # TIMETZ not supported + # TIME WITH TIME ZONE not supported + }, + 'postgres': { + # BIT, BIT VARYING, VARBIT not supported + # BOX not supported + # BYTEA not supported + # CIRCLE not supported + # INTERVAL not supported + # LINE not supported + # LSEG not supported + # PATH not supported + # POINT not supported + # POLYGON not supported + # TSQUERY, TSVECTOR not supported + 'XML': 'string', + 'UUID': 'string', + 'PG_LSN': 'string', + 'MACADDR': 'string', + 'JSON': 'string', + 'JSONB': 'string', + 'CIDR': 'string', + 'INET': 'string', + 'MONEY': 'number', + 'SMALLINT': 'number', + 'INT2': 'number', + 'SMALLSERIAL': 'number', + 'SERIAL2': 'number', + 'INTEGER': 'number', + 'INT': 'number', + 'INT4': 'number', + 'SERIAL': 'number', + 'SERIAL4': 'number', + 'BIGINT': 'number', + 'INT8': 'number', + 'BIGSERIAL': 'number', + 'SERIAL8': 'number', + 'DECIMAL': 'number', + 'NUMERIC': 'number', + 'REAL': 'number', + 'FLOAT4': 'number', + 'DOUBLE PRECISION': 'number', + 'FLOAT8': 'number', + 'FLOAT': 'number', + 'BOOLEAN': 'yesno', + 'BOOL': 'yesno', + 'CHAR': 'string', + 'CHARACTER': 'string', + 'NCHAR': 'string', + 'BPCHAR': 'string', + 'VARCHAR': 'string', + 'CHARACTER VARYING': 'string', + 'NVARCHAR': 'string', + 'TEXT': 'string', + 'DATE': 'date', + 'TIMESTAMP': 'timestamp', + 'TIMESTAMP WITHOUT TIME ZONE': 'timestamp', + # TIMESTAMPTZ not supported + # TIMESTAMP WITH TIME ZONE not supported + 'GEOMETRY': 'string', + # HLLSKETCH not supported + 'TIME': 'string', + 'TIME WITHOUT TIME ZONE': 'string', + # TIMETZ not supported + # TIME WITH TIME ZONE not supported + }, + 'spark': { + 'byte': 'number', + 'short': 'number', + 'integer': 'number', + 'long': 'number', + 'float': 'number', + 'double': 'number', + 'decimal': 'number', + 'string': 'string', + 'varchar': 'string', + 'char': 'string', + 'boolean': 'yesno', + 'timestamp': 'timestamp', + 'date': 'datetime', + } +} + +looker_date_time_types = ['datetime', 'timestamp'] +looker_date_types = ['date'] +looker_scalar_types = ['number', 'yesno', 'string'] + +looker_timeframes = [ + 'raw', + 'time', + 'date', + 'week', + 'month', + 'quarter', + 'year', +] + + +def normalise_spark_types(column_type: str) -> str: + return re.match(r'^[^\(]*', column_type).group(0) + + +def map_adapter_type_to_looker(adapter_type: models.SupportedDbtAdapters, column_type: str): + if column_type is None: + return None + normalised_column_type = normalise_spark_types(column_type) if adapter_type == models.SupportedDbtAdapters.spark.value else column_type + looker_type = LOOKER_DTYPE_MAP[adapter_type].get(normalised_column_type) + if (column_type is not None) and (looker_type is None): + logging.warning(f'Column type {column_type} not supported for conversion from {adapter_type} to looker. No dimension will be created.') + return looker_type + + +def lookml_date_time_dimension_group(column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters): + return { + 'name': column.meta.dimension.name or column.name, + 'type': 'time', + 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', + 'description': column.meta.dimension.description or column.description, + 'datatype': map_adapter_type_to_looker(adapter_type, column.data_type), + 'timeframes': ['raw', 'time', 'hour', 'date', 'week', 'month', 'quarter', 'year'] + } + + +def lookml_date_dimension_group(column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters): + return { + 'name': column.meta.dimension.name or column.name, + 'type': 'time', + 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', + 'description': column.meta.dimension.description or column.description, + 'datatype': map_adapter_type_to_looker(adapter_type, column.data_type), + 'timeframes': ['raw', 'date', 'week', 'month', 'quarter', 'year'] + } + + +def lookml_dimension_groups_from_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): + date_times = [ + lookml_date_time_dimension_group(column, adapter_type) + for column in model.columns.values() + if map_adapter_type_to_looker(adapter_type, column.data_type) in looker_date_time_types + ] + dates = [ + lookml_date_dimension_group(column, adapter_type) + for column in model.columns.values() + if column.meta.dimension.enabled + and map_adapter_type_to_looker(adapter_type, column.data_type) in looker_date_types + ] + return date_times + dates + + +def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): + return [ + { + 'name': column.meta.dimension.name or column.name, + 'type': map_adapter_type_to_looker(adapter_type, column.data_type), + 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', + 'description': column.meta.dimension.description or column.description, + **( + {'value_format_name': column.meta.dimension.value_format_name.value} + if (column.meta.dimension.value_format_name + and map_adapter_type_to_looker(adapter_type, column.data_type) == 'number') + else {} + ) + } + for column in model.columns.values() + if column.meta.dimension.enabled + and map_adapter_type_to_looker(adapter_type, column.data_type) in looker_scalar_types + ] + + +def lookml_measure_filters(measure: models.Dbt2LookerMeasure, model: models.DbtModel): + try: + columns = { + column_name: model.columns[column_name] + for f in measure.filters + for column_name in f + } + except KeyError as e: + raise ValueError( + f'Model {model.unique_id} contains a measure that references a non_existent column: {e}\n' + f'Ensure that dbt model {model.unique_id} contains a column: {e}' + ) from e + return [{ + (columns[column_name].meta.dimension.name or column_name): fexpr + for column_name, fexpr in f.items() + } for f in measure.filters] + + +def lookml_measures_from_model(model: models.DbtModel): + return [ + lookml_measure(measure_name, column, measure, model) + for column in model.columns.values() + for measure_name, measure in { + **column.meta.measures, **column.meta.measure, **column.meta.metrics, **column.meta.metric + }.items() + ] + + +def lookml_measure(measure_name: str, column: models.DbtModelColumn, measure: models.Dbt2LookerMeasure, model: models.DbtModel): + m = { + 'name': measure_name, + 'type': measure.type.value, + 'sql': measure.sql or f'${{TABLE}}.{column.name}', + 'description': measure.description or column.description or f'{measure.type.value.capitalize()} of {column.name}', + } + if measure.filters: + m['filters'] = lookml_measure_filters(measure, model) + if measure.value_format_name: + m['value_format_name'] = measure.value_format_name.value + return m + + +def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): + lookml = { + 'view': { + 'name': model.name, + 'sql_table_name': model.relation_name, + 'dimension_groups': lookml_dimension_groups_from_model(model, adapter_type), + 'dimensions': lookml_dimensions_from_model(model, adapter_type), + 'measures': lookml_measures_from_model(model), + } + } + logging.debug( + f'Created view from model %s with %d measures, %d dimensions', + model.name, + len(lookml['view']['measures']), + len(lookml['view']['dimensions']), + ) + contents = lkml.dump(lookml) + filename = f'{model.name}.view.lkml' + return models.LookViewFile(filename=filename, contents=contents) + + +def lookml_model_from_dbt_model(model: models.DbtModel, dbt_project_name: str): + # Note: assumes view names = model names + # and models are unique across dbt packages in project + lookml = { + 'connection': dbt_project_name, + 'include': '/views/*', + 'explore': { + 'name': model.name, + 'description': model.description, + 'joins': [ + { + 'name': join.join, + 'type': join.type.value, + 'relationship': join.relationship.value, + 'sql_on': join.sql_on, + } + for join in model.meta.joins + ] + } + } + contents = lkml.dump(lookml) + filename = f'{model.name}.model.lkml' + return models.LookModelFile(filename=filename, contents=contents) diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py new file mode 100644 index 0000000..8a6c0f0 --- /dev/null +++ b/yoda_dbt2looker/models.py @@ -0,0 +1,217 @@ +from enum import Enum +from typing import Union, Dict, List, Optional +try: + from typing import Literal +except ImportError: + from typing_extensions import Literal +from pydantic import BaseModel, Field, PydanticValueError, validator + + +# dbt2looker utility types +class UnsupportedDbtAdapterError(PydanticValueError): + code = 'unsupported_dbt_adapter' + msg_template = '{wrong_value} is not a supported dbt adapter' + + +class SupportedDbtAdapters(str, Enum): + bigquery = 'bigquery' + postgres = 'postgres' + redshift = 'redshift' + snowflake = 'snowflake' + spark = 'spark' + + +# Lookml types +class LookerAggregateMeasures(str, Enum): + average = 'average' + average_distinct = 'average_distinct' + count = 'count' + count_distinct = 'count_distinct' + list = 'list' + max = 'max' + median = 'median' + median_distinct = 'median_distinct' + min = 'min' + # percentile = 'percentile' + # percentile_distinct = 'percentile_distinct' + sum = 'sum' + sum_distinct = 'sum_distinct' + + +class LookerJoinType(str, Enum): + left_outer = 'left_outer' + full_outer = 'full_outer' + inner = 'inner' + cross = 'cross' + + +class LookerJoinRelationship(str, Enum): + many_to_one = 'many_to_one' + many_to_many = 'many_to_many' + one_to_many = 'one_to_many' + one_to_one = 'one_to_one' + + +class LookerValueFormatName(str, Enum): + decimal_0 = 'decimal_0' + decimal_1 = 'decimal_1' + decimal_2 = 'decimal_2' + decimal_3 = 'decimal_3' + decimal_4 = 'decimal_4' + usd_0 = 'usd_0' + usd = 'usd' + gbp_0 = 'gbp_0' + gbp = 'gbp' + eur_0 = 'eur_0' + eur = 'eur' + id = 'id' + percent_0 = 'percent_0' + percent_1 = 'percent_1' + percent_2 = 'percent_2' + percent_3 = 'percent_3' + percent_4 = 'percent_4' + + +class Dbt2LookerMeasure(BaseModel): + type: LookerAggregateMeasures + filters: Optional[List[Dict[str, str]]] = [] + description: Optional[str] + sql: Optional[str] + value_format_name: Optional[LookerValueFormatName] + + @validator('filters') + def filters_are_singular_dicts(cls, v: List[Dict[str, str]]): + if v is not None: + for f in v: + if len(f) != 1: + raise ValueError('Multiple filter names provided for a single filter in measure block') + return v + + +class Dbt2LookerDimension(BaseModel): + enabled: Optional[bool] = True + name: Optional[str] + sql: Optional[str] + description: Optional[str] + value_format_name: Optional[LookerValueFormatName] + + +class Dbt2LookerMeta(BaseModel): + measures: Optional[Dict[str, Dbt2LookerMeasure]] = {} + measure: Optional[Dict[str, Dbt2LookerMeasure]] = {} + metrics: Optional[Dict[str, Dbt2LookerMeasure]] = {} + metric: Optional[Dict[str, Dbt2LookerMeasure]] = {} + dimension: Optional[Dbt2LookerDimension] = Dbt2LookerDimension() + + +# Looker file types +class LookViewFile(BaseModel): + filename: str + contents: str + + +class LookModelFile(BaseModel): + filename: str + contents: str + + +# dbt config types +class DbtProjectConfig(BaseModel): + name: str + + +class DbtModelColumnMeta(Dbt2LookerMeta): + pass + + +class DbtModelColumn(BaseModel): + name: str + description: str + data_type: Optional[str] + meta: DbtModelColumnMeta + + +class DbtNode(BaseModel): + unique_id: str + resource_type: str + + +class Dbt2LookerExploreJoin(BaseModel): + join: str + type: Optional[LookerJoinType] = LookerJoinType.left_outer + relationship: Optional[LookerJoinRelationship] = LookerJoinRelationship.many_to_one + sql_on: str + + +class Dbt2LookerModelMeta(BaseModel): + joins: Optional[List[Dbt2LookerExploreJoin]] = [] + + +class DbtModelMeta(Dbt2LookerModelMeta): + pass + + +class DbtModel(DbtNode): + resource_type: Literal['model'] + relation_name: str + db_schema: str = Field(..., alias='schema') + name: str + description: str + columns: Dict[str, DbtModelColumn] + tags: List[str] + meta: DbtModelMeta + + @validator('columns') + def case_insensitive_column_names(cls, v: Dict[str, DbtModelColumn]): + return { + name.lower(): column.copy(update={'name': column.name.lower()}) + for name, column in v.items() + } + + +class DbtManifestMetadata(BaseModel): + adapter_type: str + + @validator('adapter_type') + def adapter_must_be_supported(cls, v): + try: + SupportedDbtAdapters(v) + except ValueError: + raise UnsupportedDbtAdapterError(wrong_value=v) + return v + + +class DbtManifest(BaseModel): + nodes: Dict[str, Union[DbtModel, DbtNode]] + metadata: DbtManifestMetadata + + +class DbtCatalogNodeMetadata(BaseModel): + type: str + db_schema: str = Field(..., alias='schema') + name: str + comment: Optional[str] + owner: Optional[str] + + +class DbtCatalogNodeColumn(BaseModel): + type: str + comment: Optional[str] + index: int + name: str + + +class DbtCatalogNode(BaseModel): + metadata: DbtCatalogNodeMetadata + columns: Dict[str, DbtCatalogNodeColumn] + + @validator('columns') + def case_insensitive_column_names(cls, v: Dict[str, DbtCatalogNodeColumn]): + return { + name.lower(): column.copy(update={'name': column.name.lower()}) + for name, column in v.items() + } + + +class DbtCatalog(BaseModel): + nodes: Dict[str, DbtCatalogNode] \ No newline at end of file diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py new file mode 100644 index 0000000..1f7a229 --- /dev/null +++ b/yoda_dbt2looker/parser.py @@ -0,0 +1,125 @@ +import logging +import json +import jsonschema +import importlib.resources +from typing import Dict, Optional, List, Union +from functools import reduce + +from . import models + + +def validate_manifest(raw_manifest: dict): + with importlib.resources.open_text("dbt2looker.dbt_json_schemas", "manifest_dbt2looker.json") as f: + schema = json.load(f) + v = jsonschema.Draft7Validator(schema) + hasError = False + for error in v.iter_errors(raw_manifest): + raise_error_context(error) + hasError = True + if hasError: + raise ValueError("Failed to parse dbt manifest.json") + return True + + +def raise_error_context(error: jsonschema.ValidationError, offset=''): + for error in sorted(error.context, key=lambda e: e.schema_path): + raise_error_context(error, offset=offset + ' ') + path = '.'.join([str(p) for p in error.absolute_path]) + logging.error(f'{offset}Error in manifest at {path}: {error.message}') + + +def validate_catalog(raw_catalog: dict): + return True + + +def parse_dbt_project_config(raw_config: dict): + return models.DbtProjectConfig(**raw_config) + + +def parse_catalog_nodes(raw_catalog: dict): + catalog = models.DbtCatalog(**raw_catalog) + return catalog.nodes + + +def parse_adapter_type(raw_manifest: dict): + manifest = models.DbtManifest(**raw_manifest) + return manifest.metadata.adapter_type + + +def tags_match(query_tag: str, model: models.DbtModel) -> bool: + try: + return query_tag in model.tags + except AttributeError: + return False + except ValueError: + # Is the tag just a string? + return query_tag == model.tags + + +def parse_models(raw_manifest: dict, tag=None) -> List[models.DbtModel]: + manifest = models.DbtManifest(**raw_manifest) + all_models: List[models.DbtModel] = [ + node + for node in manifest.nodes.values() + if node.resource_type == 'model' + ] + + # Empty model files have many missing parameters + for model in all_models: + if not hasattr(model, 'name'): + logging.error('Cannot parse model with id: "%s" - is the model file empty?', model.unique_id) + raise SystemExit('Failed') + + if tag is None: + return all_models + return [model for model in all_models if tags_match(tag, model)] + + +def check_models_for_missing_column_types(dbt_typed_models: List[models.DbtModel]): + for model in dbt_typed_models: + if all([col.data_type is None for col in model.columns.values()]): + logging.debug('Model %s has no typed columns, no dimensions will be generated. %s', model.unique_id, model) + + +def parse_typed_models(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] = None): + catalog_nodes = parse_catalog_nodes(raw_catalog) + dbt_models = parse_models(raw_manifest, tag=tag) + adapter_type = parse_adapter_type(raw_manifest) + + logging.debug('Parsed %d models from manifest.json', len(dbt_models)) + for model in dbt_models: + logging.debug( + 'Model %s has %d columns with %d measures', + model.name, + len(model.columns), + reduce(lambda acc, col: acc + len(col.meta.measures) + len(col.meta.measure) + len(col.meta.metrics) + len(col.meta.metric), model.columns.values(), 0) + ) + + # Check catalog for models + for model in dbt_models: + if model.unique_id not in catalog_nodes: + logging.warning( + f'Model {model.unique_id} not found in catalog. No looker view will be generated. ' + f'Check if model has materialized in {adapter_type} at {model.relation_name}') + + # Update dbt models with data types from catalog + dbt_typed_models = [ + model.copy(update={'columns': { + column.name: column.copy(update={ + 'data_type': get_column_type_from_catalog(catalog_nodes, model.unique_id, column.name) + }) + for column in model.columns.values() + }}) + for model in dbt_models + if model.unique_id in catalog_nodes + ] + logging.debug('Found catalog entries for %d models', len(dbt_typed_models)) + logging.debug('Catalog entries missing for %d models', len(dbt_models) - len(dbt_typed_models)) + check_models_for_missing_column_types(dbt_typed_models) + return dbt_typed_models + + +def get_column_type_from_catalog(catalog_nodes: Dict[str, models.DbtCatalogNode], model_id: str, column_name: str): + node = catalog_nodes.get(model_id) + column = None if node is None else node.columns.get(column_name) + return None if column is None else column.type From aef1c429aea12f8ae98a4d60389c13d2d8d8e809 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Sun, 1 May 2022 17:02:05 +0300 Subject: [PATCH 18/87] update version --- .github/workflows/master.yml | 2 +- dbt2looker/__init__.py | 0 dbt2looker/cli.py | 142 - dbt2looker/dbt_json_schemas/__init__.py | 0 .../dbt_json_schemas/manifest_dbt2looker.json | 6102 ----------------- dbt2looker/dbt_json_schemas/manifest_v1.json | 5073 -------------- dbt2looker/dbt_json_schemas/manifest_v2.json | 5127 -------------- dbt2looker/dbt_json_schemas/manifest_v4.json | 5939 ---------------- dbt2looker/generator.py | 347 - dbt2looker/models.py | 217 - dbt2looker/parser.py | 125 - pyproject.toml | 4 +- 12 files changed, 3 insertions(+), 23075 deletions(-) delete mode 100644 dbt2looker/__init__.py delete mode 100644 dbt2looker/cli.py delete mode 100644 dbt2looker/dbt_json_schemas/__init__.py delete mode 100644 dbt2looker/dbt_json_schemas/manifest_dbt2looker.json delete mode 100644 dbt2looker/dbt_json_schemas/manifest_v1.json delete mode 100644 dbt2looker/dbt_json_schemas/manifest_v2.json delete mode 100644 dbt2looker/dbt_json_schemas/manifest_v4.json delete mode 100644 dbt2looker/generator.py delete mode 100644 dbt2looker/models.py delete mode 100644 dbt2looker/parser.py diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 445b629..1dd527a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -31,7 +31,7 @@ jobs: with: repository_username: ${{ secrets.JFROG_USER }} repository_password: ${{ secrets.JFROG_PASSWORD }} - repository_name: "dbt2looker" + repository_name: "yoda-dbt2looker" repository_url: "https://yotpo.jfrog.io/artifactory/api/pypi/pypi-local" - name: Push Version to git uses: stefanzweifel/git-auto-commit-action@v4 diff --git a/dbt2looker/__init__.py b/dbt2looker/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/dbt2looker/cli.py b/dbt2looker/cli.py deleted file mode 100644 index ad8e294..0000000 --- a/dbt2looker/cli.py +++ /dev/null @@ -1,142 +0,0 @@ -import argparse -import json -import logging -import pathlib -import os -try: - from importlib.metadata import version -except ImportError: - from importlib_metadata import version - -import yaml -try: - from yaml import CLoader as Loader -except ImportError: - from yaml import Loader - - -from . import parser -from . import generator - -MANIFEST_PATH = './manifest.json' -DEFAULT_LOOKML_OUTPUT_DIR = './lookml' - - -def get_manifest(prefix: str): - manifest_path = os.path.join(prefix, 'manifest.json') - try: - with open(manifest_path, 'r') as f: - raw_manifest = json.load(f) - except FileNotFoundError as e: - logging.error(f'Could not find manifest file at {manifest_path}. Use --target-dir to change the search path for the manifest.json file.') - raise SystemExit('Failed') - parser.validate_manifest(raw_manifest) - logging.debug(f'Detected valid manifest at {manifest_path}') - return raw_manifest - - -def get_catalog(prefix: str): - catalog_path = os.path.join(prefix, 'catalog.json') - try: - with open(catalog_path, 'r') as f: - raw_catalog = json.load(f) - except FileNotFoundError as e: - logging.error(f'Could not find catalog file at {catalog_path}. Use --target-dir to change the search path for the catalog.json file.') - raise SystemExit('Failed') - parser.validate_catalog(raw_catalog) - logging.debug(f'Detected valid catalog at {catalog_path}') - return raw_catalog - - -def get_dbt_project_config(prefix: str): - project_path = os.path.join(prefix, 'dbt_project.yml') - try: - with open(project_path, 'r') as f: - project_config = yaml.load(f, Loader=Loader) - except FileNotFoundError as e: - logging.error(f'Could a dbt_project.yml file at {project_path}. Use --project-dir to change the search path for the dbt_project.yml file.') - raise SystemExit('Failed') - logging.debug(f'Detected valid dbt config at {project_path}') - return project_config - - -def run(): - argparser = argparse.ArgumentParser() - argparser.add_argument( - '--version', - action='version', - version=f'dbt2looker {version("dbt2looker")}', - ) - argparser.add_argument( - '--project-dir', - help='Path to dbt project directory containing dbt_project.yml. Default is "."', - default='./', - type=str, - ) - argparser.add_argument( - '--target-dir', - help='Path to dbt target directory containing manifest.json and catalog.json. Default is "./target"', - default='./target', - type=str, - ) - argparser.add_argument( - '--tag', - help='Filter to dbt models using this tag', - type=str, - ) - argparser.add_argument( - '--log-level', - help='Set level of logs. Default is INFO', - choices=['DEBUG', 'INFO', 'WARN', 'ERROR'], - type=str, - default='INFO', - ) - argparser.add_argument( - '--output-dir', - help='Path to a directory that will contain the generated lookml files', - default=DEFAULT_LOOKML_OUTPUT_DIR, - type=str, - ) - args = argparser.parse_args() - run_convert(args.target_dir, args.project_dir, args.output_dir, args.tag, args.log_level) - -def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOKML_OUTPUT_DIR, tag=None, log_level='INFO'): - logging.basicConfig( - level=getattr(logging, log_level), - format='%(asctime)s %(levelname)-6s %(message)s', - datefmt='%H:%M:%S', - ) - - # Load raw manifest file - raw_manifest = get_manifest(prefix=target_dir) - raw_catalog = get_catalog(prefix=target_dir) - raw_config = get_dbt_project_config(prefix=project_dir) - - # Get dbt models from manifestpo - dbt_project_config = parser.parse_dbt_project_config(raw_config) - typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, tag=tag) - adapter_type = parser.parse_adapter_type(raw_manifest) - - # Generate lookml views - lookml_views = [ - generator.lookml_view_from_dbt_model(model, adapter_type) - for model in typed_dbt_models - ] - pathlib.Path(os.path.join(output_dir, 'views')).mkdir(parents=True, exist_ok=True) - for view in lookml_views: - with open(os.path.join(output_dir, 'views', view.filename), 'w') as f: - f.write(view.contents) - - logging.info(f'Generated {len(lookml_views)} lookml views in {os.path.join(output_dir, "views")}') - - # Generate Lookml models - lookml_models = [ - generator.lookml_model_from_dbt_model(model, dbt_project_config.name) - for model in typed_dbt_models - ] - for model in lookml_models: - with open(os.path.join(output_dir, model.filename), 'w') as f: - f.write(model.contents) - logging.info(f'Generated {len(lookml_models)} lookml models in {output_dir}') - logging.info('Success') - diff --git a/dbt2looker/dbt_json_schemas/__init__.py b/dbt2looker/dbt_json_schemas/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/dbt2looker/dbt_json_schemas/manifest_dbt2looker.json b/dbt2looker/dbt_json_schemas/manifest_dbt2looker.json deleted file mode 100644 index c804e72..0000000 --- a/dbt2looker/dbt_json_schemas/manifest_dbt2looker.json +++ /dev/null @@ -1,6102 +0,0 @@ -{ - "type": "object", - "required": [ - "metadata", - "nodes", - "sources", - "macros", - "docs", - "exposures", - "metrics", - "selectors" - ], - "properties": { - "metadata": { - "$ref": "#/definitions/ManifestMetadata", - "description": "Metadata about the manifest" - }, - "nodes": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledSingularTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSqlNode" - }, - { - "$ref": "#/definitions/CompiledGenericTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedSingularTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSqlNode" - }, - { - "$ref": "#/definitions/ParsedGenericTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - } - ] - }, - "description": "The nodes defined in the dbt project and its dependencies" - }, - "sources": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedSourceDefinition" - }, - "description": "The sources defined in the dbt project and its dependencies" - }, - "macros": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedMacro" - }, - "description": "The macros defined in the dbt project and its dependencies" - }, - "docs": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedDocumentation" - }, - "description": "The docs defined in the dbt project and its dependencies" - }, - "exposures": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedExposure" - }, - "description": "The exposures defined in the dbt project and its dependencies" - }, - "metrics": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedMetric" - }, - "description": "The metrics defined in the dbt project and its dependencies" - }, - "selectors": { - "type": "object", - "description": "The selectors defined in selectors.yml" - }, - "disabled": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledSingularTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSqlNode" - }, - { - "$ref": "#/definitions/CompiledGenericTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedSingularTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSqlNode" - }, - { - "$ref": "#/definitions/ParsedGenericTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedSourceDefinition" - } - ] - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping of the disabled nodes in the target" - }, - "parent_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from\u00a0child nodes to their dependencies" - }, - "child_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from parent nodes to their dependents" - } - }, - "additionalProperties": false, - "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", - "definitions": { - "LightdashDimension": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "description": "When enabled a dimension will be created in lookml for this column, otherwise it will be ignored. Default is enabled=true.", - "default": true - }, - "name": { - "type": "string", - "pattern": "^[a-z][a-z0-9_]*$", - "description": "An optional name for the dimension, defaults to DBT column name" - }, - "description": { - "type": "string", - "description": "An optional description for the column, defaults to the DBT column description" - }, - "sql": { - "type": "string", - "description": "Optional sql string defining the dimension. Defaults to ${TABLE}.column_name" - }, - "value_format_name": { - "description": "Optional format for numerical dimensions", - "type": "string", - "enum": [ - "decimal_0", "decimal_1", "decimal_2", "decimal_3", "decimal_4", - "usd_0", "usd", - "gbp_0", "gbp", - "eur_0", "eur", - "id", - "percent_0", "percent_1", "percent_2", "percent_3", "percent_4" - ] - } - } - }, - "LightdashMeasure": { - "type": "object", - "required": ["type"], - "properties": { - "type": { - "description": "The type of the measure e.g. average, max min. Not all looker measure types are supported.", - "type": "string", - "enum": [ - "average", - "average_distinct", - "count", - "count_distinct", - "list", - "max", - "median", - "median_distinct", - "min", - "sum", - "sum_distinct" - ] - }, - "description": { - "description": "Optional description for the measure. Default's to a variant of the column description depending on the measure type.", - "type": "string" - }, - "sql": { - "description": "Optional sql string defining the measure value. Defaults ${TABLE}.column_name", - "type": "string" - }, - "value_format_name": { - "description": "Optional format for measure", - "type": "string", - "enum": [ - "decimal_0", "decimal_1", "decimal_2", "decimal_3", "decimal_4", - "usd_0", "usd", - "gbp_0", "gbp", - "eur_0", "eur", - "id", - "percent_0", "percent_1", "percent_2", "percent_3", "percent_4" - ] - }, - "filters": { - "type": "array", - "default": [], - "items": { - "description": "Object of filters. The keys must be a valid dimension name.", - "type": "object", - "required": [], - "patternProperties": { - "^[a-z][a-z0-9_]*$": { - "type": "string", - "description": "Lookml filter expression" - } - } - } - } - } - }, - "LightdashColumnMetadata": { - "type": "object", - "required": [], - "properties": { - "dimension": { - "$ref": "#/definitions/LightdashDimension" - } - }, - "patternProperties": { - "^measures?|metrics?$": { - "type": "object", - "description": "Object containing measures definitions. Keys ust be valid measure names and unique in this model.", - "patternProperties": { - "^[a-z][a-z0-9_]*$": { - "$ref": "#/definitions/LightdashMeasure" - } - }, - "default": {} - } - } - }, - "LightdashModelMetadata": { - "type": "object", - "required": [], - "properties": { - "joins": { - "type": "array", - "items": { - "type": "object", - "required": [ - "join", - "sql_on" - ], - "properties": { - "join": { - "description": "Name of the dbt model you'd like to join to", - "type": "string" - }, - "sql_on": { - "description": "Sql string defining the join. Use looker references ${table.dimension}=${table.dimesion}", - "type": "string" - }, - "type": { - "type": "string", - "default": "left_outer", - "enum": [ - "left_outer", - "full_outer", - "inner", - "cross" - ] - }, - "relationship": { - "type": "string", - "default": "many_to_one", - "enum": [ - "many_to_one", - "many_to_many", - "one_to_many", - "one_to_one" - ] - } - } - } - } - }, - "default": {} - }, - "ManifestMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" - }, - "dbt_version": { - "type": "string", - "default": "1.0.0rc2" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-11-30T01:35:47.307789Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "66dd78f0-c79a-4b06-81b1-99794345df16" - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - }, - "project_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the project" - }, - "user_id": { - "oneOf": [ - { - "type": "string", - "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the user" - }, - "send_anonymous_usage_stats": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "description": "Whether dbt is configured to send anonymous usage statistics" - }, - "adapter_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "The type name of the adapter" - } - }, - "additionalProperties": false, - "description": "Metadata for the manifest." - }, - "CompiledAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3118432 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "FileHash": { - "type": "object", - "required": [ - "name", - "checksum" - ], - "properties": { - "name": { - "type": "string" - }, - "checksum": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "FileHash(name: str, checksum: str)" - }, - "NodeConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "view" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "on_schema_change": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "ignore" - } - }, - "additionalProperties": true, - "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" - }, - "Hook": { - "type": "object", - "required": [ - "sql" - ], - "properties": { - "sql": { - "type": "string" - }, - "transaction": { - "type": "boolean", - "default": true - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" - }, - "DependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "nodes": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" - }, - "ColumnInfo": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "$ref": "#/definitions/LightdashColumnMetadata", - "type": "object", - "default": {} - }, - "data_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "quote": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": true, - "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" - }, - "Docs": { - "type": "object", - "required": [], - "properties": { - "show": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "description": "Docs(show: bool = True)" - }, - "InjectedCTE": { - "type": "object", - "required": [ - "id", - "sql" - ], - "properties": { - "id": { - "type": "string" - }, - "sql": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "InjectedCTE(id: str, sql: str)" - }, - "CompiledSingularTestNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.314477 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "TestConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "dbt_test__audit" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "test" - }, - "severity": { - "type": "string", - "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", - "default": "ERROR" - }, - "store_failures": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "where": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "limit": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "fail_calc": { - "type": "string", - "default": "count(*)" - }, - "warn_if": { - "type": "string", - "default": "!= 0" - }, - "error_if": { - "type": "string", - "default": "!= 0" - } - }, - "additionalProperties": true, - "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" - }, - "CompiledModelNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.315979 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledHookNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.317642 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" - }, - "CompiledRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.319278 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledSqlNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "sql" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.321433 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledGenericTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.323731 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_key_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" - }, - "TestMetadata": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "kwargs": { - "type": "object", - "default": {} - }, - "namespace": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" - }, - "CompiledSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "seed", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "quote_columns": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.326388 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "SeedConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "seed" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "on_schema_change": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "ignore" - }, - "quote_columns": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" - }, - "CompiledSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.328031 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "ParsedAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.329485 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSingularTestNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3306549 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedHookNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.332001 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" - }, - "ParsedModelNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.333348 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.335125 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSqlNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "sql" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.336567 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedGenericTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3383949 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_key_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" - }, - "ParsedSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "seed", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "quote_columns": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.339838 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum", - "config" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SnapshotConfig" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3425322 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "SnapshotConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "snapshot" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "on_schema_change": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "ignore" - }, - "strategy": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "unique_key": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "target_schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "target_database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "updated_at": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "check_cols": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" - }, - "ParsedSourceDefinition": { - "type": "object", - "required": [ - "fqn", - "schema", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "source_name", - "source_description", - "loader", - "identifier", - "resource_type" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source_name": { - "type": "string" - }, - "source_description": { - "type": "string" - }, - "loader": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "source" - ] - }, - "quoting": { - "$ref": "#/definitions/Quoting", - "default": { - "database": null, - "schema": null, - "identifier": null, - "column": null - } - }, - "loaded_at_field": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "freshness": { - "oneOf": [ - { - "$ref": "#/definitions/FreshnessThreshold" - }, - { - "type": "null" - } - ] - }, - "external": { - "oneOf": [ - { - "$ref": "#/definitions/ExternalTable" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "source_meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "config": { - "$ref": "#/definitions/SourceConfig", - "default": { - "enabled": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "created_at": { - "type": "number", - "default": 1638236147.345053 - } - }, - "additionalProperties": false, - "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" - }, - "Quoting": { - "type": "object", - "required": [], - "properties": { - "database": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "identifier": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "column": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" - }, - "FreshnessThreshold": { - "type": "object", - "required": [], - "properties": { - "warn_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ], - "default": { - "count": null, - "period": null - } - }, - "error_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ], - "default": { - "count": null, - "period": null - } - }, - "filter": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" - }, - "FreshnessMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/sources/v3.json" - }, - "dbt_version": { - "type": "string", - "default": "1.0.0rc2" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-11-30T01:35:47.301745Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "66dd78f0-c79a-4b06-81b1-99794345df16" - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - } - }, - "additionalProperties": false, - "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" - }, - "SourceFreshnessRuntimeError": { - "type": "object", - "required": [ - "unique_id", - "status" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "error": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "status": { - "type": "string", - "enum": [ - "runtime error" - ] - } - }, - "additionalProperties": false, - "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" - }, - "SourceFreshnessOutput": { - "type": "object", - "required": [ - "unique_id", - "max_loaded_at", - "snapshotted_at", - "max_loaded_at_time_ago_in_s", - "status", - "criteria", - "adapter_response", - "timing", - "thread_id", - "execution_time" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "max_loaded_at": { - "type": "string", - "format": "date-time" - }, - "snapshotted_at": { - "type": "string", - "format": "date-time" - }, - "max_loaded_at_time_ago_in_s": { - "type": "number" - }, - "status": { - "type": "string", - "enum": [ - "pass", - "warn", - "error", - "runtime error" - ] - }, - "criteria": { - "$ref": "#/definitions/FreshnessThreshold" - }, - "adapter_response": { - "type": "object" - }, - "timing": { - "type": "array", - "items": { - "$ref": "#/definitions/TimingInfo" - } - }, - "thread_id": { - "type": "string" - }, - "execution_time": { - "type": "number" - } - }, - "additionalProperties": false, - "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" - }, - "Time": { - "type": "object", - "required": [], - "properties": { - "count": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "period": { - "oneOf": [ - { - "type": "string", - "enum": [ - "minute", - "hour", - "day" - ] - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" - }, - "TimingInfo": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "started_at": { - "oneOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "completed_at": { - "oneOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" - }, - "ExternalTable": { - "type": "object", - "required": [], - "properties": { - "location": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "row_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tbl_properties": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "partitions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/ExternalPartition" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" - }, - "ExternalPartition": { - "type": "object", - "required": [], - "properties": { - "name": { - "type": "string", - "default": "" - }, - "description": { - "type": "string", - "default": "" - }, - "data_type": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - } - }, - "additionalProperties": true, - "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" - }, - "SourceConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": true, - "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" - }, - "ParsedMacro": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "macro_sql", - "resource_type" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "macro_sql": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "macro" - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/MacroDependsOn", - "default": { - "macros": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "arguments": { - "type": "array", - "items": { - "$ref": "#/definitions/MacroArgument" - }, - "default": [] - }, - "created_at": { - "type": "number", - "default": 1638236147.345993 - } - }, - "additionalProperties": false, - "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" - }, - "MacroDependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "MacroDependsOn(macros: List[str] = )" - }, - "MacroArgument": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - } - }, - "additionalProperties": false, - "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" - }, - "ParsedDocumentation": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "block_contents" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "block_contents": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" - }, - "ParsedExposure": { - "type": "object", - "required": [ - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "type", - "owner" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "dashboard", - "notebook", - "analysis", - "ml", - "application" - ] - }, - "owner": { - "$ref": "#/definitions/ExposureOwner" - }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "sql", - "docs", - "source", - "macro", - "exposure", - "metric" - ], - "default": "exposure" - }, - "description": { - "type": "string", - "default": "" - }, - "maturity": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low", - "medium", - "high" - ] - }, - { - "type": "null" - } - ] - }, - "meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "url": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "created_at": { - "type": "number", - "default": 1638236147.347234 - } - }, - "additionalProperties": false, - "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" - }, - "ExposureOwner": { - "type": "object", - "required": [ - "email" - ], - "properties": { - "email": { - "type": "string" - }, - "name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" - }, - "ParsedMetric": { - "type": "object", - "required": [ - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "model", - "name", - "description", - "label", - "type", - "filters", - "time_grains", - "dimensions" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "model": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "label": { - "type": "string" - }, - "type": { - "type": "string" - }, - "sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "timestamp": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "filters": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricFilter" - } - }, - "time_grains": { - "type": "array", - "items": { - "type": "string" - } - }, - "dimensions": { - "type": "array", - "items": { - "type": "string" - } - }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "sql", - "docs", - "source", - "macro", - "exposure", - "metric" - ], - "default": "metric" - }, - "meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "created_at": { - "type": "number", - "default": 1638236147.348404 - } - }, - "additionalProperties": false, - "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" - }, - "MetricFilter": { - "type": "object", - "required": [ - "field", - "operator", - "value" - ], - "properties": { - "field": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "MetricFilter(field: str, operator: str, value: str)" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schemas.lightdash.com/dbt2looker/manifest/v4.json" -} \ No newline at end of file diff --git a/dbt2looker/dbt_json_schemas/manifest_v1.json b/dbt2looker/dbt_json_schemas/manifest_v1.json deleted file mode 100644 index af80e5b..0000000 --- a/dbt2looker/dbt_json_schemas/manifest_v1.json +++ /dev/null @@ -1,5073 +0,0 @@ -{ - "type": "object", - "required": [ - "metadata", - "nodes", - "sources", - "macros", - "docs", - "exposures", - "selectors" - ], - "properties": { - "metadata": { - "$ref": "#/definitions/ManifestMetadata", - "description": "Metadata about the manifest" - }, - "nodes": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledDataTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSchemaTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedDataTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSchemaTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - } - ] - }, - "description": "The nodes defined in the dbt project and its dependencies" - }, - "sources": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedSourceDefinition" - }, - "description": "The sources defined in the dbt project and its dependencies" - }, - "macros": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedMacro" - }, - "description": "The macros defined in the dbt project and its dependencies" - }, - "docs": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedDocumentation" - }, - "description": "The docs defined in the dbt project and its dependencies" - }, - "exposures": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedExposure" - }, - "description": "The exposures defined in the dbt project and its dependencies" - }, - "selectors": { - "type": "object", - "description": "The selectors defined in selectors.yml" - }, - "disabled": { - "oneOf": [ - { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledDataTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSchemaTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedDataTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSchemaTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedSourceDefinition" - } - ] - } - }, - { - "type": "null" - } - ], - "description": "A list of the disabled nodes in the target" - }, - "parent_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from\u00a0child nodes to their dependencies" - }, - "child_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from parent nodes to their dependents" - } - }, - "additionalProperties": false, - "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", - "definitions": { - "ManifestMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/manifest/v1.json" - }, - "dbt_version": { - "type": "string", - "default": "0.19.0" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-02-10T04:42:33.683996Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - }, - "project_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the project" - }, - "user_id": { - "oneOf": [ - { - "type": "string", - "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the user" - }, - "send_anonymous_usage_stats": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "description": "Whether dbt is configured to send anonymous usage statistics" - }, - "adapter_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "The type name of the adapter" - } - }, - "additionalProperties": false, - "description": "Metadata for the manifest." - }, - "CompiledAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" - }, - "FileHash": { - "type": "object", - "required": [ - "name", - "checksum" - ], - "properties": { - "name": { - "type": "string" - }, - "checksum": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "FileHash(name: str, checksum: str)" - }, - "NodeConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "view" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "NodeConfig(*args, **kwds)" - }, - "Hook": { - "type": "object", - "required": [ - "sql" - ], - "properties": { - "sql": { - "type": "string" - }, - "transaction": { - "type": "boolean", - "default": true - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" - }, - "DependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "nodes": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" - }, - "ColumnInfo": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - }, - "data_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "quote": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": true, - "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" - }, - "Docs": { - "type": "object", - "required": [], - "properties": { - "show": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "description": "Docs(show: bool = True)" - }, - "InjectedCTE": { - "type": "object", - "required": [ - "id", - "sql" - ], - "properties": { - "id": { - "type": "string" - }, - "sql": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "InjectedCTE(id: str, sql: str)" - }, - "CompiledDataTestNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" - }, - "TestConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "test" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "severity": { - "type": "string", - "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", - "default": "ERROR" - } - }, - "additionalProperties": true, - "description": "TestConfig(*args, **kwds)" - }, - "CompiledModelNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" - }, - "CompiledHookNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" - }, - "CompiledRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" - }, - "CompiledSchemaTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" - }, - "TestMetadata": { - "type": "object", - "required": [ - "name", - "kwargs" - ], - "properties": { - "namespace": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "name": { - "type": "string" - }, - "kwargs": { - "type": "object" - } - }, - "additionalProperties": false, - "description": "TestMetadata(namespace: Union[str, NoneType], name: str, kwargs: Dict[str, Any])" - }, - "CompiledSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "materialized": "seed", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "quote_columns": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" - }, - "SeedConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "seed" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "quote_columns": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "SeedConfig(*args, **kwds)" - }, - "CompiledSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None)" - }, - "ParsedAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" - }, - "ParsedDataTestNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" - }, - "ParsedHookNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , index: Union[int, NoneType] = None)" - }, - "ParsedModelNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" - }, - "ParsedRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" - }, - "ParsedSchemaTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , column_name: Union[str, NoneType] = None)" - }, - "ParsedSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "materialized": "seed", - "persist_docs": {}, - "post-hook": [], - "pre-hook": [], - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "quote_columns": null - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" - }, - "ParsedSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum", - "config" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "oneOf": [ - { - "$ref": "#/definitions/TimestampSnapshotConfig" - }, - { - "$ref": "#/definitions/CheckSnapshotConfig" - }, - { - "$ref": "#/definitions/GenericSnapshotConfig" - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: Union[ForwardRef('TimestampSnapshotConfig'), ForwardRef('CheckSnapshotConfig'), ForwardRef('GenericSnapshotConfig')], tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = )" - }, - "TimestampSnapshotConfig": { - "type": "object", - "required": [ - "unique_key", - "target_schema", - "strategy", - "updated_at" - ], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "snapshot" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "unique_key": { - "type": "string" - }, - "target_schema": { - "type": "string" - }, - "target_database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "strategy": { - "type": "string", - "enum": [ - "timestamp" - ] - }, - "updated_at": { - "type": "string" - } - }, - "additionalProperties": true, - "description": "TimestampSnapshotConfig(*args, **kwds)" - }, - "CheckSnapshotConfig": { - "type": "object", - "required": [ - "unique_key", - "target_schema", - "strategy", - "check_cols" - ], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "snapshot" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "unique_key": { - "type": "string" - }, - "target_schema": { - "type": "string" - }, - "target_database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "strategy": { - "type": "string", - "enum": [ - "check" - ] - }, - "check_cols": { - "oneOf": [ - { - "type": "string", - "enum": [ - "all" - ] - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - } - }, - "additionalProperties": true, - "description": "CheckSnapshotConfig(*args, **kwds)" - }, - "GenericSnapshotConfig": { - "type": "object", - "required": [ - "unique_key", - "target_schema", - "strategy" - ], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "snapshot" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "unique_key": { - "type": "string" - }, - "target_schema": { - "type": "string" - }, - "target_database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "strategy": { - "allOf": [ - { - "type": "string" - }, - { - "not": { - "type": "string", - "enum": [ - "timestamp" - ] - } - }, - { - "not": { - "type": "string", - "enum": [ - "check" - ] - } - } - ] - } - }, - "additionalProperties": true, - "description": "GenericSnapshotConfig(*args, **kwds)" - }, - "ParsedSourceDefinition": { - "type": "object", - "required": [ - "fqn", - "schema", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "source_name", - "source_description", - "loader", - "identifier", - "resource_type" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source_name": { - "type": "string" - }, - "source_description": { - "type": "string" - }, - "loader": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "source" - ] - }, - "quoting": { - "$ref": "#/definitions/Quoting", - "default": { - "database": null, - "schema": null, - "identifier": null, - "column": null - } - }, - "loaded_at_field": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "freshness": { - "oneOf": [ - { - "$ref": "#/definitions/FreshnessThreshold" - }, - { - "type": "null" - } - ] - }, - "external": { - "oneOf": [ - { - "$ref": "#/definitions/ExternalTable" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "source_meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "config": { - "$ref": "#/definitions/SourceConfig", - "default": { - "enabled": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None)" - }, - "Quoting": { - "type": "object", - "required": [], - "properties": { - "database": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "identifier": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "column": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" - }, - "FreshnessThreshold": { - "type": "object", - "required": [], - "properties": { - "warn_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ] - }, - "error_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ] - }, - "filter": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" - }, - "FreshnessMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/sources/v1.json" - }, - "dbt_version": { - "type": "string", - "default": "0.19.0" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-02-10T04:42:33.675309Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - } - }, - "additionalProperties": false, - "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.19.0', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" - }, - "SourceFreshnessRuntimeError": { - "type": "object", - "required": [ - "unique_id", - "status" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "error": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "status": { - "type": "string", - "enum": [ - "runtime error" - ] - } - }, - "additionalProperties": false, - "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" - }, - "SourceFreshnessOutput": { - "type": "object", - "required": [ - "unique_id", - "max_loaded_at", - "snapshotted_at", - "max_loaded_at_time_ago_in_s", - "status", - "criteria", - "adapter_response" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "max_loaded_at": { - "type": "string", - "format": "date-time" - }, - "snapshotted_at": { - "type": "string", - "format": "date-time" - }, - "max_loaded_at_time_ago_in_s": { - "type": "number" - }, - "status": { - "type": "string", - "enum": [ - "pass", - "warn", - "error", - "runtime error" - ] - }, - "criteria": { - "$ref": "#/definitions/FreshnessThreshold" - }, - "adapter_response": { - "type": "object" - } - }, - "additionalProperties": false, - "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" - }, - "Time": { - "type": "object", - "required": [ - "count", - "period" - ], - "properties": { - "count": { - "type": "integer" - }, - "period": { - "type": "string", - "enum": [ - "minute", - "hour", - "day" - ] - } - }, - "additionalProperties": false, - "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" - }, - "ExternalTable": { - "type": "object", - "required": [], - "properties": { - "location": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "row_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tbl_properties": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "partitions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/ExternalPartition" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" - }, - "ExternalPartition": { - "type": "object", - "required": [], - "properties": { - "name": { - "type": "string", - "default": "" - }, - "description": { - "type": "string", - "default": "" - }, - "data_type": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - } - }, - "additionalProperties": true, - "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" - }, - "SourceConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": true, - "description": "SourceConfig(*args, **kwds)" - }, - "ParsedMacro": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "macro_sql", - "resource_type" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "macro_sql": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "macro" - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/MacroDependsOn", - "default": { - "macros": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "arguments": { - "type": "array", - "items": { - "$ref": "#/definitions/MacroArgument" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = )" - }, - "MacroDependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "MacroDependsOn(macros: List[str] = )" - }, - "MacroArgument": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - } - }, - "additionalProperties": false, - "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" - }, - "ParsedDocumentation": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "block_contents" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "block_contents": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" - }, - "ParsedExposure": { - "type": "object", - "required": [ - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "type", - "owner" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "dashboard", - "notebook", - "analysis", - "ml", - "application" - ] - }, - "owner": { - "$ref": "#/definitions/ExposureOwner" - }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "docs", - "source", - "macro", - "exposure" - ], - "default": "exposure" - }, - "description": { - "type": "string", - "default": "" - }, - "maturity": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low", - "medium", - "high" - ] - }, - { - "type": "null" - } - ] - }, - "url": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = )" - }, - "ExposureOwner": { - "type": "object", - "required": [ - "email" - ], - "properties": { - "email": { - "type": "string" - }, - "name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schemas.getdbt.com/dbt/manifest/v1.json" -} diff --git a/dbt2looker/dbt_json_schemas/manifest_v2.json b/dbt2looker/dbt_json_schemas/manifest_v2.json deleted file mode 100644 index bb40495..0000000 --- a/dbt2looker/dbt_json_schemas/manifest_v2.json +++ /dev/null @@ -1,5127 +0,0 @@ -{ - "type": "object", - "required": [ - "metadata", - "nodes", - "sources", - "macros", - "docs", - "exposures", - "selectors" - ], - "properties": { - "metadata": { - "$ref": "#/definitions/ManifestMetadata", - "description": "Metadata about the manifest" - }, - "nodes": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledDataTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSchemaTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedDataTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSchemaTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - } - ] - }, - "description": "The nodes defined in the dbt project and its dependencies" - }, - "sources": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedSourceDefinition" - }, - "description": "The sources defined in the dbt project and its dependencies" - }, - "macros": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedMacro" - }, - "description": "The macros defined in the dbt project and its dependencies" - }, - "docs": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedDocumentation" - }, - "description": "The docs defined in the dbt project and its dependencies" - }, - "exposures": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedExposure" - }, - "description": "The exposures defined in the dbt project and its dependencies" - }, - "selectors": { - "type": "object", - "description": "The selectors defined in selectors.yml" - }, - "disabled": { - "oneOf": [ - { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledDataTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSchemaTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedDataTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSchemaTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedSourceDefinition" - } - ] - } - }, - { - "type": "null" - } - ], - "description": "A list of the disabled nodes in the target" - }, - "parent_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from\u00a0child nodes to their dependencies" - }, - "child_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from parent nodes to their dependents" - } - }, - "additionalProperties": false, - "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], selectors: Mapping[str, Any], disabled: Union[List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledDataTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSchemaTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedDataTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSchemaTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", - "definitions": { - "ManifestMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/manifest/v2.json" - }, - "dbt_version": { - "type": "string", - "default": "0.20.0rc1" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-06-07T14:49:01.099700Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - }, - "project_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the project" - }, - "user_id": { - "oneOf": [ - { - "type": "string", - "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the user" - }, - "send_anonymous_usage_stats": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "description": "Whether dbt is configured to send anonymous usage statistics" - }, - "adapter_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "The type name of the adapter" - } - }, - "additionalProperties": false, - "description": "Metadata for the manifest." - }, - "CompiledAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "FileHash": { - "type": "object", - "required": [ - "name", - "checksum" - ], - "properties": { - "name": { - "type": "string" - }, - "checksum": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "FileHash(name: str, checksum: str)" - }, - "NodeConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "view" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None)" - }, - "Hook": { - "type": "object", - "required": [ - "sql" - ], - "properties": { - "sql": { - "type": "string" - }, - "transaction": { - "type": "boolean", - "default": true - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" - }, - "DependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "nodes": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" - }, - "ColumnInfo": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - }, - "data_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "quote": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": true, - "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" - }, - "Docs": { - "type": "object", - "required": [], - "properties": { - "show": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "description": "Docs(show: bool = True)" - }, - "InjectedCTE": { - "type": "object", - "required": [ - "id", - "sql" - ], - "properties": { - "id": { - "type": "string" - }, - "sql": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "InjectedCTE(id: str, sql: str)" - }, - "CompiledDataTestNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledDataTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "TestConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "test" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "dbt_test__audit" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "severity": { - "type": "string", - "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", - "default": "ERROR" - }, - "store_failures": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "where": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "limit": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "fail_calc": { - "type": "string", - "default": "count(*)" - }, - "warn_if": { - "type": "string", - "default": "!= 0" - }, - "error_if": { - "type": "string", - "default": "!= 0" - } - }, - "additionalProperties": true, - "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'test', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" - }, - "CompiledModelNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledHookNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" - }, - "CompiledRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledSchemaTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None)" - }, - "TestMetadata": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "kwargs": { - "type": "object", - "default": {} - }, - "namespace": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" - }, - "CompiledSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "materialized": "seed", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "quote_columns": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "SeedConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "seed" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "quote_columns": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, quote_columns: Union[bool, NoneType] = None)" - }, - "CompiledSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "ParsedAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" - }, - "ParsedDataTestNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedDataTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" - }, - "ParsedHookNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , index: Union[int, NoneType] = None)" - }, - "ParsedModelNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" - }, - "ParsedRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "materialized": "view", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" - }, - "ParsedSchemaTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "materialized": "test", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "full_refresh": null, - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedSchemaTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = , column_name: Union[str, NoneType] = None)" - }, - "ParsedSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "materialized": "seed", - "persist_docs": {}, - "vars": {}, - "quoting": {}, - "column_types": {}, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "full_refresh": null, - "quote_columns": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" - }, - "ParsedSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum", - "config" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SnapshotConfig" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[Any]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: int = )" - }, - "SnapshotConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "materialized": { - "type": "string", - "default": "snapshot" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "vars": { - "type": "object", - "default": {} - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "strategy": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "unique_key": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "target_schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "target_database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "updated_at": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "check_cols": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , vars: Dict[str, Any] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , full_refresh: Union[bool, NoneType] = None, strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" - }, - "ParsedSourceDefinition": { - "type": "object", - "required": [ - "fqn", - "schema", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "source_name", - "source_description", - "loader", - "identifier", - "resource_type" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source_name": { - "type": "string" - }, - "source_description": { - "type": "string" - }, - "loader": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "source" - ] - }, - "quoting": { - "$ref": "#/definitions/Quoting", - "default": { - "database": null, - "schema": null, - "identifier": null, - "column": null - } - }, - "loaded_at_field": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "freshness": { - "oneOf": [ - { - "$ref": "#/definitions/FreshnessThreshold" - }, - { - "type": "null" - } - ] - }, - "external": { - "oneOf": [ - { - "$ref": "#/definitions/ExternalTable" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "source_meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "config": { - "$ref": "#/definitions/SourceConfig", - "default": { - "enabled": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: int = )" - }, - "Quoting": { - "type": "object", - "required": [], - "properties": { - "database": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "identifier": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "column": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" - }, - "FreshnessThreshold": { - "type": "object", - "required": [], - "properties": { - "warn_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ] - }, - "error_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ] - }, - "filter": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = None, filter: Union[str, NoneType] = None)" - }, - "FreshnessMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/sources/v1.json" - }, - "dbt_version": { - "type": "string", - "default": "0.20.0rc1" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-06-07T14:49:01.095724Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - } - }, - "additionalProperties": false, - "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '0.20.0rc1', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" - }, - "SourceFreshnessRuntimeError": { - "type": "object", - "required": [ - "unique_id", - "status" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "error": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "status": { - "type": "string", - "enum": [ - "runtime error" - ] - } - }, - "additionalProperties": false, - "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" - }, - "SourceFreshnessOutput": { - "type": "object", - "required": [ - "unique_id", - "max_loaded_at", - "snapshotted_at", - "max_loaded_at_time_ago_in_s", - "status", - "criteria", - "adapter_response" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "max_loaded_at": { - "type": "string", - "format": "date-time" - }, - "snapshotted_at": { - "type": "string", - "format": "date-time" - }, - "max_loaded_at_time_ago_in_s": { - "type": "number" - }, - "status": { - "type": "string", - "enum": [ - "pass", - "warn", - "error", - "runtime error" - ] - }, - "criteria": { - "$ref": "#/definitions/FreshnessThreshold" - }, - "adapter_response": { - "type": "object" - } - }, - "additionalProperties": false, - "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any])" - }, - "Time": { - "type": "object", - "required": [ - "count", - "period" - ], - "properties": { - "count": { - "type": "integer" - }, - "period": { - "type": "string", - "enum": [ - "minute", - "hour", - "day" - ] - } - }, - "additionalProperties": false, - "description": "Time(count: int, period: dbt.contracts.graph.unparsed.TimePeriod)" - }, - "ExternalTable": { - "type": "object", - "required": [], - "properties": { - "location": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "row_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tbl_properties": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "partitions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/ExternalPartition" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" - }, - "ExternalPartition": { - "type": "object", - "required": [], - "properties": { - "name": { - "type": "string", - "default": "" - }, - "description": { - "type": "string", - "default": "" - }, - "data_type": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - } - }, - "additionalProperties": true, - "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" - }, - "SourceConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": true, - "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" - }, - "ParsedMacro": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "macro_sql", - "resource_type" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "macro_sql": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "macro" - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/MacroDependsOn", - "default": { - "macros": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "arguments": { - "type": "array", - "items": { - "$ref": "#/definitions/MacroArgument" - }, - "default": [] - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: int = )" - }, - "MacroDependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "MacroDependsOn(macros: List[str] = )" - }, - "MacroArgument": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - } - }, - "additionalProperties": false, - "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" - }, - "ParsedDocumentation": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "block_contents" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "block_contents": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" - }, - "ParsedExposure": { - "type": "object", - "required": [ - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "type", - "owner" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "dashboard", - "notebook", - "analysis", - "ml", - "application" - ] - }, - "owner": { - "$ref": "#/definitions/ExposureOwner" - }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "docs", - "source", - "macro", - "exposure" - ], - "default": "exposure" - }, - "description": { - "type": "string", - "default": "" - }, - "maturity": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low", - "medium", - "high" - ] - }, - { - "type": "null" - } - ] - }, - "meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "url": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "created_at": { - "type": "integer", - "default": 1623077341 - } - }, - "additionalProperties": false, - "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: int = )" - }, - "ExposureOwner": { - "type": "object", - "required": [ - "email" - ], - "properties": { - "email": { - "type": "string" - }, - "name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schemas.getdbt.com/dbt/manifest/v2.json" -} \ No newline at end of file diff --git a/dbt2looker/dbt_json_schemas/manifest_v4.json b/dbt2looker/dbt_json_schemas/manifest_v4.json deleted file mode 100644 index 6db292f..0000000 --- a/dbt2looker/dbt_json_schemas/manifest_v4.json +++ /dev/null @@ -1,5939 +0,0 @@ -{ - "type": "object", - "required": [ - "metadata", - "nodes", - "sources", - "macros", - "docs", - "exposures", - "metrics", - "selectors" - ], - "properties": { - "metadata": { - "$ref": "#/definitions/ManifestMetadata", - "description": "Metadata about the manifest" - }, - "nodes": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledSingularTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSqlNode" - }, - { - "$ref": "#/definitions/CompiledGenericTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedSingularTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSqlNode" - }, - { - "$ref": "#/definitions/ParsedGenericTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - } - ] - }, - "description": "The nodes defined in the dbt project and its dependencies" - }, - "sources": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedSourceDefinition" - }, - "description": "The sources defined in the dbt project and its dependencies" - }, - "macros": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedMacro" - }, - "description": "The macros defined in the dbt project and its dependencies" - }, - "docs": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedDocumentation" - }, - "description": "The docs defined in the dbt project and its dependencies" - }, - "exposures": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedExposure" - }, - "description": "The exposures defined in the dbt project and its dependencies" - }, - "metrics": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ParsedMetric" - }, - "description": "The metrics defined in the dbt project and its dependencies" - }, - "selectors": { - "type": "object", - "description": "The selectors defined in selectors.yml" - }, - "disabled": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledSingularTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSqlNode" - }, - { - "$ref": "#/definitions/CompiledGenericTestNode" - }, - { - "$ref": "#/definitions/CompiledSeedNode" - }, - { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedSingularTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSqlNode" - }, - { - "$ref": "#/definitions/ParsedGenericTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedSourceDefinition" - } - ] - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping of the disabled nodes in the target" - }, - "parent_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from\u00a0child nodes to their dependencies" - }, - "child_map": { - "oneOf": [ - { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - } - } - }, - { - "type": "null" - } - ], - "description": "A mapping from parent nodes to their dependents" - } - }, - "additionalProperties": false, - "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", - "definitions": { - "ManifestMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" - }, - "dbt_version": { - "type": "string", - "default": "1.0.0rc2" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-11-30T01:35:47.307789Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "66dd78f0-c79a-4b06-81b1-99794345df16" - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - }, - "project_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the project" - }, - "user_id": { - "oneOf": [ - { - "type": "string", - "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" - }, - { - "type": "null" - } - ], - "description": "A unique identifier for the user" - }, - "send_anonymous_usage_stats": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ], - "description": "Whether dbt is configured to send anonymous usage statistics" - }, - "adapter_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "description": "The type name of the adapter" - } - }, - "additionalProperties": false, - "description": "Metadata for the manifest." - }, - "CompiledAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3118432 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "FileHash": { - "type": "object", - "required": [ - "name", - "checksum" - ], - "properties": { - "name": { - "type": "string" - }, - "checksum": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "FileHash(name: str, checksum: str)" - }, - "NodeConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "view" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "on_schema_change": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "ignore" - } - }, - "additionalProperties": true, - "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" - }, - "Hook": { - "type": "object", - "required": [ - "sql" - ], - "properties": { - "sql": { - "type": "string" - }, - "transaction": { - "type": "boolean", - "default": true - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" - }, - "DependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "nodes": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" - }, - "ColumnInfo": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - }, - "data_type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "quote": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": true, - "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" - }, - "Docs": { - "type": "object", - "required": [], - "properties": { - "show": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": false, - "description": "Docs(show: bool = True)" - }, - "InjectedCTE": { - "type": "object", - "required": [ - "id", - "sql" - ], - "properties": { - "id": { - "type": "string" - }, - "sql": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "InjectedCTE(id: str, sql: str)" - }, - "CompiledSingularTestNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.314477 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "TestConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "dbt_test__audit" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "test" - }, - "severity": { - "type": "string", - "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", - "default": "ERROR" - }, - "store_failures": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "where": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "limit": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "fail_calc": { - "type": "string", - "default": "count(*)" - }, - "warn_if": { - "type": "string", - "default": "!= 0" - }, - "error_if": { - "type": "string", - "default": "!= 0" - } - }, - "additionalProperties": true, - "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" - }, - "CompiledModelNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.315979 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledHookNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.317642 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" - }, - "CompiledRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.319278 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledSqlNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "sql" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.321433 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "CompiledGenericTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.323731 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_key_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" - }, - "TestMetadata": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "kwargs": { - "type": "object", - "default": {} - }, - "namespace": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" - }, - "CompiledSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "seed", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "quote_columns": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.326388 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "SeedConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "seed" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "on_schema_change": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "ignore" - }, - "quote_columns": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" - }, - "CompiledSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.328031 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" - }, - "ParsedAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.329485 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSingularTestNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3306549 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedHookNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.332001 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" - }, - "ParsedModelNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.333348 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.335125 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSqlNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "sql" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.336567 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedGenericTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3383949 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_key_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" - }, - "ParsedSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "seed", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "on_schema_change": "ignore", - "quote_columns": null, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.339838 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum", - "config" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SnapshotConfig" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1638236147.3425322 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "SnapshotConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "alias": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tags": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "string" - } - ], - "default": [] - }, - "meta": { - "type": "object", - "default": {} - }, - "materialized": { - "type": "string", - "default": "snapshot" - }, - "persist_docs": { - "type": "object", - "default": {} - }, - "post-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "pre-hook": { - "type": "array", - "items": { - "$ref": "#/definitions/Hook" - }, - "default": [] - }, - "quoting": { - "type": "object", - "default": {} - }, - "column_types": { - "type": "object", - "default": {} - }, - "full_refresh": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "on_schema_change": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "ignore" - }, - "strategy": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "unique_key": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "target_schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "target_database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "updated_at": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "check_cols": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" - }, - "ParsedSourceDefinition": { - "type": "object", - "required": [ - "fqn", - "schema", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "source_name", - "source_description", - "loader", - "identifier", - "resource_type" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "source_name": { - "type": "string" - }, - "source_description": { - "type": "string" - }, - "loader": { - "type": "string" - }, - "identifier": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "source" - ] - }, - "quoting": { - "$ref": "#/definitions/Quoting", - "default": { - "database": null, - "schema": null, - "identifier": null, - "column": null - } - }, - "loaded_at_field": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "freshness": { - "oneOf": [ - { - "$ref": "#/definitions/FreshnessThreshold" - }, - { - "type": "null" - } - ] - }, - "external": { - "oneOf": [ - { - "$ref": "#/definitions/ExternalTable" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "source_meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "config": { - "$ref": "#/definitions/SourceConfig", - "default": { - "enabled": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "created_at": { - "type": "number", - "default": 1638236147.345053 - } - }, - "additionalProperties": false, - "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" - }, - "Quoting": { - "type": "object", - "required": [], - "properties": { - "database": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "schema": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "identifier": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - }, - "column": { - "oneOf": [ - { - "type": "boolean" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" - }, - "FreshnessThreshold": { - "type": "object", - "required": [], - "properties": { - "warn_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ], - "default": { - "count": null, - "period": null - } - }, - "error_after": { - "oneOf": [ - { - "$ref": "#/definitions/Time" - }, - { - "type": "null" - } - ], - "default": { - "count": null, - "period": null - } - }, - "filter": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" - }, - "FreshnessMetadata": { - "type": "object", - "required": [], - "properties": { - "dbt_schema_version": { - "type": "string", - "default": "https://schemas.getdbt.com/dbt/sources/v3.json" - }, - "dbt_version": { - "type": "string", - "default": "1.0.0rc2" - }, - "generated_at": { - "type": "string", - "format": "date-time", - "default": "2021-11-30T01:35:47.301745Z" - }, - "invocation_id": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ], - "default": "66dd78f0-c79a-4b06-81b1-99794345df16" - }, - "env": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "default": {} - } - }, - "additionalProperties": false, - "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" - }, - "SourceFreshnessRuntimeError": { - "type": "object", - "required": [ - "unique_id", - "status" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "error": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "status": { - "type": "string", - "enum": [ - "runtime error" - ] - } - }, - "additionalProperties": false, - "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" - }, - "SourceFreshnessOutput": { - "type": "object", - "required": [ - "unique_id", - "max_loaded_at", - "snapshotted_at", - "max_loaded_at_time_ago_in_s", - "status", - "criteria", - "adapter_response", - "timing", - "thread_id", - "execution_time" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "max_loaded_at": { - "type": "string", - "format": "date-time" - }, - "snapshotted_at": { - "type": "string", - "format": "date-time" - }, - "max_loaded_at_time_ago_in_s": { - "type": "number" - }, - "status": { - "type": "string", - "enum": [ - "pass", - "warn", - "error", - "runtime error" - ] - }, - "criteria": { - "$ref": "#/definitions/FreshnessThreshold" - }, - "adapter_response": { - "type": "object" - }, - "timing": { - "type": "array", - "items": { - "$ref": "#/definitions/TimingInfo" - } - }, - "thread_id": { - "type": "string" - }, - "execution_time": { - "type": "number" - } - }, - "additionalProperties": false, - "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" - }, - "Time": { - "type": "object", - "required": [], - "properties": { - "count": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - }, - "period": { - "oneOf": [ - { - "type": "string", - "enum": [ - "minute", - "hour", - "day" - ] - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" - }, - "TimingInfo": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "started_at": { - "oneOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - }, - "completed_at": { - "oneOf": [ - { - "type": "string", - "format": "date-time" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" - }, - "ExternalTable": { - "type": "object", - "required": [], - "properties": { - "location": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "row_format": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "tbl_properties": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "partitions": { - "oneOf": [ - { - "type": "array", - "items": { - "$ref": "#/definitions/ExternalPartition" - } - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": true, - "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" - }, - "ExternalPartition": { - "type": "object", - "required": [], - "properties": { - "name": { - "type": "string", - "default": "" - }, - "description": { - "type": "string", - "default": "" - }, - "data_type": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - } - }, - "additionalProperties": true, - "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" - }, - "SourceConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true - } - }, - "additionalProperties": true, - "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" - }, - "ParsedMacro": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "macro_sql", - "resource_type" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "macro_sql": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "macro" - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/MacroDependsOn", - "default": { - "macros": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "arguments": { - "type": "array", - "items": { - "$ref": "#/definitions/MacroArgument" - }, - "default": [] - }, - "created_at": { - "type": "number", - "default": 1638236147.345993 - } - }, - "additionalProperties": false, - "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" - }, - "MacroDependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - } - }, - "additionalProperties": false, - "description": "MacroDependsOn(macros: List[str] = )" - }, - "MacroArgument": { - "type": "object", - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "type": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "description": { - "type": "string", - "default": "" - } - }, - "additionalProperties": false, - "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" - }, - "ParsedDocumentation": { - "type": "object", - "required": [ - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "block_contents" - ], - "properties": { - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "block_contents": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" - }, - "ParsedExposure": { - "type": "object", - "required": [ - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "type", - "owner" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "dashboard", - "notebook", - "analysis", - "ml", - "application" - ] - }, - "owner": { - "$ref": "#/definitions/ExposureOwner" - }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "sql", - "docs", - "source", - "macro", - "exposure", - "metric" - ], - "default": "exposure" - }, - "description": { - "type": "string", - "default": "" - }, - "maturity": { - "oneOf": [ - { - "type": "string", - "enum": [ - "low", - "medium", - "high" - ] - }, - { - "type": "null" - } - ] - }, - "meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "url": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "created_at": { - "type": "number", - "default": 1638236147.347234 - } - }, - "additionalProperties": false, - "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" - }, - "ExposureOwner": { - "type": "object", - "required": [ - "email" - ], - "properties": { - "email": { - "type": "string" - }, - "name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" - }, - "ParsedMetric": { - "type": "object", - "required": [ - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "model", - "name", - "description", - "label", - "type", - "filters", - "time_grains", - "dimensions" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "model": { - "type": "string" - }, - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "label": { - "type": "string" - }, - "type": { - "type": "string" - }, - "sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "timestamp": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "filters": { - "type": "array", - "items": { - "$ref": "#/definitions/MetricFilter" - } - }, - "time_grains": { - "type": "array", - "items": { - "type": "string" - } - }, - "dimensions": { - "type": "array", - "items": { - "type": "string" - } - }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "sql", - "docs", - "source", - "macro", - "exposure", - "metric" - ], - "default": "metric" - }, - "meta": { - "type": "object", - "default": {} - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "created_at": { - "type": "number", - "default": 1638236147.348404 - } - }, - "additionalProperties": false, - "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" - }, - "MetricFilter": { - "type": "object", - "required": [ - "field", - "operator", - "value" - ], - "properties": { - "field": { - "type": "string" - }, - "operator": { - "type": "string" - }, - "value": { - "type": "string" - } - }, - "additionalProperties": false, - "description": "MetricFilter(field: str, operator: str, value: str)" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schemas.getdbt.com/dbt/manifest/v4.json" -} \ No newline at end of file diff --git a/dbt2looker/generator.py b/dbt2looker/generator.py deleted file mode 100644 index 0d828c8..0000000 --- a/dbt2looker/generator.py +++ /dev/null @@ -1,347 +0,0 @@ -import logging -import re - -import lkml - -from . import models - -LOOKER_DTYPE_MAP = { - 'bigquery': { - 'INT64': 'number', - 'INTEGER': 'number', - 'FLOAT': 'number', - 'FLOAT64': 'number', - 'NUMERIC': 'number', - 'BOOLEAN': 'yesno', - 'STRING': 'string', - 'TIMESTAMP': 'timestamp', - 'DATETIME': 'datetime', - 'DATE': 'date', - 'TIME': 'string', # Can time-only be handled better in looker? - 'BOOL': 'yesno', - 'ARRAY': 'string', - 'GEOGRAPHY': 'string', - }, - 'snowflake': { - 'NUMBER': 'number', - 'DECIMAL': 'number', - 'NUMERIC': 'number', - 'INT': 'number', - 'INTEGER': 'number', - 'BIGINT': 'number', - 'SMALLINT': 'number', - 'FLOAT': 'number', - 'FLOAT4': 'number', - 'FLOAT8': 'number', - 'DOUBLE': 'number', - 'DOUBLE PRECISION': 'number', - 'REAL': 'number', - 'VARCHAR': 'string', - 'CHAR': 'string', - 'CHARACTER': 'string', - 'STRING': 'string', - 'TEXT': 'string', - 'BINARY': 'string', - 'VARBINARY': 'string', - 'BOOLEAN': 'yesno', - 'DATE': 'date', - 'DATETIME': 'datetime', - 'TIME': 'string', # can we support time? - 'TIMESTAMP': 'timestamp', - 'TIMESTAMP_NTZ': 'timestamp', - # TIMESTAMP_LTZ not supported (see https://docs.looker.com/reference/field-params/dimension_group) - # TIMESTAMP_TZ not supported (see https://docs.looker.com/reference/field-params/dimension_group) - 'VARIANT': 'string', - 'OBJECT': 'string', - 'ARRAY': 'string', - 'GEOGRAPHY': 'string', - }, - 'redshift': { - 'SMALLINT': 'number', - 'INT2': 'number', - 'INTEGER': 'number', - 'INT': 'number', - 'INT4': 'number', - 'BIGINT': 'number', - 'INT8': 'number', - 'DECIMAL': 'number', - 'NUMERIC': 'number', - 'REAL': 'number', - 'FLOAT4': 'number', - 'DOUBLE PRECISION': 'number', - 'FLOAT8': 'number', - 'FLOAT': 'number', - 'BOOLEAN': 'yesno', - 'BOOL': 'yesno', - 'CHAR': 'string', - 'CHARACTER': 'string', - 'NCHAR': 'string', - 'BPCHAR': 'string', - 'VARCHAR': 'string', - 'CHARACTER VARYING': 'string', - 'NVARCHAR': 'string', - 'TEXT': 'string', - 'DATE': 'date', - 'TIMESTAMP': 'timestamp', - 'TIMESTAMP WITHOUT TIME ZONE': 'timestamp', - # TIMESTAMPTZ not supported - # TIMESTAMP WITH TIME ZONE not supported - 'GEOMETRY': 'string', - # HLLSKETCH not supported - 'TIME': 'string', - 'TIME WITHOUT TIME ZONE': 'string', - # TIMETZ not supported - # TIME WITH TIME ZONE not supported - }, - 'postgres': { - # BIT, BIT VARYING, VARBIT not supported - # BOX not supported - # BYTEA not supported - # CIRCLE not supported - # INTERVAL not supported - # LINE not supported - # LSEG not supported - # PATH not supported - # POINT not supported - # POLYGON not supported - # TSQUERY, TSVECTOR not supported - 'XML': 'string', - 'UUID': 'string', - 'PG_LSN': 'string', - 'MACADDR': 'string', - 'JSON': 'string', - 'JSONB': 'string', - 'CIDR': 'string', - 'INET': 'string', - 'MONEY': 'number', - 'SMALLINT': 'number', - 'INT2': 'number', - 'SMALLSERIAL': 'number', - 'SERIAL2': 'number', - 'INTEGER': 'number', - 'INT': 'number', - 'INT4': 'number', - 'SERIAL': 'number', - 'SERIAL4': 'number', - 'BIGINT': 'number', - 'INT8': 'number', - 'BIGSERIAL': 'number', - 'SERIAL8': 'number', - 'DECIMAL': 'number', - 'NUMERIC': 'number', - 'REAL': 'number', - 'FLOAT4': 'number', - 'DOUBLE PRECISION': 'number', - 'FLOAT8': 'number', - 'FLOAT': 'number', - 'BOOLEAN': 'yesno', - 'BOOL': 'yesno', - 'CHAR': 'string', - 'CHARACTER': 'string', - 'NCHAR': 'string', - 'BPCHAR': 'string', - 'VARCHAR': 'string', - 'CHARACTER VARYING': 'string', - 'NVARCHAR': 'string', - 'TEXT': 'string', - 'DATE': 'date', - 'TIMESTAMP': 'timestamp', - 'TIMESTAMP WITHOUT TIME ZONE': 'timestamp', - # TIMESTAMPTZ not supported - # TIMESTAMP WITH TIME ZONE not supported - 'GEOMETRY': 'string', - # HLLSKETCH not supported - 'TIME': 'string', - 'TIME WITHOUT TIME ZONE': 'string', - # TIMETZ not supported - # TIME WITH TIME ZONE not supported - }, - 'spark': { - 'byte': 'number', - 'short': 'number', - 'integer': 'number', - 'long': 'number', - 'float': 'number', - 'double': 'number', - 'decimal': 'number', - 'string': 'string', - 'varchar': 'string', - 'char': 'string', - 'boolean': 'yesno', - 'timestamp': 'timestamp', - 'date': 'datetime', - } -} - -looker_date_time_types = ['datetime', 'timestamp'] -looker_date_types = ['date'] -looker_scalar_types = ['number', 'yesno', 'string'] - -looker_timeframes = [ - 'raw', - 'time', - 'date', - 'week', - 'month', - 'quarter', - 'year', -] - - -def normalise_spark_types(column_type: str) -> str: - return re.match(r'^[^\(]*', column_type).group(0) - - -def map_adapter_type_to_looker(adapter_type: models.SupportedDbtAdapters, column_type: str): - if column_type is None: - return None - normalised_column_type = normalise_spark_types(column_type) if adapter_type == models.SupportedDbtAdapters.spark.value else column_type - looker_type = LOOKER_DTYPE_MAP[adapter_type].get(normalised_column_type) - if (column_type is not None) and (looker_type is None): - logging.warning(f'Column type {column_type} not supported for conversion from {adapter_type} to looker. No dimension will be created.') - return looker_type - - -def lookml_date_time_dimension_group(column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters): - return { - 'name': column.meta.dimension.name or column.name, - 'type': 'time', - 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', - 'description': column.meta.dimension.description or column.description, - 'datatype': map_adapter_type_to_looker(adapter_type, column.data_type), - 'timeframes': ['raw', 'time', 'hour', 'date', 'week', 'month', 'quarter', 'year'] - } - - -def lookml_date_dimension_group(column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters): - return { - 'name': column.meta.dimension.name or column.name, - 'type': 'time', - 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', - 'description': column.meta.dimension.description or column.description, - 'datatype': map_adapter_type_to_looker(adapter_type, column.data_type), - 'timeframes': ['raw', 'date', 'week', 'month', 'quarter', 'year'] - } - - -def lookml_dimension_groups_from_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): - date_times = [ - lookml_date_time_dimension_group(column, adapter_type) - for column in model.columns.values() - if map_adapter_type_to_looker(adapter_type, column.data_type) in looker_date_time_types - ] - dates = [ - lookml_date_dimension_group(column, adapter_type) - for column in model.columns.values() - if column.meta.dimension.enabled - and map_adapter_type_to_looker(adapter_type, column.data_type) in looker_date_types - ] - return date_times + dates - - -def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): - return [ - { - 'name': column.meta.dimension.name or column.name, - 'type': map_adapter_type_to_looker(adapter_type, column.data_type), - 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', - 'description': column.meta.dimension.description or column.description, - **( - {'value_format_name': column.meta.dimension.value_format_name.value} - if (column.meta.dimension.value_format_name - and map_adapter_type_to_looker(adapter_type, column.data_type) == 'number') - else {} - ) - } - for column in model.columns.values() - if column.meta.dimension.enabled - and map_adapter_type_to_looker(adapter_type, column.data_type) in looker_scalar_types - ] - - -def lookml_measure_filters(measure: models.Dbt2LookerMeasure, model: models.DbtModel): - try: - columns = { - column_name: model.columns[column_name] - for f in measure.filters - for column_name in f - } - except KeyError as e: - raise ValueError( - f'Model {model.unique_id} contains a measure that references a non_existent column: {e}\n' - f'Ensure that dbt model {model.unique_id} contains a column: {e}' - ) from e - return [{ - (columns[column_name].meta.dimension.name or column_name): fexpr - for column_name, fexpr in f.items() - } for f in measure.filters] - - -def lookml_measures_from_model(model: models.DbtModel): - return [ - lookml_measure(measure_name, column, measure, model) - for column in model.columns.values() - for measure_name, measure in { - **column.meta.measures, **column.meta.measure, **column.meta.metrics, **column.meta.metric - }.items() - ] - - -def lookml_measure(measure_name: str, column: models.DbtModelColumn, measure: models.Dbt2LookerMeasure, model: models.DbtModel): - m = { - 'name': measure_name, - 'type': measure.type.value, - 'sql': measure.sql or f'${{TABLE}}.{column.name}', - 'description': measure.description or column.description or f'{measure.type.value.capitalize()} of {column.name}', - } - if measure.filters: - m['filters'] = lookml_measure_filters(measure, model) - if measure.value_format_name: - m['value_format_name'] = measure.value_format_name.value - return m - - -def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): - lookml = { - 'view': { - 'name': model.name, - 'sql_table_name': model.relation_name, - 'dimension_groups': lookml_dimension_groups_from_model(model, adapter_type), - 'dimensions': lookml_dimensions_from_model(model, adapter_type), - 'measures': lookml_measures_from_model(model), - } - } - logging.debug( - f'Created view from model %s with %d measures, %d dimensions', - model.name, - len(lookml['view']['measures']), - len(lookml['view']['dimensions']), - ) - contents = lkml.dump(lookml) - filename = f'{model.name}.view.lkml' - return models.LookViewFile(filename=filename, contents=contents) - - -def lookml_model_from_dbt_model(model: models.DbtModel, dbt_project_name: str): - # Note: assumes view names = model names - # and models are unique across dbt packages in project - lookml = { - 'connection': dbt_project_name, - 'include': '/views/*', - 'explore': { - 'name': model.name, - 'description': model.description, - 'joins': [ - { - 'name': join.join, - 'type': join.type.value, - 'relationship': join.relationship.value, - 'sql_on': join.sql_on, - } - for join in model.meta.joins - ] - } - } - contents = lkml.dump(lookml) - filename = f'{model.name}.model.lkml' - return models.LookModelFile(filename=filename, contents=contents) diff --git a/dbt2looker/models.py b/dbt2looker/models.py deleted file mode 100644 index 8a6c0f0..0000000 --- a/dbt2looker/models.py +++ /dev/null @@ -1,217 +0,0 @@ -from enum import Enum -from typing import Union, Dict, List, Optional -try: - from typing import Literal -except ImportError: - from typing_extensions import Literal -from pydantic import BaseModel, Field, PydanticValueError, validator - - -# dbt2looker utility types -class UnsupportedDbtAdapterError(PydanticValueError): - code = 'unsupported_dbt_adapter' - msg_template = '{wrong_value} is not a supported dbt adapter' - - -class SupportedDbtAdapters(str, Enum): - bigquery = 'bigquery' - postgres = 'postgres' - redshift = 'redshift' - snowflake = 'snowflake' - spark = 'spark' - - -# Lookml types -class LookerAggregateMeasures(str, Enum): - average = 'average' - average_distinct = 'average_distinct' - count = 'count' - count_distinct = 'count_distinct' - list = 'list' - max = 'max' - median = 'median' - median_distinct = 'median_distinct' - min = 'min' - # percentile = 'percentile' - # percentile_distinct = 'percentile_distinct' - sum = 'sum' - sum_distinct = 'sum_distinct' - - -class LookerJoinType(str, Enum): - left_outer = 'left_outer' - full_outer = 'full_outer' - inner = 'inner' - cross = 'cross' - - -class LookerJoinRelationship(str, Enum): - many_to_one = 'many_to_one' - many_to_many = 'many_to_many' - one_to_many = 'one_to_many' - one_to_one = 'one_to_one' - - -class LookerValueFormatName(str, Enum): - decimal_0 = 'decimal_0' - decimal_1 = 'decimal_1' - decimal_2 = 'decimal_2' - decimal_3 = 'decimal_3' - decimal_4 = 'decimal_4' - usd_0 = 'usd_0' - usd = 'usd' - gbp_0 = 'gbp_0' - gbp = 'gbp' - eur_0 = 'eur_0' - eur = 'eur' - id = 'id' - percent_0 = 'percent_0' - percent_1 = 'percent_1' - percent_2 = 'percent_2' - percent_3 = 'percent_3' - percent_4 = 'percent_4' - - -class Dbt2LookerMeasure(BaseModel): - type: LookerAggregateMeasures - filters: Optional[List[Dict[str, str]]] = [] - description: Optional[str] - sql: Optional[str] - value_format_name: Optional[LookerValueFormatName] - - @validator('filters') - def filters_are_singular_dicts(cls, v: List[Dict[str, str]]): - if v is not None: - for f in v: - if len(f) != 1: - raise ValueError('Multiple filter names provided for a single filter in measure block') - return v - - -class Dbt2LookerDimension(BaseModel): - enabled: Optional[bool] = True - name: Optional[str] - sql: Optional[str] - description: Optional[str] - value_format_name: Optional[LookerValueFormatName] - - -class Dbt2LookerMeta(BaseModel): - measures: Optional[Dict[str, Dbt2LookerMeasure]] = {} - measure: Optional[Dict[str, Dbt2LookerMeasure]] = {} - metrics: Optional[Dict[str, Dbt2LookerMeasure]] = {} - metric: Optional[Dict[str, Dbt2LookerMeasure]] = {} - dimension: Optional[Dbt2LookerDimension] = Dbt2LookerDimension() - - -# Looker file types -class LookViewFile(BaseModel): - filename: str - contents: str - - -class LookModelFile(BaseModel): - filename: str - contents: str - - -# dbt config types -class DbtProjectConfig(BaseModel): - name: str - - -class DbtModelColumnMeta(Dbt2LookerMeta): - pass - - -class DbtModelColumn(BaseModel): - name: str - description: str - data_type: Optional[str] - meta: DbtModelColumnMeta - - -class DbtNode(BaseModel): - unique_id: str - resource_type: str - - -class Dbt2LookerExploreJoin(BaseModel): - join: str - type: Optional[LookerJoinType] = LookerJoinType.left_outer - relationship: Optional[LookerJoinRelationship] = LookerJoinRelationship.many_to_one - sql_on: str - - -class Dbt2LookerModelMeta(BaseModel): - joins: Optional[List[Dbt2LookerExploreJoin]] = [] - - -class DbtModelMeta(Dbt2LookerModelMeta): - pass - - -class DbtModel(DbtNode): - resource_type: Literal['model'] - relation_name: str - db_schema: str = Field(..., alias='schema') - name: str - description: str - columns: Dict[str, DbtModelColumn] - tags: List[str] - meta: DbtModelMeta - - @validator('columns') - def case_insensitive_column_names(cls, v: Dict[str, DbtModelColumn]): - return { - name.lower(): column.copy(update={'name': column.name.lower()}) - for name, column in v.items() - } - - -class DbtManifestMetadata(BaseModel): - adapter_type: str - - @validator('adapter_type') - def adapter_must_be_supported(cls, v): - try: - SupportedDbtAdapters(v) - except ValueError: - raise UnsupportedDbtAdapterError(wrong_value=v) - return v - - -class DbtManifest(BaseModel): - nodes: Dict[str, Union[DbtModel, DbtNode]] - metadata: DbtManifestMetadata - - -class DbtCatalogNodeMetadata(BaseModel): - type: str - db_schema: str = Field(..., alias='schema') - name: str - comment: Optional[str] - owner: Optional[str] - - -class DbtCatalogNodeColumn(BaseModel): - type: str - comment: Optional[str] - index: int - name: str - - -class DbtCatalogNode(BaseModel): - metadata: DbtCatalogNodeMetadata - columns: Dict[str, DbtCatalogNodeColumn] - - @validator('columns') - def case_insensitive_column_names(cls, v: Dict[str, DbtCatalogNodeColumn]): - return { - name.lower(): column.copy(update={'name': column.name.lower()}) - for name, column in v.items() - } - - -class DbtCatalog(BaseModel): - nodes: Dict[str, DbtCatalogNode] \ No newline at end of file diff --git a/dbt2looker/parser.py b/dbt2looker/parser.py deleted file mode 100644 index 1f7a229..0000000 --- a/dbt2looker/parser.py +++ /dev/null @@ -1,125 +0,0 @@ -import logging -import json -import jsonschema -import importlib.resources -from typing import Dict, Optional, List, Union -from functools import reduce - -from . import models - - -def validate_manifest(raw_manifest: dict): - with importlib.resources.open_text("dbt2looker.dbt_json_schemas", "manifest_dbt2looker.json") as f: - schema = json.load(f) - v = jsonschema.Draft7Validator(schema) - hasError = False - for error in v.iter_errors(raw_manifest): - raise_error_context(error) - hasError = True - if hasError: - raise ValueError("Failed to parse dbt manifest.json") - return True - - -def raise_error_context(error: jsonschema.ValidationError, offset=''): - for error in sorted(error.context, key=lambda e: e.schema_path): - raise_error_context(error, offset=offset + ' ') - path = '.'.join([str(p) for p in error.absolute_path]) - logging.error(f'{offset}Error in manifest at {path}: {error.message}') - - -def validate_catalog(raw_catalog: dict): - return True - - -def parse_dbt_project_config(raw_config: dict): - return models.DbtProjectConfig(**raw_config) - - -def parse_catalog_nodes(raw_catalog: dict): - catalog = models.DbtCatalog(**raw_catalog) - return catalog.nodes - - -def parse_adapter_type(raw_manifest: dict): - manifest = models.DbtManifest(**raw_manifest) - return manifest.metadata.adapter_type - - -def tags_match(query_tag: str, model: models.DbtModel) -> bool: - try: - return query_tag in model.tags - except AttributeError: - return False - except ValueError: - # Is the tag just a string? - return query_tag == model.tags - - -def parse_models(raw_manifest: dict, tag=None) -> List[models.DbtModel]: - manifest = models.DbtManifest(**raw_manifest) - all_models: List[models.DbtModel] = [ - node - for node in manifest.nodes.values() - if node.resource_type == 'model' - ] - - # Empty model files have many missing parameters - for model in all_models: - if not hasattr(model, 'name'): - logging.error('Cannot parse model with id: "%s" - is the model file empty?', model.unique_id) - raise SystemExit('Failed') - - if tag is None: - return all_models - return [model for model in all_models if tags_match(tag, model)] - - -def check_models_for_missing_column_types(dbt_typed_models: List[models.DbtModel]): - for model in dbt_typed_models: - if all([col.data_type is None for col in model.columns.values()]): - logging.debug('Model %s has no typed columns, no dimensions will be generated. %s', model.unique_id, model) - - -def parse_typed_models(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] = None): - catalog_nodes = parse_catalog_nodes(raw_catalog) - dbt_models = parse_models(raw_manifest, tag=tag) - adapter_type = parse_adapter_type(raw_manifest) - - logging.debug('Parsed %d models from manifest.json', len(dbt_models)) - for model in dbt_models: - logging.debug( - 'Model %s has %d columns with %d measures', - model.name, - len(model.columns), - reduce(lambda acc, col: acc + len(col.meta.measures) + len(col.meta.measure) + len(col.meta.metrics) + len(col.meta.metric), model.columns.values(), 0) - ) - - # Check catalog for models - for model in dbt_models: - if model.unique_id not in catalog_nodes: - logging.warning( - f'Model {model.unique_id} not found in catalog. No looker view will be generated. ' - f'Check if model has materialized in {adapter_type} at {model.relation_name}') - - # Update dbt models with data types from catalog - dbt_typed_models = [ - model.copy(update={'columns': { - column.name: column.copy(update={ - 'data_type': get_column_type_from_catalog(catalog_nodes, model.unique_id, column.name) - }) - for column in model.columns.values() - }}) - for model in dbt_models - if model.unique_id in catalog_nodes - ] - logging.debug('Found catalog entries for %d models', len(dbt_typed_models)) - logging.debug('Catalog entries missing for %d models', len(dbt_models) - len(dbt_typed_models)) - check_models_for_missing_column_types(dbt_typed_models) - return dbt_typed_models - - -def get_column_type_from_catalog(catalog_nodes: Dict[str, models.DbtCatalogNode], model_id: str, column_name: str): - node = catalog_nodes.get(model_id) - column = None if node is None else node.columns.get(column_name) - return None if column is None else column.type diff --git a/pyproject.toml b/pyproject.toml index 87d14ce..2748f58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" readme = "README.md" -homepage = "https://github.com/hubble-data/dbt2looker" +homepage = "https://github.com/YotpoLtd/yoda-dbt2looker" repository = "https://github.com/YotpoLtd/yoda-dbt2looker" [tool.poetry.dependencies] @@ -24,4 +24,4 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.poetry.scripts] -dbt2looker = 'dbt2looker.cli:run' +yoda_dbt2looker = 'yoda_dbt2looker.cli:run' From 0525872c86618fa72b0734f2659f42d054f4c5a4 Mon Sep 17 00:00:00 2001 From: chaimt Date: Sun, 1 May 2022 14:09:42 +0000 Subject: [PATCH 19/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2748f58..ab72805 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.6" +version = "0.9.7" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 525f75421b4178424b26bff9ed8d2efb32e74641 Mon Sep 17 00:00:00 2001 From: Travis CI Date: Tue, 3 May 2022 16:28:00 +0300 Subject: [PATCH 20/87] fix yoda_dbt2looker --- yoda_dbt2looker/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index 1f7a229..ce695af 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -9,7 +9,7 @@ def validate_manifest(raw_manifest: dict): - with importlib.resources.open_text("dbt2looker.dbt_json_schemas", "manifest_dbt2looker.json") as f: + with importlib.resources.open_text("yoda_dbt2looker.dbt_json_schemas", "manifest_dbt2looker.json") as f: schema = json.load(f) v = jsonschema.Draft7Validator(schema) hasError = False From 29e49196cfc938ff521d7a13b68b6c75f46650fd Mon Sep 17 00:00:00 2001 From: chaimt Date: Tue, 3 May 2022 13:29:20 +0000 Subject: [PATCH 21/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ab72805..abfff35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.7" +version = "0.9.8" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From ad5a14a2e22afa3275b068864d386b355b53230a Mon Sep 17 00:00:00 2001 From: Travis CI Date: Mon, 16 May 2022 11:10:37 +0300 Subject: [PATCH 22/87] fix include views --- yoda_dbt2looker/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 0d828c8..a836d3f 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -327,7 +327,7 @@ def lookml_model_from_dbt_model(model: models.DbtModel, dbt_project_name: str): # and models are unique across dbt packages in project lookml = { 'connection': dbt_project_name, - 'include': '/views/*', + 'include': 'views/*', 'explore': { 'name': model.name, 'description': model.description, From 67f4721f54e5cdea8eaf5700b3662b845c6add57 Mon Sep 17 00:00:00 2001 From: chaimt Date: Mon, 16 May 2022 08:12:07 +0000 Subject: [PATCH 23/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index abfff35..81bd7be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.8" +version = "0.9.9" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 5f307a4c411891944012ffcdc490254bf485d5f7 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Sun, 19 Jun 2022 16:51:48 +0300 Subject: [PATCH 24/87] add exposure support --- yoda_dbt2looker/cli.py | 23 +++++++++++-- yoda_dbt2looker/generator.py | 65 +++++++++++++++++++++++++++++++++++- yoda_dbt2looker/models.py | 12 +++++++ yoda_dbt2looker/parser.py | 30 +++++++++++++++++ 4 files changed, 127 insertions(+), 3 deletions(-) diff --git a/yoda_dbt2looker/cli.py b/yoda_dbt2looker/cli.py index ad8e294..73535e6 100644 --- a/yoda_dbt2looker/cli.py +++ b/yoda_dbt2looker/cli.py @@ -17,6 +17,7 @@ from . import parser from . import generator +from . import models MANIFEST_PATH = './manifest.json' DEFAULT_LOOKML_OUTPUT_DIR = './lookml' @@ -115,6 +116,7 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK # Get dbt models from manifestpo dbt_project_config = parser.parse_dbt_project_config(raw_config) typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, tag=tag) + typed_dbt_exposures = parser.parse_typed_exposures(raw_manifest, raw_catalog, tag=tag) adapter_type = parser.parse_adapter_type(raw_manifest) # Generate lookml views @@ -130,13 +132,30 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK logging.info(f'Generated {len(lookml_views)} lookml views in {os.path.join(output_dir, "views")}') # Generate Lookml models + manifest = models.DbtManifest(**raw_manifest) lookml_models = [ - generator.lookml_model_from_dbt_model(model, dbt_project_config.name) + generator.lookml_model_from_dbt_model(manifest, model, dbt_project_config.name) for model in typed_dbt_models ] - for model in lookml_models: + lookml_models_exposures = [ + generator.lookml_model_from_dbt_model(manifest, exposure, dbt_project_config.name) + for exposure in typed_dbt_exposures + ] + for model in lookml_models + lookml_models_exposures: with open(os.path.join(output_dir, model.filename), 'w') as f: f.write(model.contents) + + + # Generate Lookml models from exposures + lookml_exposure_models = [ + generator.lookml_model_from_exposure_dbt_model(model, dbt_project_config.name) + for model in typed_dbt_exposures + ] + for model in lookml_exposure_models: + with open(os.path.join(output_dir, model.filename), 'w') as f: + f.write(model.contents) + logging.info(f'Generated {len(lookml_models)} lookml models in {output_dir}') + logging.info(f'Generated {len(lookml_exposure_models)} lookml exposure models in {output_dir}') logging.info('Success') diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index a836d3f..87b01a3 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -321,8 +321,71 @@ def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.Supp filename = f'{model.name}.view.lkml' return models.LookViewFile(filename=filename, contents=contents) +def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: + reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" + matches = re.findall(reg_ref, ref_str) + if not matches or len(matches) == 0: + return None + + ref_str = ref_str.replace(" ", "") + for group_value in matches: + model_loopup = f"model.{project_name}.{group_value.strip()}" + model_node = manifest.nodes.get(model_loopup) + ref_str = ref_str.replace(f"ref('{group_value}')",model_node.relation_name) + ref_str = ref_str.replace("="," = ") + + return ref_str + + +def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str): + # Note: assumes view names = model names + # and models are unique across dbt packages in project + lookml = { + 'connection': dbt_project_name, + 'include': 'views/*', + 'explore': { + 'name': model.name, + 'description': model.description, + 'joins': [ + { + 'name': join.join, + 'type': join.type.value, + 'relationship': join.relationship.value, + 'sql_on': join.sql_on, + } + for join in model.meta.joins + ] + } + } + if model.meta.looker: + relation_name = _convert_all_refs_to_relation_name(manifest, dbt_project_name, model.meta.looker.explore_name) + if not relation_name: + logger.error(f"Invalid ref {model.meta.looker.explore_name}") + + lookml = { + 'connection': dbt_project_name, + 'include': 'views/*', + 'explore': { + 'name': relation_name, + 'description': model.description, + 'joins': [ + { + 'name': join.join, + 'type': join.type.value, + 'relationship': join.relationship.value, + 'sql_on': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.sql_on), + } + for join in model.meta.looker.joins + ] + } + } + + contents = lkml.dump(lookml) + filename = f'{model.name}.model.lkml' + return models.LookModelFile(filename=filename, contents=contents) + -def lookml_model_from_dbt_model(model: models.DbtModel, dbt_project_name: str): +def lookml_model_from_exposure_dbt_model(model: models.DbtModel, dbt_project_name: str): # Note: assumes view names = model names # and models are unique across dbt packages in project lookml = { diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 8a6c0f0..ca7f396 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -143,7 +143,12 @@ class Dbt2LookerExploreJoin(BaseModel): sql_on: str +class Dbt2MetaLookerModelMeta(BaseModel): + joins: Optional[List[Dbt2LookerExploreJoin]] = [] + explore_name: str + class Dbt2LookerModelMeta(BaseModel): + looker: Optional[Dbt2MetaLookerModelMeta] joins: Optional[List[Dbt2LookerExploreJoin]] = [] @@ -168,6 +173,12 @@ def case_insensitive_column_names(cls, v: Dict[str, DbtModelColumn]): for name, column in v.items() } +class DbtExposure(DbtNode): + resource_type: Literal['exposure'] + name: str + description: str + tags: List[str] + meta: DbtModelMeta class DbtManifestMetadata(BaseModel): adapter_type: str @@ -183,6 +194,7 @@ def adapter_must_be_supported(cls, v): class DbtManifest(BaseModel): nodes: Dict[str, Union[DbtModel, DbtNode]] + exposures: Dict[str, Union[DbtExposure, DbtNode]] metadata: DbtManifestMetadata diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index ce695af..913a6c0 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -75,6 +75,19 @@ def parse_models(raw_manifest: dict, tag=None) -> List[models.DbtModel]: return [model for model in all_models if tags_match(tag, model)] +def parse_exposures(raw_manifest: dict, tag=None) -> List[models.DbtExposure]: + manifest = models.DbtManifest(**raw_manifest) + # Empty model files have many missing parameters + all_exposures = manifest.exposures.values() + for exposure in all_exposures: + if not hasattr(exposure, 'name'): + logging.error('Cannot parse exposure with id: "%s" - is the exposure file empty?', model.unique_id) + raise SystemExit('Failed') + + if tag is None: + return all_exposures + return [exposure for exposure in all_exposures if tags_match(tag, exposure)] + def check_models_for_missing_column_types(dbt_typed_models: List[models.DbtModel]): for model in dbt_typed_models: if all([col.data_type is None for col in model.columns.values()]): @@ -118,8 +131,25 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] check_models_for_missing_column_types(dbt_typed_models) return dbt_typed_models +def parse_typed_exposures(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] = None): + catalog_nodes = parse_catalog_nodes(raw_catalog) + dbt_exposures = parse_exposures(raw_manifest, tag=tag) + adapter_type = parse_adapter_type(raw_manifest) + + logging.debug('Parsed %d exposures from manifest.json', len(dbt_exposures)) + # Check manifest for models + for exposure in dbt_exposures: + if exposure.unique_id not in catalog_nodes: + logging.warning( + f'Exposure {exposure.unique_id} not found in catalog. No looker view will be generated. ' + f'Check if exposure has materialized in {adapter_type}') + + logging.debug('Found catalog entries for %d exposures', len(dbt_exposures)) + return dbt_exposures + def get_column_type_from_catalog(catalog_nodes: Dict[str, models.DbtCatalogNode], model_id: str, column_name: str): node = catalog_nodes.get(model_id) column = None if node is None else node.columns.get(column_name) return None if column is None else column.type + From 1f3c08d7a8648ec97c7b4a4dda275033010748c5 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Mon, 20 Jun 2022 11:12:48 +0300 Subject: [PATCH 25/87] add exposure support --- yoda_dbt2looker/cli.py | 12 +++++++++++- yoda_dbt2looker/generator.py | 3 +++ yoda_dbt2looker/models.py | 6 ++++++ yoda_dbt2looker/parser.py | 23 +++++------------------ 4 files changed, 25 insertions(+), 19 deletions(-) diff --git a/yoda_dbt2looker/cli.py b/yoda_dbt2looker/cli.py index 73535e6..f8c4ce4 100644 --- a/yoda_dbt2looker/cli.py +++ b/yoda_dbt2looker/cli.py @@ -101,6 +101,10 @@ def run(): args = argparser.parse_args() run_convert(args.target_dir, args.project_dir, args.output_dir, args.tag, args.log_level) + +def get_me(a): + return manifest.nodes.get(a) + def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOKML_OUTPUT_DIR, tag=None, log_level='INFO'): logging.basicConfig( level=getattr(logging, log_level), @@ -116,14 +120,19 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK # Get dbt models from manifestpo dbt_project_config = parser.parse_dbt_project_config(raw_config) typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, tag=tag) - typed_dbt_exposures = parser.parse_typed_exposures(raw_manifest, raw_catalog, tag=tag) + typed_dbt_exposures: List[models.DbtExposure] = parser.parse_exposures(raw_manifest, tag=tag) adapter_type = parser.parse_adapter_type(raw_manifest) + # manifest = models.DbtManifest(**raw_manifest) + # exposure_nodes = [manifest.nodes.get(mode_name) for exposure in typed_dbt_exposures for mode_name in exposure.depends_on.nodes] + # Generate lookml views lookml_views = [ generator.lookml_view_from_dbt_model(model, adapter_type) for model in typed_dbt_models ] + + pathlib.Path(os.path.join(output_dir, 'views')).mkdir(parents=True, exist_ok=True) for view in lookml_views: with open(os.path.join(output_dir, 'views', view.filename), 'w') as f: @@ -136,6 +145,7 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK lookml_models = [ generator.lookml_model_from_dbt_model(manifest, model, dbt_project_config.name) for model in typed_dbt_models + if parser.tags_match(tag, model) ] lookml_models_exposures = [ generator.lookml_model_from_dbt_model(manifest, exposure, dbt_project_config.name) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 87b01a3..db57eb7 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -321,6 +321,9 @@ def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.Supp filename = f'{model.name}.view.lkml' return models.LookViewFile(filename=filename, contents=contents) +def lookml_view_from_dbt_exposure(model: models.DbtModel, dbt_project_name: str): + pass + def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" matches = re.findall(reg_ref, ref_str) diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index ca7f396..4a0cab4 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -173,11 +173,17 @@ def case_insensitive_column_names(cls, v: Dict[str, DbtModelColumn]): for name, column in v.items() } + +class DbtExposureDependsOn(BaseModel): + macros: List[str] + nodes: List[str] + class DbtExposure(DbtNode): resource_type: Literal['exposure'] name: str description: str tags: List[str] + depends_on: DbtExposureDependsOn meta: DbtModelMeta class DbtManifestMetadata(BaseModel): diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index 913a6c0..c287397 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -81,7 +81,7 @@ def parse_exposures(raw_manifest: dict, tag=None) -> List[models.DbtExposure]: all_exposures = manifest.exposures.values() for exposure in all_exposures: if not hasattr(exposure, 'name'): - logging.error('Cannot parse exposure with id: "%s" - is the exposure file empty?', model.unique_id) + logging.error('Cannot parse exposure with id: "%s" - is the exposure file empty?', exposure.unique_id) raise SystemExit('Failed') if tag is None: @@ -97,8 +97,11 @@ def check_models_for_missing_column_types(dbt_typed_models: List[models.DbtModel def parse_typed_models(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] = None): catalog_nodes = parse_catalog_nodes(raw_catalog) dbt_models = parse_models(raw_manifest, tag=tag) + manifest = models.DbtManifest(**raw_manifest) + typed_dbt_exposures: List[models.DbtExposure] = parse_exposures(raw_manifest, tag=tag) + exposure_nodes = [manifest.nodes.get(mode_name) for exposure in typed_dbt_exposures for mode_name in exposure.depends_on.nodes] adapter_type = parse_adapter_type(raw_manifest) - + dbt_models = dbt_models + exposure_nodes logging.debug('Parsed %d models from manifest.json', len(dbt_models)) for model in dbt_models: logging.debug( @@ -131,22 +134,6 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] check_models_for_missing_column_types(dbt_typed_models) return dbt_typed_models -def parse_typed_exposures(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] = None): - catalog_nodes = parse_catalog_nodes(raw_catalog) - dbt_exposures = parse_exposures(raw_manifest, tag=tag) - adapter_type = parse_adapter_type(raw_manifest) - - logging.debug('Parsed %d exposures from manifest.json', len(dbt_exposures)) - # Check manifest for models - for exposure in dbt_exposures: - if exposure.unique_id not in catalog_nodes: - logging.warning( - f'Exposure {exposure.unique_id} not found in catalog. No looker view will be generated. ' - f'Check if exposure has materialized in {adapter_type}') - - logging.debug('Found catalog entries for %d exposures', len(dbt_exposures)) - return dbt_exposures - def get_column_type_from_catalog(catalog_nodes: Dict[str, models.DbtCatalogNode], model_id: str, column_name: str): node = catalog_nodes.get(model_id) From 8014ae86a6a31b1d5308a650044f4b3ed28d3f69 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Tue, 21 Jun 2022 17:40:18 +0300 Subject: [PATCH 26/87] fix --- yoda_dbt2looker/cli.py | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/yoda_dbt2looker/cli.py b/yoda_dbt2looker/cli.py index f8c4ce4..8abcc7e 100644 --- a/yoda_dbt2looker/cli.py +++ b/yoda_dbt2looker/cli.py @@ -3,6 +3,7 @@ import logging import pathlib import os +from typing import List try: from importlib.metadata import version except ImportError: @@ -101,10 +102,7 @@ def run(): args = argparser.parse_args() run_convert(args.target_dir, args.project_dir, args.output_dir, args.tag, args.log_level) - -def get_me(a): - return manifest.nodes.get(a) - + def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOKML_OUTPUT_DIR, tag=None, log_level='INFO'): logging.basicConfig( level=getattr(logging, log_level), @@ -123,16 +121,12 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK typed_dbt_exposures: List[models.DbtExposure] = parser.parse_exposures(raw_manifest, tag=tag) adapter_type = parser.parse_adapter_type(raw_manifest) - # manifest = models.DbtManifest(**raw_manifest) - # exposure_nodes = [manifest.nodes.get(mode_name) for exposure in typed_dbt_exposures for mode_name in exposure.depends_on.nodes] - # Generate lookml views lookml_views = [ generator.lookml_view_from_dbt_model(model, adapter_type) for model in typed_dbt_models ] - - + pathlib.Path(os.path.join(output_dir, 'views')).mkdir(parents=True, exist_ok=True) for view in lookml_views: with open(os.path.join(output_dir, 'views', view.filename), 'w') as f: @@ -156,16 +150,7 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK f.write(model.contents) - # Generate Lookml models from exposures - lookml_exposure_models = [ - generator.lookml_model_from_exposure_dbt_model(model, dbt_project_config.name) - for model in typed_dbt_exposures - ] - for model in lookml_exposure_models: - with open(os.path.join(output_dir, model.filename), 'w') as f: - f.write(model.contents) - logging.info(f'Generated {len(lookml_models)} lookml models in {output_dir}') - logging.info(f'Generated {len(lookml_exposure_models)} lookml exposure models in {output_dir}') + logging.info(f'Generated {len(lookml_models_exposures)} lookml exposure models in {output_dir}') logging.info('Success') From 77e017984c621fcec2fdd8e5ff1d161397143d79 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Sun, 26 Jun 2022 17:08:35 +0300 Subject: [PATCH 27/87] add exposure --- yoda_dbt2looker/cli.py | 5 +++- yoda_dbt2looker/generator.py | 44 ++++++++++++++++++++++++++++++------ yoda_dbt2looker/parser.py | 15 +++++++++++- 3 files changed, 55 insertions(+), 9 deletions(-) diff --git a/yoda_dbt2looker/cli.py b/yoda_dbt2looker/cli.py index 8abcc7e..65044dd 100644 --- a/yoda_dbt2looker/cli.py +++ b/yoda_dbt2looker/cli.py @@ -117,10 +117,13 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK # Get dbt models from manifestpo dbt_project_config = parser.parse_dbt_project_config(raw_config) - typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, tag=tag) + typed_dbt_models = parser.parse_typed_models(raw_manifest, raw_catalog, dbt_project_config.name, tag=tag) typed_dbt_exposures: List[models.DbtExposure] = parser.parse_exposures(raw_manifest, tag=tag) adapter_type = parser.parse_adapter_type(raw_manifest) + + typed_dbt_exposures + # Generate lookml views lookml_views = [ generator.lookml_view_from_dbt_model(model, adapter_type) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index db57eb7..38d8b1c 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -324,6 +324,22 @@ def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.Supp def lookml_view_from_dbt_exposure(model: models.DbtModel, dbt_project_name: str): pass +# def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: +# reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" +# matches = re.findall(reg_ref, ref_str) +# if not matches or len(matches) == 0: +# return None + +# ref_str = ref_str.replace(" ", "") +# for group_value in matches: +# model_loopup = f"model.{project_name}.{group_value.strip()}" +# model_node = manifest.nodes.get(model_loopup) +# ref_str = ref_str.replace(f"ref('{group_value}')",model_node.relation_name) +# ref_str = ref_str.replace("="," = ") + +# return ref_str + + def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" matches = re.findall(reg_ref, ref_str) @@ -332,13 +348,25 @@ def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_nam ref_str = ref_str.replace(" ", "") for group_value in matches: - model_loopup = f"model.{project_name}.{group_value.strip()}" - model_node = manifest.nodes.get(model_loopup) - ref_str = ref_str.replace(f"ref('{group_value}')",model_node.relation_name) + ref_str = ref_str.replace(f"ref('{group_value}')",group_value) ref_str = ref_str.replace("="," = ") return ref_str + +def _extract_all_refs(ref_str : str) -> list[str]: + reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" + matches = re.findall(reg_ref, ref_str) + if not matches or len(matches) == 0: + return None + refs = [] + ref_str = ref_str.replace(" ", "") + for group_value in matches: + refs.append(group_value) + return refs + + +# def get_view_models_from_exposure() def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str): # Note: assumes view names = model names @@ -361,10 +389,12 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM } } if model.meta.looker: + refs = _extract_all_refs(model.meta.looker.explore_name) relation_name = _convert_all_refs_to_relation_name(manifest, dbt_project_name, model.meta.looker.explore_name) if not relation_name: - logger.error(f"Invalid ref {model.meta.looker.explore_name}") - + logging.error(f"Invalid ref {model.meta.looker.explore_name}") + + lookml = { 'connection': dbt_project_name, 'include': 'views/*', @@ -377,8 +407,8 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM 'type': join.type.value, 'relationship': join.relationship.value, 'sql_on': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.sql_on), - } - for join in model.meta.looker.joins + } + for join in model.meta.looker.joins ] } } diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index c287397..963896e 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -5,6 +5,7 @@ from typing import Dict, Optional, List, Union from functools import reduce +from .generator import _extract_all_refs from . import models @@ -94,12 +95,24 @@ def check_models_for_missing_column_types(dbt_typed_models: List[models.DbtModel logging.debug('Model %s has no typed columns, no dimensions will be generated. %s', model.unique_id, model) -def parse_typed_models(raw_manifest: dict, raw_catalog: dict, tag: Optional[str] = None): +def parse_typed_models(raw_manifest: dict, raw_catalog: dict, dbt_project_name: str, tag: Optional[str] = None): catalog_nodes = parse_catalog_nodes(raw_catalog) dbt_models = parse_models(raw_manifest, tag=tag) manifest = models.DbtManifest(**raw_manifest) typed_dbt_exposures: List[models.DbtExposure] = parse_exposures(raw_manifest, tag=tag) exposure_nodes = [manifest.nodes.get(mode_name) for exposure in typed_dbt_exposures for mode_name in exposure.depends_on.nodes] + + exposure_model_views = set() + for exposure in typed_dbt_exposures: + exposure_model_views.add(_extract_all_refs(exposure.meta.looker.explore_name)[0]) + for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): + exposure_model_views.add(item) + + for model in exposure_model_views: + model_loopup = f"model.{dbt_project_name}.{model}" + model_node = manifest.nodes.get(model_loopup) + exposure_nodes.append(model_node) + adapter_type = parse_adapter_type(raw_manifest) dbt_models = dbt_models + exposure_nodes logging.debug('Parsed %d models from manifest.json', len(dbt_models)) From 93d48924e45f3613e2391ae4b6585981829e66a1 Mon Sep 17 00:00:00 2001 From: chaimt Date: Mon, 27 Jun 2022 07:44:22 +0000 Subject: [PATCH 28/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 81bd7be..ca9a7e5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.9" +version = "0.9.10" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 4aca9f9f2134b95d084623f01830dcc6651bc038 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Mon, 27 Jun 2022 11:00:40 +0300 Subject: [PATCH 29/87] merge --- yoda_dbt2looker/generator.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 723e70e..d379013 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -325,22 +325,7 @@ def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.Supp def lookml_view_from_dbt_exposure(model: models.DbtModel, dbt_project_name: str): pass - -# def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: -# reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" -# matches = re.findall(reg_ref, ref_str) -# if not matches or len(matches) == 0: -# return None - -# ref_str = ref_str.replace(" ", "") -# for group_value in matches: -# model_loopup = f"model.{project_name}.{group_value.strip()}" -# model_node = manifest.nodes.get(model_loopup) -# ref_str = ref_str.replace(f"ref('{group_value}')",model_node.relation_name) -# ref_str = ref_str.replace("="," = ") - -# return ref_str - + def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" From 4877a9fab253f7cd564d18598f4448f419d68e09 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Mon, 27 Jun 2022 11:01:13 +0300 Subject: [PATCH 30/87] merge --- yoda_dbt2looker/generator.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index d379013..83c21d2 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -353,8 +353,6 @@ def _extract_all_refs(ref_str : str) -> list[str]: return refs -# def get_view_models_from_exposure() - def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str): # Note: assumes view names = model names # and models are unique across dbt packages in project From 663952e1c06b0a8901643e82147d3bb61ff621a5 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Mon, 27 Jun 2022 18:08:31 +0300 Subject: [PATCH 31/87] fix cluster status --- yoda_dbt2looker/cli.py | 4 +--- yoda_dbt2looker/generator.py | 21 ++++++++++++++++++--- yoda_dbt2looker/models.py | 2 +- yoda_dbt2looker/parser.py | 3 ++- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/yoda_dbt2looker/cli.py b/yoda_dbt2looker/cli.py index 65044dd..78ce823 100644 --- a/yoda_dbt2looker/cli.py +++ b/yoda_dbt2looker/cli.py @@ -122,8 +122,6 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK adapter_type = parser.parse_adapter_type(raw_manifest) - typed_dbt_exposures - # Generate lookml views lookml_views = [ generator.lookml_view_from_dbt_model(model, adapter_type) @@ -142,7 +140,7 @@ def run_convert(target_dir='./target', project_dir='./', output_dir=DEFAULT_LOOK lookml_models = [ generator.lookml_model_from_dbt_model(manifest, model, dbt_project_config.name) for model in typed_dbt_models - if parser.tags_match(tag, model) + if parser.tags_match(tag, model) and model.create_explorer ] lookml_models_exposures = [ generator.lookml_model_from_dbt_model(manifest, exposure, dbt_project_config.name) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 83c21d2..38d8b1c 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -298,8 +298,6 @@ def lookml_measure(measure_name: str, column: models.DbtModelColumn, measure: mo m['filters'] = lookml_measure_filters(measure, model) if measure.value_format_name: m['value_format_name'] = measure.value_format_name.value - if measure.group_label: - m['group_label'] = measure.group_label return m @@ -325,7 +323,22 @@ def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.Supp def lookml_view_from_dbt_exposure(model: models.DbtModel, dbt_project_name: str): pass - + +# def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: +# reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" +# matches = re.findall(reg_ref, ref_str) +# if not matches or len(matches) == 0: +# return None + +# ref_str = ref_str.replace(" ", "") +# for group_value in matches: +# model_loopup = f"model.{project_name}.{group_value.strip()}" +# model_node = manifest.nodes.get(model_loopup) +# ref_str = ref_str.replace(f"ref('{group_value}')",model_node.relation_name) +# ref_str = ref_str.replace("="," = ") + +# return ref_str + def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" @@ -353,6 +366,8 @@ def _extract_all_refs(ref_str : str) -> list[str]: return refs +# def get_view_models_from_exposure() + def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str): # Note: assumes view names = model names # and models are unique across dbt packages in project diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 82bf4eb..2a3ad3d 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -78,7 +78,6 @@ class Dbt2LookerMeasure(BaseModel): description: Optional[str] sql: Optional[str] value_format_name: Optional[LookerValueFormatName] - group_label: Optional[str] @validator('filters') def filters_are_singular_dicts(cls, v: List[Dict[str, str]]): @@ -166,6 +165,7 @@ class DbtModel(DbtNode): columns: Dict[str, DbtModelColumn] tags: List[str] meta: DbtModelMeta + create_explorer: bool = True @validator('columns') def case_insensitive_column_names(cls, v: Dict[str, DbtModelColumn]): diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index 963896e..efce3ec 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -100,7 +100,7 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, dbt_project_name: dbt_models = parse_models(raw_manifest, tag=tag) manifest = models.DbtManifest(**raw_manifest) typed_dbt_exposures: List[models.DbtExposure] = parse_exposures(raw_manifest, tag=tag) - exposure_nodes = [manifest.nodes.get(mode_name) for exposure in typed_dbt_exposures for mode_name in exposure.depends_on.nodes] + exposure_nodes = []# [manifest.nodes.get(mode_name) for exposure in typed_dbt_exposures for mode_name in exposure.depends_on.nodes] exposure_model_views = set() for exposure in typed_dbt_exposures: @@ -111,6 +111,7 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, dbt_project_name: for model in exposure_model_views: model_loopup = f"model.{dbt_project_name}.{model}" model_node = manifest.nodes.get(model_loopup) + model_node.create_explorer = False exposure_nodes.append(model_node) adapter_type = parse_adapter_type(raw_manifest) From b55070631423059dce36b40ae5c6dcdde510bc1c Mon Sep 17 00:00:00 2001 From: chaimt Date: Tue, 28 Jun 2022 05:30:12 +0000 Subject: [PATCH 32/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ca9a7e5..4d4c8cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.10" +version = "0.9.11" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From abd23fb4be233141a2d3c35677b20a00466ca79f Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Tue, 28 Jun 2022 11:54:29 +0300 Subject: [PATCH 33/87] add default measure --- yoda_dbt2looker/generator.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 38d8b1c..0750ace 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -278,22 +278,26 @@ def lookml_measure_filters(measure: models.Dbt2LookerMeasure, model: models.DbtM def lookml_measures_from_model(model: models.DbtModel): - return [ + measures = [ lookml_measure(measure_name, column, measure, model) for column in model.columns.values() for measure_name, measure in { **column.meta.measures, **column.meta.measure, **column.meta.metrics, **column.meta.metric }.items() ] + measures.append(lookml_measure(measure_name=f"{model.name}_count", column=None, measure=models.Dbt2LookerMeasure(type=models.LookerAggregateMeasures.count, description="Default count measure"), model=None)) + return measures def lookml_measure(measure_name: str, column: models.DbtModelColumn, measure: models.Dbt2LookerMeasure, model: models.DbtModel): m = { 'name': measure_name, - 'type': measure.type.value, - 'sql': measure.sql or f'${{TABLE}}.{column.name}', - 'description': measure.description or column.description or f'{measure.type.value.capitalize()} of {column.name}', + 'type': measure.type.value, + 'description': measure.description or column.description if column else None or f'{measure.type.value.capitalize()} of {column.name}' if column else "", } + sql = measure.sql or f'${{TABLE}}.{column.name}' if column else None + if sql: + m['sql'] = sql if measure.filters: m['filters'] = lookml_measure_filters(measure, model) if measure.value_format_name: From 6b0451ea7204bf10d8159c33fa1082a2a9c2fc35 Mon Sep 17 00:00:00 2001 From: chaimt Date: Tue, 28 Jun 2022 08:57:00 +0000 Subject: [PATCH 34/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4d4c8cc..56f7ffb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.11" +version = "0.9.12" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From f0318a50dc25f24e832405660ef7d858dc24a001 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 29 Jun 2022 16:35:58 +0300 Subject: [PATCH 35/87] fix domain from join --- yoda_dbt2looker/generator.py | 37 +++++++----------------------------- yoda_dbt2looker/models.py | 2 ++ 2 files changed, 9 insertions(+), 30 deletions(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 0750ace..1ce494f 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -1,6 +1,6 @@ import logging import re - +from pathlib import Path import lkml from . import models @@ -393,7 +393,6 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM } } if model.meta.looker: - refs = _extract_all_refs(model.meta.looker.explore_name) relation_name = _convert_all_refs_to_relation_name(manifest, dbt_project_name, model.meta.looker.explore_name) if not relation_name: logging.error(f"Invalid ref {model.meta.looker.explore_name}") @@ -407,7 +406,7 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM 'description': model.description, 'joins': [ { - 'name': join.join, + 'name': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.join), 'type': join.type.value, 'relationship': join.relationship.value, 'sql_on': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.sql_on), @@ -416,32 +415,10 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM ] } } - - contents = lkml.dump(lookml) - filename = f'{model.name}.model.lkml' + model_loopup = f"exposure.{dbt_project_name}.{model.name}" + exposurel_node = manifest.exposures.get(model_loopup) + file_name = Path(exposurel_node.original_file_path).stem + filename = f'{file_name}.model.lkml' + contents = lkml.dump(lookml) return models.LookModelFile(filename=filename, contents=contents) - -def lookml_model_from_exposure_dbt_model(model: models.DbtModel, dbt_project_name: str): - # Note: assumes view names = model names - # and models are unique across dbt packages in project - lookml = { - 'connection': dbt_project_name, - 'include': 'views/*', - 'explore': { - 'name': model.name, - 'description': model.description, - 'joins': [ - { - 'name': join.join, - 'type': join.type.value, - 'relationship': join.relationship.value, - 'sql_on': join.sql_on, - } - for join in model.meta.joins - ] - } - } - contents = lkml.dump(lookml) - filename = f'{model.name}.model.lkml' - return models.LookModelFile(filename=filename, contents=contents) diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 2a3ad3d..bb2f9d9 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -186,6 +186,8 @@ class DbtExposure(DbtNode): tags: List[str] depends_on: DbtExposureDependsOn meta: DbtModelMeta + original_file_path: str + path: str class DbtManifestMetadata(BaseModel): adapter_type: str From d1b47b925f2226e98ebb6f76186d228ba709fe45 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 29 Jun 2022 16:37:27 +0300 Subject: [PATCH 36/87] fix domain from join --- yoda_dbt2looker/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index bb2f9d9..2fa8271 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -188,6 +188,7 @@ class DbtExposure(DbtNode): meta: DbtModelMeta original_file_path: str path: str + root_path: str class DbtManifestMetadata(BaseModel): adapter_type: str From 1d28097f4511217100a8bdafbfbde3b22155aea4 Mon Sep 17 00:00:00 2001 From: chaimt Date: Wed, 29 Jun 2022 13:37:42 +0000 Subject: [PATCH 37/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 56f7ffb..3292389 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.12" +version = "0.9.13" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 6cbd98501684500cad10fb4936b368653477e4ea Mon Sep 17 00:00:00 2001 From: chaimt Date: Wed, 29 Jun 2022 18:47:51 +0000 Subject: [PATCH 38/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3292389..c97b726 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.13" +version = "0.9.14" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 8def977c44ae41da6ffd2fe79ead603dc03866b0 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Thu, 30 Jun 2022 01:00:56 +0300 Subject: [PATCH 39/87] primary-key --- yoda_dbt2looker/generator.py | 1 + yoda_dbt2looker/models.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 1ce494f..e4378e7 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -246,6 +246,7 @@ def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.Su 'type': map_adapter_type_to_looker(adapter_type, column.data_type), 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', 'description': column.meta.dimension.description or column.description, + **({ 'primary_key': 'yes' } if model.meta.primary_key == column.name else {}) **( {'value_format_name': column.meta.dimension.value_format_name.value} if (column.meta.dimension.value_format_name diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 2fa8271..e836acf 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -153,7 +153,7 @@ class Dbt2LookerModelMeta(BaseModel): class DbtModelMeta(Dbt2LookerModelMeta): - pass + primary_key : str class DbtModel(DbtNode): From 3cc7dcb0f02160b58e140866d2d2e0931d631de8 Mon Sep 17 00:00:00 2001 From: chaimt Date: Thu, 30 Jun 2022 05:54:01 +0000 Subject: [PATCH 40/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c97b726..3709715 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.14" +version = "0.9.15" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 4978d22258f44578c99a4900915dec8bda18527b Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Thu, 30 Jun 2022 15:17:55 +0300 Subject: [PATCH 41/87] remove joins --- yoda_dbt2looker/generator.py | 38 ++++++++---------------------------- yoda_dbt2looker/models.py | 3 ++- 2 files changed, 10 insertions(+), 31 deletions(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 0750ace..156980d 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -1,6 +1,6 @@ import logging import re - +from pathlib import Path import lkml from . import models @@ -246,6 +246,7 @@ def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.Su 'type': map_adapter_type_to_looker(adapter_type, column.data_type), 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', 'description': column.meta.dimension.description or column.description, + # **({ 'primary_key': 'yes' } if model.meta.primary_key and model.meta.primary_key == column.name else {}) **( {'value_format_name': column.meta.dimension.value_format_name.value} if (column.meta.dimension.value_format_name @@ -393,7 +394,6 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM } } if model.meta.looker: - refs = _extract_all_refs(model.meta.looker.explore_name) relation_name = _convert_all_refs_to_relation_name(manifest, dbt_project_name, model.meta.looker.explore_name) if not relation_name: logging.error(f"Invalid ref {model.meta.looker.explore_name}") @@ -407,7 +407,7 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM 'description': model.description, 'joins': [ { - 'name': join.join, + 'name': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.join), 'type': join.type.value, 'relationship': join.relationship.value, 'sql_on': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.sql_on), @@ -416,32 +416,10 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM ] } } - - contents = lkml.dump(lookml) - filename = f'{model.name}.model.lkml' + model_loopup = f"exposure.{dbt_project_name}.{model.name}" + exposurel_node = manifest.exposures.get(model_loopup) + file_name = Path(exposurel_node.original_file_path).stem + filename = f'{file_name}.model.lkml' + contents = lkml.dump(lookml) return models.LookModelFile(filename=filename, contents=contents) - -def lookml_model_from_exposure_dbt_model(model: models.DbtModel, dbt_project_name: str): - # Note: assumes view names = model names - # and models are unique across dbt packages in project - lookml = { - 'connection': dbt_project_name, - 'include': 'views/*', - 'explore': { - 'name': model.name, - 'description': model.description, - 'joins': [ - { - 'name': join.join, - 'type': join.type.value, - 'relationship': join.relationship.value, - 'sql_on': join.sql_on, - } - for join in model.meta.joins - ] - } - } - contents = lkml.dump(lookml) - filename = f'{model.name}.model.lkml' - return models.LookModelFile(filename=filename, contents=contents) diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 2a3ad3d..5ce9284 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -153,7 +153,7 @@ class Dbt2LookerModelMeta(BaseModel): class DbtModelMeta(Dbt2LookerModelMeta): - pass + primary_key: Optional[str] class DbtModel(DbtNode): @@ -183,6 +183,7 @@ class DbtExposure(DbtNode): resource_type: Literal['exposure'] name: str description: str + original_file_path: str tags: List[str] depends_on: DbtExposureDependsOn meta: DbtModelMeta From c98881a87e176760a65c0fa24c2004535f78c188 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Thu, 30 Jun 2022 15:20:32 +0300 Subject: [PATCH 42/87] remove joins --- yoda_dbt2looker/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 156980d..3a37514 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -246,7 +246,7 @@ def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.Su 'type': map_adapter_type_to_looker(adapter_type, column.data_type), 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', 'description': column.meta.dimension.description or column.description, - # **({ 'primary_key': 'yes' } if model.meta.primary_key and model.meta.primary_key == column.name else {}) + **({ 'primary_key': 'yes' } if model.meta.primary_key and model.meta.primary_key == column.name else {}), **( {'value_format_name': column.meta.dimension.value_format_name.value} if (column.meta.dimension.value_format_name From 6ea92d316af3a268a778e82f1c9cf59b7e2507ce Mon Sep 17 00:00:00 2001 From: chaimt Date: Thu, 30 Jun 2022 12:35:00 +0000 Subject: [PATCH 43/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3709715..2429814 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.15" +version = "0.9.16" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 440cc359a52de2ab022fb3248316f2570f5b27d5 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Thu, 30 Jun 2022 15:49:13 +0300 Subject: [PATCH 44/87] remove joins --- yoda_dbt2looker/generator.py | 2 +- yoda_dbt2looker/models.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 3a37514..4d3bbb4 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -246,7 +246,7 @@ def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.Su 'type': map_adapter_type_to_looker(adapter_type, column.data_type), 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', 'description': column.meta.dimension.description or column.description, - **({ 'primary_key': 'yes' } if model.meta.primary_key and model.meta.primary_key == column.name else {}), + # **({ 'primary_key': 'yes' } if model.meta.primary_key == column.name else {}), **( {'value_format_name': column.meta.dimension.value_format_name.value} if (column.meta.dimension.value_format_name diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 4d8ef25..2b5cfd3 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -153,7 +153,7 @@ class Dbt2LookerModelMeta(BaseModel): class DbtModelMeta(Dbt2LookerModelMeta): - primary_key: Optional[str] + primary_key : Optional[str] class DbtModel(DbtNode): @@ -183,7 +183,6 @@ class DbtExposure(DbtNode): resource_type: Literal['exposure'] name: str description: str - original_file_path: str tags: List[str] depends_on: DbtExposureDependsOn meta: DbtModelMeta From 4fef1b77f589c92b26a9f0effda7515de5099768 Mon Sep 17 00:00:00 2001 From: chaimt Date: Thu, 30 Jun 2022 12:52:26 +0000 Subject: [PATCH 45/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2429814..86d1d7c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.16" +version = "0.9.17" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From c2677145f97022034fab60cd0dad94f38f876330 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Thu, 30 Jun 2022 17:37:27 +0300 Subject: [PATCH 46/87] fix exposure --- yoda_dbt2looker/generator.py | 4 ++-- yoda_dbt2looker/models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 4d3bbb4..2cf26e0 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -246,7 +246,7 @@ def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.Su 'type': map_adapter_type_to_looker(adapter_type, column.data_type), 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', 'description': column.meta.dimension.description or column.description, - # **({ 'primary_key': 'yes' } if model.meta.primary_key == column.name else {}), + **({ 'primary_key': 'yes' } if model.meta.primary_key == column.name else {}), **( {'value_format_name': column.meta.dimension.value_format_name.value} if (column.meta.dimension.value_format_name @@ -349,7 +349,7 @@ def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_nam reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" matches = re.findall(reg_ref, ref_str) if not matches or len(matches) == 0: - return None + return ref_str ref_str = ref_str.replace(" ", "") for group_value in matches: diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 2b5cfd3..1d32f95 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -153,7 +153,7 @@ class Dbt2LookerModelMeta(BaseModel): class DbtModelMeta(Dbt2LookerModelMeta): - primary_key : Optional[str] + primary_key : Optional[str]= Field(None, alias='primary-key') class DbtModel(DbtNode): From 5ccd269e1a89db45f83869a20f06c49ad3e29ce8 Mon Sep 17 00:00:00 2001 From: chaimt Date: Thu, 30 Jun 2022 14:39:39 +0000 Subject: [PATCH 47/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 86d1d7c..cb47ee3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.17" +version = "0.9.18" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From cc1bb2168961e9fdc804c6bfe2a230acda771456 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Fri, 1 Jul 2022 08:10:40 +0300 Subject: [PATCH 48/87] default measure --- yoda_dbt2looker/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 2cf26e0..66a843d 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -286,7 +286,7 @@ def lookml_measures_from_model(model: models.DbtModel): **column.meta.measures, **column.meta.measure, **column.meta.metrics, **column.meta.metric }.items() ] - measures.append(lookml_measure(measure_name=f"{model.name}_count", column=None, measure=models.Dbt2LookerMeasure(type=models.LookerAggregateMeasures.count, description="Default count measure"), model=None)) + measures.append(lookml_measure(measure_name="count", column=None, measure=models.Dbt2LookerMeasure(type=models.LookerAggregateMeasures.count, description="Default count measure"), model=None)) return measures From c18d10285a8387aa20bb0a74d40a2d39fa3f4a5f Mon Sep 17 00:00:00 2001 From: chaimt Date: Fri, 1 Jul 2022 05:12:15 +0000 Subject: [PATCH 49/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index cb47ee3..5b9f931 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.18" +version = "0.9.19" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 92cdbcfa7ba482c0d4988ce67ff71d3dacf9c4f6 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Sun, 3 Jul 2022 09:58:04 +0300 Subject: [PATCH 50/87] default measure --- yoda_dbt2looker/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 66a843d..97dbd00 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -294,7 +294,7 @@ def lookml_measure(measure_name: str, column: models.DbtModelColumn, measure: mo m = { 'name': measure_name, 'type': measure.type.value, - 'description': measure.description or column.description if column else None or f'{measure.type.value.capitalize()} of {column.name}' if column else "", + 'description': measure.description or (column.description if column else None) or (f'{measure.type.value.capitalize()} of {column.name}' if column else ""), } sql = measure.sql or f'${{TABLE}}.{column.name}' if column else None if sql: From 9cd54dbe5f70472f0f04e2dfa910c05c30c01bfb Mon Sep 17 00:00:00 2001 From: chaimt Date: Sun, 3 Jul 2022 07:00:22 +0000 Subject: [PATCH 51/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5b9f931..9e353b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.19" +version = "0.9.20" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 329f75cd203d46c744bf8dc46e8ae4037a4f9f72 Mon Sep 17 00:00:00 2001 From: dkruh36 <101973979+dkruh36@users.noreply.github.com> Date: Sat, 9 Jul 2022 22:18:17 +0300 Subject: [PATCH 52/87] add ability to provide logical operator --- .github/workflows/ci.yml | 9 +- .vscode/settings.json | 3 +- poetry.lock | 380 +++++++++++++++++++----- pyproject.toml | 4 + tests/yoda_dbt2looker/test_generator.py | 14 + tox.ini | 14 + yoda_dbt2looker/generator.py | 10 +- 7 files changed, 358 insertions(+), 76 deletions(-) create mode 100644 tests/yoda_dbt2looker/test_generator.py create mode 100644 tox.ini diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63a2ff4..0990c22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,15 @@ jobs: - name: Run image uses: abatilo/actions-poetry@v2.0.0 with: - poetry-version: ${{ matrix.poetry-version }} + poetry-version: ${{ matrix.poetry-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install tox tox-gh-actions + - name: Test with tox + run: tox -e tests - name: Poetry Version Pull Request run: poetry version prepatch - name: Poetry Build run: poetry build + diff --git a/.vscode/settings.json b/.vscode/settings.json index 4fa7638..ef42a98 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,6 @@ "jira-plugin.workingProject": "", "files.associations": { "*.yaml": "home-assistant" - } + }, + "python.testing.pytestEnabled": true } \ No newline at end of file diff --git a/poetry.lock b/poetry.lock index 9d37764..1ace9ed 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,33 +1,77 @@ +[[package]] +name = "atomicwrites" +version = "1.4.1" +description = "Atomic file writes." +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" + [[package]] name = "attrs" -version = "21.2.0" +version = "21.4.0" description = "Classes Without Boilerplate" category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit"] +dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit", "cloudpickle"] docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins"] +tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "cloudpickle"] +tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "cloudpickle"] + +[[package]] +name = "colorama" +version = "0.4.5" +description = "Cross-platform colored terminal text." +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + +[[package]] +name = "distlib" +version = "0.3.4" +description = "Distribution utilities" +category = "dev" +optional = false +python-versions = "*" + +[[package]] +name = "filelock" +version = "3.7.1" +description = "A platform independent file lock." +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.extras] +docs = ["furo (>=2021.8.17b43)", "sphinx (>=4.1)", "sphinx-autodoc-typehints (>=1.12)"] +testing = ["covdefaults (>=1.2.0)", "coverage (>=4)", "pytest (>=4)", "pytest-cov", "pytest-timeout (>=1.4.2)"] [[package]] name = "importlib-metadata" -version = "4.8.1" +version = "4.12.0" description = "Read metadata from Python packages" category = "main" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" [package.dependencies] typing-extensions = {version = ">=3.6.4", markers = "python_version < \"3.8\""} zipp = ">=0.5" [package.extras] -docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"] +docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"] perf = ["ipython"] -testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "packaging", "pep517", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy", "importlib-resources (>=1.3)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"] + +[[package]] +name = "iniconfig" +version = "1.1.1" +description = "iniconfig: brain-dead simple config-ini parsing" +category = "dev" +optional = false +python-versions = "*" [[package]] name = "jsonschema" @@ -49,16 +93,62 @@ format_nongpl = ["idna", "jsonpointer (>1.13)", "webcolors", "rfc3986-validator [[package]] name = "lkml" -version = "1.1.1" +version = "1.2.0" description = "A speedy LookML parser implemented in pure Python." category = "main" optional = false python-versions = "*" +[[package]] +name = "packaging" +version = "21.3" +description = "Core utilities for Python packages" +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +pyparsing = ">=2.0.2,<3.0.5 || >3.0.5" + +[[package]] +name = "platformdirs" +version = "2.5.2" +description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.extras] +docs = ["furo (>=2021.7.5b38)", "proselint (>=0.10.2)", "sphinx-autodoc-typehints (>=1.12)", "sphinx (>=4)"] +test = ["appdirs (==1.4.4)", "pytest-cov (>=2.7)", "pytest-mock (>=3.6)", "pytest (>=6)"] + +[[package]] +name = "pluggy" +version = "1.0.0" +description = "plugin and hook calling mechanisms for python" +category = "dev" +optional = false +python-versions = ">=3.6" + +[package.dependencies] +importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + +[[package]] +name = "py" +version = "1.11.0" +description = "library with cross-python path, ini-parsing, io, code, log facilities" +category = "dev" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" + [[package]] name = "pydantic" -version = "1.8.2" -description = "Data validation and settings management using python 3.6 type hinting" +version = "1.9.1" +description = "Data validation and settings management using python type hints" category = "main" optional = false python-versions = ">=3.6.1" @@ -70,13 +160,46 @@ typing-extensions = ">=3.7.4.3" dotenv = ["python-dotenv (>=0.10.4)"] email = ["email-validator (>=1.0.3)"] +[[package]] +name = "pyparsing" +version = "3.0.9" +description = "pyparsing module - Classes and methods to define and execute parsing grammars" +category = "dev" +optional = false +python-versions = ">=3.6.8" + +[package.extras] +diagrams = ["railroad-diagrams", "jinja2"] + [[package]] name = "pyrsistent" -version = "0.18.0" +version = "0.18.1" description = "Persistent/Functional/Immutable data structures" category = "main" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" + +[[package]] +name = "pytest" +version = "7.1.2" +description = "pytest: simple powerful testing with Python" +category = "dev" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +atomicwrites = {version = ">=1.0", markers = "sys_platform == \"win32\""} +attrs = ">=19.2.0" +colorama = {version = "*", markers = "sys_platform == \"win32\""} +importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=0.12,<2.0" +py = ">=1.8.2" +tomli = ">=1.0.0" + +[package.extras] +testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"] [[package]] name = "pyyaml" @@ -94,6 +217,45 @@ category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +[[package]] +name = "toml" +version = "0.10.2" +description = "Python Library for Tom's Obvious, Minimal Language" +category = "dev" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" + +[[package]] +name = "tomli" +version = "2.0.1" +description = "A lil' TOML parser" +category = "dev" +optional = false +python-versions = ">=3.7" + +[[package]] +name = "tox" +version = "3.25.1" +description = "tox is a generic virtualenv management and test command line tool" +category = "dev" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" + +[package.dependencies] +colorama = {version = ">=0.4.1", markers = "platform_system == \"Windows\""} +filelock = ">=3.0.0" +importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} +packaging = ">=14" +pluggy = ">=0.12.0" +py = ">=1.4.17" +six = ">=1.14.0" +toml = ">=0.9.4" +virtualenv = ">=16.0.0,<20.0.0 || >20.0.0,<20.0.1 || >20.0.1,<20.0.2 || >20.0.2,<20.0.3 || >20.0.3,<20.0.4 || >20.0.4,<20.0.5 || >20.0.5,<20.0.6 || >20.0.6,<20.0.7 || >20.0.7" + +[package.extras] +docs = ["pygments-github-lexers (>=0.0.5)", "sphinx (>=2.0.0)", "sphinxcontrib-autoprogram (>=0.1.5)", "towncrier (>=18.5.0)"] +testing = ["flaky (>=3.4.0)", "freezegun (>=0.3.11)", "pytest (>=4.0.0)", "pytest-cov (>=2.5.1)", "pytest-mock (>=1.10.0)", "pytest-randomly (>=1.0.0)", "psutil (>=5.6.1)", "pathlib2 (>=2.3.3)"] + [[package]] name = "typing-extensions" version = "3.10.0.2" @@ -102,86 +264,156 @@ category = "main" optional = false python-versions = "*" +[[package]] +name = "virtualenv" +version = "20.15.1" +description = "Virtual Python Environment builder" +category = "dev" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" + +[package.dependencies] +distlib = ">=0.3.1,<1" +filelock = ">=3.2,<4" +importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} +platformdirs = ">=2,<3" +six = ">=1.9.0,<2" + +[package.extras] +docs = ["proselint (>=0.10.2)", "sphinx (>=3)", "sphinx-argparse (>=0.2.5)", "sphinx-rtd-theme (>=0.4.3)", "towncrier (>=21.3)"] +testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", "pytest (>=4)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.1)", "pytest-mock (>=2)", "pytest-randomly (>=1)", "pytest-timeout (>=1)", "packaging (>=20.0)"] + [[package]] name = "zipp" -version = "3.6.0" +version = "3.8.0" description = "Backport of pathlib-compatible object wrapper for zip files" category = "main" optional = false -python-versions = ">=3.6" +python-versions = ">=3.7" [package.extras] -docs = ["sphinx", "jaraco.packaging (>=8.2)", "rst.linker (>=1.9)"] -testing = ["pytest (>=4.6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy"] +docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"] [metadata] lock-version = "1.1" python-versions = ">=3.7" -content-hash = "b21396f6d527f8f2261664935fcfb04face23be82ce27f36ffc1b9cc89eea5be" +content-hash = "52e3927fd949f9b24313d79d3c2a6fa1218eec1c767c09e6a254eff10902e09a" [metadata.files] +atomicwrites = [] attrs = [ - {file = "attrs-21.2.0-py2.py3-none-any.whl", hash = "sha256:149e90d6d8ac20db7a955ad60cf0e6881a3f20d37096140088356da6c716b0b1"}, - {file = "attrs-21.2.0.tar.gz", hash = "sha256:ef6aaac3ca6cd92904cdd0d83f629a15f18053ec84e6432106f7a4d04ae4f5fb"}, + {file = "attrs-21.4.0-py2.py3-none-any.whl", hash = "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4"}, + {file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"}, +] +colorama = [ + {file = "colorama-0.4.5-py2.py3-none-any.whl", hash = "sha256:854bf444933e37f5824ae7bfc1e98d5bce2ebe4160d46b5edf346a89358e99da"}, + {file = "colorama-0.4.5.tar.gz", hash = "sha256:e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4"}, +] +distlib = [ + {file = "distlib-0.3.4-py2.py3-none-any.whl", hash = "sha256:6564fe0a8f51e734df6333d08b8b94d4ea8ee6b99b5ed50613f731fd4089f34b"}, + {file = "distlib-0.3.4.zip", hash = "sha256:e4b58818180336dc9c529bfb9a0b58728ffc09ad92027a3f30b7cd91e3458579"}, ] +filelock = [] importlib-metadata = [ - {file = "importlib_metadata-4.8.1-py3-none-any.whl", hash = "sha256:b618b6d2d5ffa2f16add5697cf57a46c76a56229b0ed1c438322e4e95645bd15"}, - {file = "importlib_metadata-4.8.1.tar.gz", hash = "sha256:f284b3e11256ad1e5d03ab86bb2ccd6f5339688ff17a4d797a0fe7df326f23b1"}, + {file = "importlib_metadata-4.12.0-py3-none-any.whl", hash = "sha256:7401a975809ea1fdc658c3aa4f78cc2195a0e019c5cbc4c06122884e9ae80c23"}, + {file = "importlib_metadata-4.12.0.tar.gz", hash = "sha256:637245b8bab2b6502fcbc752cc4b7a6f6243bb02b31c5c26156ad103d3d45670"}, +] +iniconfig = [ + {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"}, + {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"}, ] jsonschema = [ {file = "jsonschema-3.2.0-py2.py3-none-any.whl", hash = "sha256:4e5b3cf8216f577bee9ce139cbe72eca3ea4f292ec60928ff24758ce626cd163"}, {file = "jsonschema-3.2.0.tar.gz", hash = "sha256:c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a"}, ] lkml = [ - {file = "lkml-1.1.1-py2.py3-none-any.whl", hash = "sha256:f10ffd313a1fa767cb0b99b602e8842dd81e15a10b9cd26c66a7d53e2eb547d4"}, - {file = "lkml-1.1.1.tar.gz", hash = "sha256:9ad261f7d0cb92a0fe1a7c161865e53d611c858a3647738783169373cf2e5ab5"}, + {file = "lkml-1.2.0-py2.py3-none-any.whl", hash = "sha256:20b126e5a4ecef2217f9c21ff47e5354f672d76995038b039984ae5deb3e95ca"}, + {file = "lkml-1.2.0.tar.gz", hash = "sha256:ba31ca4749a0f749604331ff5fc29c586c9d9240251dd3232e46e283edde1d33"}, +] +packaging = [ + {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"}, + {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"}, +] +platformdirs = [ + {file = "platformdirs-2.5.2-py3-none-any.whl", hash = "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788"}, + {file = "platformdirs-2.5.2.tar.gz", hash = "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19"}, +] +pluggy = [ + {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, + {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, +] +py = [ + {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"}, + {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"}, ] pydantic = [ - {file = "pydantic-1.8.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:05ddfd37c1720c392f4e0d43c484217b7521558302e7069ce8d318438d297739"}, - {file = "pydantic-1.8.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:a7c6002203fe2c5a1b5cbb141bb85060cbff88c2d78eccbc72d97eb7022c43e4"}, - {file = "pydantic-1.8.2-cp36-cp36m-manylinux2014_i686.whl", hash = "sha256:589eb6cd6361e8ac341db97602eb7f354551482368a37f4fd086c0733548308e"}, - {file = "pydantic-1.8.2-cp36-cp36m-manylinux2014_x86_64.whl", hash = "sha256:10e5622224245941efc193ad1d159887872776df7a8fd592ed746aa25d071840"}, - {file = "pydantic-1.8.2-cp36-cp36m-win_amd64.whl", hash = "sha256:99a9fc39470010c45c161a1dc584997f1feb13f689ecf645f59bb4ba623e586b"}, - {file = "pydantic-1.8.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:a83db7205f60c6a86f2c44a61791d993dff4b73135df1973ecd9eed5ea0bda20"}, - {file = "pydantic-1.8.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:41b542c0b3c42dc17da70554bc6f38cbc30d7066d2c2815a94499b5684582ecb"}, - {file = "pydantic-1.8.2-cp37-cp37m-manylinux2014_i686.whl", hash = "sha256:ea5cb40a3b23b3265f6325727ddfc45141b08ed665458be8c6285e7b85bd73a1"}, - {file = "pydantic-1.8.2-cp37-cp37m-manylinux2014_x86_64.whl", hash = "sha256:18b5ea242dd3e62dbf89b2b0ec9ba6c7b5abaf6af85b95a97b00279f65845a23"}, - {file = "pydantic-1.8.2-cp37-cp37m-win_amd64.whl", hash = "sha256:234a6c19f1c14e25e362cb05c68afb7f183eb931dd3cd4605eafff055ebbf287"}, - {file = "pydantic-1.8.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:021ea0e4133e8c824775a0cfe098677acf6fa5a3cbf9206a376eed3fc09302cd"}, - {file = "pydantic-1.8.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:e710876437bc07bd414ff453ac8ec63d219e7690128d925c6e82889d674bb505"}, - {file = "pydantic-1.8.2-cp38-cp38-manylinux2014_i686.whl", hash = "sha256:ac8eed4ca3bd3aadc58a13c2aa93cd8a884bcf21cb019f8cfecaae3b6ce3746e"}, - {file = "pydantic-1.8.2-cp38-cp38-manylinux2014_x86_64.whl", hash = "sha256:4a03cbbe743e9c7247ceae6f0d8898f7a64bb65800a45cbdc52d65e370570820"}, - {file = "pydantic-1.8.2-cp38-cp38-win_amd64.whl", hash = "sha256:8621559dcf5afacf0069ed194278f35c255dc1a1385c28b32dd6c110fd6531b3"}, - {file = "pydantic-1.8.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:8b223557f9510cf0bfd8b01316bf6dd281cf41826607eada99662f5e4963f316"}, - {file = "pydantic-1.8.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:244ad78eeb388a43b0c927e74d3af78008e944074b7d0f4f696ddd5b2af43c62"}, - {file = "pydantic-1.8.2-cp39-cp39-manylinux2014_i686.whl", hash = "sha256:05ef5246a7ffd2ce12a619cbb29f3307b7c4509307b1b49f456657b43529dc6f"}, - {file = "pydantic-1.8.2-cp39-cp39-manylinux2014_x86_64.whl", hash = "sha256:54cd5121383f4a461ff7644c7ca20c0419d58052db70d8791eacbbe31528916b"}, - {file = "pydantic-1.8.2-cp39-cp39-win_amd64.whl", hash = "sha256:4be75bebf676a5f0f87937c6ddb061fa39cbea067240d98e298508c1bda6f3f3"}, - {file = "pydantic-1.8.2-py3-none-any.whl", hash = "sha256:fec866a0b59f372b7e776f2d7308511784dace622e0992a0b59ea3ccee0ae833"}, - {file = "pydantic-1.8.2.tar.gz", hash = "sha256:26464e57ccaafe72b7ad156fdaa4e9b9ef051f69e175dbbb463283000c05ab7b"}, + {file = "pydantic-1.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c8098a724c2784bf03e8070993f6d46aa2eeca031f8d8a048dff277703e6e193"}, + {file = "pydantic-1.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c320c64dd876e45254bdd350f0179da737463eea41c43bacbee9d8c9d1021f11"}, + {file = "pydantic-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:18f3e912f9ad1bdec27fb06b8198a2ccc32f201e24174cec1b3424dda605a310"}, + {file = "pydantic-1.9.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c11951b404e08b01b151222a1cb1a9f0a860a8153ce8334149ab9199cd198131"}, + {file = "pydantic-1.9.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8bc541a405423ce0e51c19f637050acdbdf8feca34150e0d17f675e72d119580"}, + {file = "pydantic-1.9.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:e565a785233c2d03724c4dc55464559639b1ba9ecf091288dd47ad9c629433bd"}, + {file = "pydantic-1.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:a4a88dcd6ff8fd47c18b3a3709a89adb39a6373f4482e04c1b765045c7e282fd"}, + {file = "pydantic-1.9.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:447d5521575f18e18240906beadc58551e97ec98142266e521c34968c76c8761"}, + {file = "pydantic-1.9.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:985ceb5d0a86fcaa61e45781e567a59baa0da292d5ed2e490d612d0de5796918"}, + {file = "pydantic-1.9.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:059b6c1795170809103a1538255883e1983e5b831faea6558ef873d4955b4a74"}, + {file = "pydantic-1.9.1-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:d12f96b5b64bec3f43c8e82b4aab7599d0157f11c798c9f9c528a72b9e0b339a"}, + {file = "pydantic-1.9.1-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:ae72f8098acb368d877b210ebe02ba12585e77bd0db78ac04a1ee9b9f5dd2166"}, + {file = "pydantic-1.9.1-cp36-cp36m-win_amd64.whl", hash = "sha256:79b485767c13788ee314669008d01f9ef3bc05db9ea3298f6a50d3ef596a154b"}, + {file = "pydantic-1.9.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:494f7c8537f0c02b740c229af4cb47c0d39840b829ecdcfc93d91dcbb0779892"}, + {file = "pydantic-1.9.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f0f047e11febe5c3198ed346b507e1d010330d56ad615a7e0a89fae604065a0e"}, + {file = "pydantic-1.9.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:969dd06110cb780da01336b281f53e2e7eb3a482831df441fb65dd30403f4608"}, + {file = "pydantic-1.9.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:177071dfc0df6248fd22b43036f936cfe2508077a72af0933d0c1fa269b18537"}, + {file = "pydantic-1.9.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:9bcf8b6e011be08fb729d110f3e22e654a50f8a826b0575c7196616780683380"}, + {file = "pydantic-1.9.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a955260d47f03df08acf45689bd163ed9df82c0e0124beb4251b1290fa7ae728"}, + {file = "pydantic-1.9.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9ce157d979f742a915b75f792dbd6aa63b8eccaf46a1005ba03aa8a986bde34a"}, + {file = "pydantic-1.9.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:0bf07cab5b279859c253d26a9194a8906e6f4a210063b84b433cf90a569de0c1"}, + {file = "pydantic-1.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d93d4e95eacd313d2c765ebe40d49ca9dd2ed90e5b37d0d421c597af830c195"}, + {file = "pydantic-1.9.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1542636a39c4892c4f4fa6270696902acb186a9aaeac6f6cf92ce6ae2e88564b"}, + {file = "pydantic-1.9.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a9af62e9b5b9bc67b2a195ebc2c2662fdf498a822d62f902bf27cccb52dbbf49"}, + {file = "pydantic-1.9.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:fe4670cb32ea98ffbf5a1262f14c3e102cccd92b1869df3bb09538158ba90fe6"}, + {file = "pydantic-1.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:9f659a5ee95c8baa2436d392267988fd0f43eb774e5eb8739252e5a7e9cf07e0"}, + {file = "pydantic-1.9.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b83ba3825bc91dfa989d4eed76865e71aea3a6ca1388b59fc801ee04c4d8d0d6"}, + {file = "pydantic-1.9.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1dd8fecbad028cd89d04a46688d2fcc14423e8a196d5b0a5c65105664901f810"}, + {file = "pydantic-1.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:02eefd7087268b711a3ff4db528e9916ac9aa18616da7bca69c1871d0b7a091f"}, + {file = "pydantic-1.9.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7eb57ba90929bac0b6cc2af2373893d80ac559adda6933e562dcfb375029acee"}, + {file = "pydantic-1.9.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:4ce9ae9e91f46c344bec3b03d6ee9612802682c1551aaf627ad24045ce090761"}, + {file = "pydantic-1.9.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:72ccb318bf0c9ab97fc04c10c37683d9eea952ed526707fabf9ac5ae59b701fd"}, + {file = "pydantic-1.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:61b6760b08b7c395975d893e0b814a11cf011ebb24f7d869e7118f5a339a82e1"}, + {file = "pydantic-1.9.1-py3-none-any.whl", hash = "sha256:4988c0f13c42bfa9ddd2fe2f569c9d54646ce84adc5de84228cfe83396f3bd58"}, + {file = "pydantic-1.9.1.tar.gz", hash = "sha256:1ed987c3ff29fff7fd8c3ea3a3ea877ad310aae2ef9889a119e22d3f2db0691a"}, +] +pyparsing = [ + {file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"}, + {file = "pyparsing-3.0.9.tar.gz", hash = "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"}, ] pyrsistent = [ - {file = "pyrsistent-0.18.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:f4c8cabb46ff8e5d61f56a037974228e978f26bfefce4f61a4b1ac0ba7a2ab72"}, - {file = "pyrsistent-0.18.0-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:da6e5e818d18459fa46fac0a4a4e543507fe1110e808101277c5a2b5bab0cd2d"}, - {file = "pyrsistent-0.18.0-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:5e4395bbf841693eaebaa5bb5c8f5cdbb1d139e07c975c682ec4e4f8126e03d2"}, - {file = "pyrsistent-0.18.0-cp36-cp36m-win32.whl", hash = "sha256:527be2bfa8dc80f6f8ddd65242ba476a6c4fb4e3aedbf281dfbac1b1ed4165b1"}, - {file = "pyrsistent-0.18.0-cp36-cp36m-win_amd64.whl", hash = "sha256:2aaf19dc8ce517a8653746d98e962ef480ff34b6bc563fc067be6401ffb457c7"}, - {file = "pyrsistent-0.18.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:58a70d93fb79dc585b21f9d72487b929a6fe58da0754fa4cb9f279bb92369396"}, - {file = "pyrsistent-0.18.0-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:4916c10896721e472ee12c95cdc2891ce5890898d2f9907b1b4ae0f53588b710"}, - {file = "pyrsistent-0.18.0-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:73ff61b1411e3fb0ba144b8f08d6749749775fe89688093e1efef9839d2dcc35"}, - {file = "pyrsistent-0.18.0-cp37-cp37m-win32.whl", hash = "sha256:b29b869cf58412ca5738d23691e96d8aff535e17390128a1a52717c9a109da4f"}, - {file = "pyrsistent-0.18.0-cp37-cp37m-win_amd64.whl", hash = "sha256:097b96f129dd36a8c9e33594e7ebb151b1515eb52cceb08474c10a5479e799f2"}, - {file = "pyrsistent-0.18.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:772e94c2c6864f2cd2ffbe58bb3bdefbe2a32afa0acb1a77e472aac831f83427"}, - {file = "pyrsistent-0.18.0-cp38-cp38-manylinux1_i686.whl", hash = "sha256:c1a9ff320fa699337e05edcaae79ef8c2880b52720bc031b219e5b5008ebbdef"}, - {file = "pyrsistent-0.18.0-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:cd3caef37a415fd0dae6148a1b6957a8c5f275a62cca02e18474608cb263640c"}, - {file = "pyrsistent-0.18.0-cp38-cp38-win32.whl", hash = "sha256:e79d94ca58fcafef6395f6352383fa1a76922268fa02caa2272fff501c2fdc78"}, - {file = "pyrsistent-0.18.0-cp38-cp38-win_amd64.whl", hash = "sha256:a0c772d791c38bbc77be659af29bb14c38ced151433592e326361610250c605b"}, - {file = "pyrsistent-0.18.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d5ec194c9c573aafaceebf05fc400656722793dac57f254cd4741f3c27ae57b4"}, - {file = "pyrsistent-0.18.0-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6b5eed00e597b5b5773b4ca30bd48a5774ef1e96f2a45d105db5b4ebb4bca680"}, - {file = "pyrsistent-0.18.0-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:48578680353f41dca1ca3dc48629fb77dfc745128b56fc01096b2530c13fd426"}, - {file = "pyrsistent-0.18.0-cp39-cp39-win32.whl", hash = "sha256:f3ef98d7b76da5eb19c37fda834d50262ff9167c65658d1d8f974d2e4d90676b"}, - {file = "pyrsistent-0.18.0-cp39-cp39-win_amd64.whl", hash = "sha256:404e1f1d254d314d55adb8d87f4f465c8693d6f902f67eb6ef5b4526dc58e6ea"}, - {file = "pyrsistent-0.18.0.tar.gz", hash = "sha256:773c781216f8c2900b42a7b638d5b517bb134ae1acbebe4d1e8f1f41ea60eb4b"}, + {file = "pyrsistent-0.18.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:df46c854f490f81210870e509818b729db4488e1f30f2a1ce1698b2295a878d1"}, + {file = "pyrsistent-0.18.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d45866ececf4a5fff8742c25722da6d4c9e180daa7b405dc0a2a2790d668c26"}, + {file = "pyrsistent-0.18.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4ed6784ceac462a7d6fcb7e9b663e93b9a6fb373b7f43594f9ff68875788e01e"}, + {file = "pyrsistent-0.18.1-cp310-cp310-win32.whl", hash = "sha256:e4f3149fd5eb9b285d6bfb54d2e5173f6a116fe19172686797c056672689daf6"}, + {file = "pyrsistent-0.18.1-cp310-cp310-win_amd64.whl", hash = "sha256:636ce2dc235046ccd3d8c56a7ad54e99d5c1cd0ef07d9ae847306c91d11b5fec"}, + {file = "pyrsistent-0.18.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e92a52c166426efbe0d1ec1332ee9119b6d32fc1f0bbfd55d5c1088070e7fc1b"}, + {file = "pyrsistent-0.18.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7a096646eab884bf8bed965bad63ea327e0d0c38989fc83c5ea7b8a87037bfc"}, + {file = "pyrsistent-0.18.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cdfd2c361b8a8e5d9499b9082b501c452ade8bbf42aef97ea04854f4a3f43b22"}, + {file = "pyrsistent-0.18.1-cp37-cp37m-win32.whl", hash = "sha256:7ec335fc998faa4febe75cc5268a9eac0478b3f681602c1f27befaf2a1abe1d8"}, + {file = "pyrsistent-0.18.1-cp37-cp37m-win_amd64.whl", hash = "sha256:6455fc599df93d1f60e1c5c4fe471499f08d190d57eca040c0ea182301321286"}, + {file = "pyrsistent-0.18.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:fd8da6d0124efa2f67d86fa70c851022f87c98e205f0594e1fae044e7119a5a6"}, + {file = "pyrsistent-0.18.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7bfe2388663fd18bd8ce7db2c91c7400bf3e1a9e8bd7d63bf7e77d39051b85ec"}, + {file = "pyrsistent-0.18.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0e3e1fcc45199df76053026a51cc59ab2ea3fc7c094c6627e93b7b44cdae2c8c"}, + {file = "pyrsistent-0.18.1-cp38-cp38-win32.whl", hash = "sha256:b568f35ad53a7b07ed9b1b2bae09eb15cdd671a5ba5d2c66caee40dbf91c68ca"}, + {file = "pyrsistent-0.18.1-cp38-cp38-win_amd64.whl", hash = "sha256:d1b96547410f76078eaf66d282ddca2e4baae8964364abb4f4dcdde855cd123a"}, + {file = "pyrsistent-0.18.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:f87cc2863ef33c709e237d4b5f4502a62a00fab450c9e020892e8e2ede5847f5"}, + {file = "pyrsistent-0.18.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6bc66318fb7ee012071b2792024564973ecc80e9522842eb4e17743604b5e045"}, + {file = "pyrsistent-0.18.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:914474c9f1d93080338ace89cb2acee74f4f666fb0424896fcfb8d86058bf17c"}, + {file = "pyrsistent-0.18.1-cp39-cp39-win32.whl", hash = "sha256:1b34eedd6812bf4d33814fca1b66005805d3640ce53140ab8bbb1e2651b0d9bc"}, + {file = "pyrsistent-0.18.1-cp39-cp39-win_amd64.whl", hash = "sha256:e24a828f57e0c337c8d8bb9f6b12f09dfdf0273da25fda9e314f0b684b415a07"}, + {file = "pyrsistent-0.18.1.tar.gz", hash = "sha256:d4d61f8b993a7255ba714df3aca52700f8125289f84f704cf80916517c46eb96"}, +] +pytest = [ + {file = "pytest-7.1.2-py3-none-any.whl", hash = "sha256:13d0e3ccfc2b6e26be000cb6568c832ba67ba32e719443bfe725814d3c42433c"}, + {file = "pytest-7.1.2.tar.gz", hash = "sha256:a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45"}, ] pyyaml = [ {file = "PyYAML-5.4.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:3b2b1824fe7112845700f815ff6a489360226a5609b96ec2190a45e62a9fc922"}, @@ -218,12 +450,22 @@ six = [ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, ] +toml = [ + {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, + {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, +] +tomli = [ + {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, + {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, +] +tox = [] typing-extensions = [ {file = "typing_extensions-3.10.0.2-py2-none-any.whl", hash = "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7"}, {file = "typing_extensions-3.10.0.2-py3-none-any.whl", hash = "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34"}, {file = "typing_extensions-3.10.0.2.tar.gz", hash = "sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e"}, ] +virtualenv = [] zipp = [ - {file = "zipp-3.6.0-py3-none-any.whl", hash = "sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc"}, - {file = "zipp-3.6.0.tar.gz", hash = "sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832"}, + {file = "zipp-3.8.0-py3-none-any.whl", hash = "sha256:c4f6e5bbf48e74f7a38e7cc5b0480ff42b0ae5178957d564d18932525d5cf099"}, + {file = "zipp-3.8.0.tar.gz", hash = "sha256:56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43ad"}, ] diff --git a/pyproject.toml b/pyproject.toml index 9e353b6..ecd0063 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,11 @@ jsonschema = "^3.2.0" typing-extensions = "^3.10.0" importlib-metadata = "^4.8.1" + [tool.poetry.dev-dependencies] +pytest = "^7.1.2" +tox = "^3.25.1" + [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/tests/yoda_dbt2looker/test_generator.py b/tests/yoda_dbt2looker/test_generator.py new file mode 100644 index 0000000..3da2db7 --- /dev/null +++ b/tests/yoda_dbt2looker/test_generator.py @@ -0,0 +1,14 @@ + +from yoda_dbt2looker import generator + +def test__convert_all_refs_to_relation_name(): + result = generator._convert_all_refs_to_relation_name("ref('some_model')") + assert(result == "some_model") + result = generator._convert_all_refs_to_relation_name("'some_model'") + assert(result == "'some_model'") + result = generator._convert_all_refs_to_relation_name(" ${ref('model1').key1} = ${ref('model2').key2}") + assert(result == "${model1.key1} = ${model2.key2}") + result = generator._convert_all_refs_to_relation_name(" ${ref('model1').key1} = ${ref('model2').key2} and ${ref('model1').key2} = ${ref('model3').key1}") + assert(result == "${model1.key1} = ${model2.key2} and ${model1.key2} = ${model3.key1}") + result = generator._convert_all_refs_to_relation_name(" (${ref('model1').key1} = ${ref('model2').key2} and ${ref('model1').key2} = ${ref('model3').key1}) or (${ref('model4').key1} = ${ref('model5').key2} or ${ref('model6').key2} = ${ref('model7').key1})") + assert(result == "(${model1.key1} = ${model2.key2} and ${model1.key2} = ${model3.key1} )or( ${model4.key1} = ${model5.key2} or ${model6.key2} = ${model7.key1})") \ No newline at end of file diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..64c895f --- /dev/null +++ b/tox.ini @@ -0,0 +1,14 @@ +[tox] +envlist = py39 +isolated_build = True + +[gh-actions] +python = + 3.9: py39 + +[testenv:tests] +whitelist_externals = poetry +# install pytest in the virtualenv where commands will be executed +commands = + poetry install -v + poetry run pytest {posargs} tests \ No newline at end of file diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 97dbd00..633b26d 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -345,7 +345,7 @@ def lookml_view_from_dbt_exposure(model: models.DbtModel, dbt_project_name: str) # return ref_str -def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: +def _convert_all_refs_to_relation_name(ref_str : str) -> str: reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" matches = re.findall(reg_ref, ref_str) if not matches or len(matches) == 0: @@ -355,7 +355,7 @@ def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_nam for group_value in matches: ref_str = ref_str.replace(f"ref('{group_value}')",group_value) ref_str = ref_str.replace("="," = ") - + ref_str=re.sub(r'}(.*?)\$', r'} \1 $',ref_str) return ref_str def _extract_all_refs(ref_str : str) -> list[str]: @@ -394,7 +394,7 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM } } if model.meta.looker: - relation_name = _convert_all_refs_to_relation_name(manifest, dbt_project_name, model.meta.looker.explore_name) + relation_name = _convert_all_refs_to_relation_name(model.meta.looker.explore_name) if not relation_name: logging.error(f"Invalid ref {model.meta.looker.explore_name}") @@ -407,10 +407,10 @@ def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtM 'description': model.description, 'joins': [ { - 'name': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.join), + 'name': _convert_all_refs_to_relation_name(join.join), 'type': join.type.value, 'relationship': join.relationship.value, - 'sql_on': _convert_all_refs_to_relation_name(manifest, dbt_project_name, join.sql_on), + 'sql_on': _convert_all_refs_to_relation_name(join.sql_on), } for join in model.meta.looker.joins ] From 13a154e412a0cd7fcf64fc4c2946fca529a3fdae Mon Sep 17 00:00:00 2001 From: dkruh36 <101973979+dkruh36@users.noreply.github.com> Date: Sat, 9 Jul 2022 22:24:43 +0300 Subject: [PATCH 53/87] wip --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0990c22..765c492 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: uses: abatilo/actions-poetry@v2.0.0 with: poetry-version: ${{ matrix.poetry-version }} - - name: Install dependencies + - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install tox tox-gh-actions From dd096bbe72c1bdde30acff3871f0699312d4f7f0 Mon Sep 17 00:00:00 2001 From: dkruh36 <101973979+dkruh36@users.noreply.github.com> Date: Sun, 10 Jul 2022 09:54:38 +0300 Subject: [PATCH 54/87] add comment --- yoda_dbt2looker/generator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 633b26d..9710ca8 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -355,6 +355,8 @@ def _convert_all_refs_to_relation_name(ref_str : str) -> str: for group_value in matches: ref_str = ref_str.replace(f"ref('{group_value}')",group_value) ref_str = ref_str.replace("="," = ") + # in case of a compound expression with logical operator , i.e : ${join1} and ${join2} - we would like + # to add a space between the logical operator so all elements between }...$ are captured and added a pre and post space ref_str=re.sub(r'}(.*?)\$', r'} \1 $',ref_str) return ref_str From fd9f0972dcee16bb5afc255bb468749c91a9773b Mon Sep 17 00:00:00 2001 From: dkruh36 Date: Sun, 10 Jul 2022 06:57:49 +0000 Subject: [PATCH 55/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ecd0063..298133b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.20" +version = "0.9.21" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 61179e629807b0e81ba434c58f5a4e4d440d051a Mon Sep 17 00:00:00 2001 From: dkruh36 <101973979+dkruh36@users.noreply.github.com> Date: Tue, 19 Jul 2022 08:45:08 +0300 Subject: [PATCH 56/87] add compound key --- tests/yoda_dbt2looker/test_generator.py | 264 ++++++++++- yoda_dbt2looker/generator.py | 586 ++++++++++++++---------- 2 files changed, 588 insertions(+), 262 deletions(-) diff --git a/tests/yoda_dbt2looker/test_generator.py b/tests/yoda_dbt2looker/test_generator.py index 3da2db7..79d44c0 100644 --- a/tests/yoda_dbt2looker/test_generator.py +++ b/tests/yoda_dbt2looker/test_generator.py @@ -1,14 +1,256 @@ - from yoda_dbt2looker import generator +from unittest.mock import MagicMock, patch, call + def test__convert_all_refs_to_relation_name(): - result = generator._convert_all_refs_to_relation_name("ref('some_model')") - assert(result == "some_model") - result = generator._convert_all_refs_to_relation_name("'some_model'") - assert(result == "'some_model'") - result = generator._convert_all_refs_to_relation_name(" ${ref('model1').key1} = ${ref('model2').key2}") - assert(result == "${model1.key1} = ${model2.key2}") - result = generator._convert_all_refs_to_relation_name(" ${ref('model1').key1} = ${ref('model2').key2} and ${ref('model1').key2} = ${ref('model3').key1}") - assert(result == "${model1.key1} = ${model2.key2} and ${model1.key2} = ${model3.key1}") - result = generator._convert_all_refs_to_relation_name(" (${ref('model1').key1} = ${ref('model2').key2} and ${ref('model1').key2} = ${ref('model3').key1}) or (${ref('model4').key1} = ${ref('model5').key2} or ${ref('model6').key2} = ${ref('model7').key1})") - assert(result == "(${model1.key1} = ${model2.key2} and ${model1.key2} = ${model3.key1} )or( ${model4.key1} = ${model5.key2} or ${model6.key2} = ${model7.key1})") \ No newline at end of file + result = generator._convert_all_refs_to_relation_name("ref('some_model')") + assert result == "some_model" + result = generator._convert_all_refs_to_relation_name("'some_model'") + assert result == "'some_model'" + result = generator._convert_all_refs_to_relation_name( + " ${ref('model1').key1} = ${ref('model2').key2}" + ) + assert result == "${model1.key1} = ${model2.key2}" + result = generator._convert_all_refs_to_relation_name( + " ${ref('model1').key1} = ${ref('model2').key2} and ${ref('model1').key2} = ${ref('model3').key1}" + ) + assert ( + result + == "${model1.key1} = ${model2.key2} and ${model1.key2} = ${model3.key1}" + ) + result = generator._convert_all_refs_to_relation_name( + " (${ref('model1').key1} = ${ref('model2').key2} and ${ref('model1').key2} = ${ref('model3').key1}) or (${ref('model4').key1} = ${ref('model5').key2} or ${ref('model6').key2} = ${ref('model7').key1})" + ) + assert ( + result + == "(${model1.key1} = ${model2.key2} and ${model1.key2} = ${model3.key1} )or( ${model4.key1} = ${model5.key2} or ${model6.key2} = ${model7.key1})" + ) + + +def test__generate_dimensions_no_column_enabled_returns_empty_list(): + model = MagicMock() + column = MagicMock() + model.columns = {"col1": column} + column.meta.dimension.enabled = False + assert generator._generate_dimensions(model, None) == [] + + +@patch("yoda_dbt2looker.generator.map_adapter_type_to_looker") +def test__generate_dimensions_column_enabled_not_scalar_type_returns_empty_list( + map_adapter_type_to_looker_mock, +): + model = MagicMock() + column = MagicMock() + model.columns = {"col1": column} + column.meta.dimension.enabled = True + data_type = MagicMock() + column.data_type = data_type + map_adapter_type_to_looker_mock.return_value = "date" + adapter_type = MagicMock() + assert generator._generate_dimensions(model, adapter_type) == [] + assert map_adapter_type_to_looker_mock.mock_calls == [call(adapter_type, data_type)] + + +@patch("yoda_dbt2looker.generator.map_adapter_type_to_looker") +def test__generate_dimensions_column_enabled_has_sql_returns_dimension( + map_adapter_type_to_looker_mock, +): + model = MagicMock() + column = MagicMock() + model.columns = {"col1": column} + column.meta.dimension.enabled = True + data_type = MagicMock() + column.data_type = data_type + map_adapter_type_to_looker_mock.return_value = "number" + adapter_type = MagicMock() + column.meta.dimension.name = "col1" + column.meta.dimension.sql = "col1 sql" + column.meta.dimension.description = "col1 description" + column.meta.dimension.value_format_name = None + assert generator._generate_dimensions(model, adapter_type) == [ + { + "name": "col1", + "type": "number", + "sql": "col1 sql", + "description": "col1 description", + } + ] + assert map_adapter_type_to_looker_mock.mock_calls == [ + call(adapter_type, data_type), + call(adapter_type, data_type), + ] + + +@patch("yoda_dbt2looker.generator.map_adapter_type_to_looker") +def test__generate_dimensions_column_enabled_no_sql_returns_dimension( + map_adapter_type_to_looker_mock, +): + model = MagicMock() + column = MagicMock() + model.columns = {"col1": column} + column.meta.dimension.enabled = True + data_type = MagicMock() + column.data_type = data_type + map_adapter_type_to_looker_mock.return_value = "number" + adapter_type = MagicMock() + column.meta.dimension.name = None + column.name = "col1" + column.meta.dimension.sql = None + column.meta.dimension.description = "col1 description" + column.meta.dimension.value_format_name = None + assert generator._generate_dimensions(model, adapter_type) == [ + { + "name": "col1", + "type": "number", + "sql": f"${{TABLE}}.col1", + "description": "col1 description", + } + ] + assert map_adapter_type_to_looker_mock.mock_calls == [ + call(adapter_type, data_type), + call(adapter_type, data_type), + ] + + +@patch("yoda_dbt2looker.generator.map_adapter_type_to_looker") +def test__generate_dimensions_column_enabled_is_primary_key_returns_dimension( + map_adapter_type_to_looker_mock, +): + model = MagicMock() + column = MagicMock() + model.columns = {"col1": column} + column.meta.dimension.enabled = True + data_type = MagicMock() + column.data_type = data_type + map_adapter_type_to_looker_mock.return_value = "number" + adapter_type = MagicMock() + column.meta.dimension.name = None + column.name = "col1" + column.meta.dimension.sql = None + column.meta.dimension.description = "col1 description" + column.meta.dimension.value_format_name = None + model.meta.primary_key = "col1" + assert generator._generate_dimensions(model, adapter_type) == [ + { + "name": "col1", + "type": "number", + "sql": f"${{TABLE}}.col1", + "description": "col1 description", + "primary_key": "yes", + } + ] + assert map_adapter_type_to_looker_mock.mock_calls == [ + call(adapter_type, data_type), + call(adapter_type, data_type), + ] + + +@patch("yoda_dbt2looker.generator.map_adapter_type_to_looker") +def test__generate_dimensions_column_enabled_col_has_value_format_name_but_not_number( + map_adapter_type_to_looker_mock, +): + model = MagicMock() + column = MagicMock() + model.columns = {"col1": column} + column.meta.dimension.enabled = True + data_type = MagicMock() + column.data_type = data_type + map_adapter_type_to_looker_mock.return_value = "yesno" + adapter_type = MagicMock() + column.meta.dimension.name = None + column.name = "col1" + column.meta.dimension.sql = None + column.meta.dimension.description = "col1 description" + column.meta.dimension.value_format_name.value = "format1" + assert generator._generate_dimensions(model, adapter_type) == [ + { + "name": "col1", + "type": "yesno", + "sql": f"${{TABLE}}.col1", + "description": "col1 description", + } + ] + assert map_adapter_type_to_looker_mock.mock_calls == [ + call(adapter_type, data_type), + call(adapter_type, data_type), + call(adapter_type, data_type), + ] + + +@patch("yoda_dbt2looker.generator.map_adapter_type_to_looker") +def test__generate_dimensions_column_enabled_col_has_value_format_name( + map_adapter_type_to_looker_mock, +): + model = MagicMock() + column = MagicMock() + model.columns = {"col1": column} + column.meta.dimension.enabled = True + data_type = MagicMock() + column.data_type = data_type + map_adapter_type_to_looker_mock.return_value = "number" + adapter_type = MagicMock() + column.meta.dimension.name = None + column.name = "col1" + column.meta.dimension.sql = None + column.meta.dimension.description = "col1 description" + column.meta.dimension.value_format_name.value = "format1" + assert generator._generate_dimensions(model, adapter_type) == [ + { + "name": "col1", + "type": "number", + "sql": f"${{TABLE}}.col1", + "description": "col1 description", + "value_format_name": "format1", + } + ] + assert map_adapter_type_to_looker_mock.mock_calls == [ + call(adapter_type, data_type), + call(adapter_type, data_type), + call(adapter_type, data_type), + ] + +def test__generate_compound_no_primary_key_returns_none(): + model = MagicMock() + model.meta.primary_key = None + assert generator._generate_compound_primary_key_if_needed(model) is None + +def test__generate_compound_primary_key_not_compound_return_none(): + model = MagicMock() + model.meta.primary_key = "col1" + assert generator._generate_compound_primary_key_if_needed(model) is None + +def test__generate_compound_primary_key_compound_return_dict(): + model = MagicMock() + model.meta.primary_key = "col1 , col2" + assert generator._generate_compound_primary_key_if_needed(model) == { + "name": "primary_key", + "primary_key": "yes", + "sql": 'CONCAT(${TABLE}.col1,${TABLE}.col2) ;;', + "description": f"auto generated compound key from the columns:col1 , col2", + } + +@patch("yoda_dbt2looker.generator._generate_compound_primary_key_if_needed") +@patch("yoda_dbt2looker.generator._generate_dimensions") +def test_lookml_dimensions_from_model_no_compound_key_return_only_dimensions(generate_dimensions_mock , generate_compound_primary_key_if_needed_mock): + dimension1 = MagicMock() + generate_dimensions_mock.return_value = [dimension1] + generate_compound_primary_key_if_needed_mock.return_value = None + model = MagicMock() + adapter_type = MagicMock() + assert generator.lookml_dimensions_from_model(model , adapter_type) == [dimension1] + assert generate_dimensions_mock.mock_calls == [call(model , adapter_type)] + assert generate_compound_primary_key_if_needed_mock.mock_calls == [call(model)] + +@patch("yoda_dbt2looker.generator._generate_compound_primary_key_if_needed") +@patch("yoda_dbt2looker.generator._generate_dimensions") +def test_lookml_dimensions_from_model_has_compound_key_return_joined_list(generate_dimensions_mock , generate_compound_primary_key_if_needed_mock): + dimension1 = MagicMock() + dimension2 = MagicMock() + generate_dimensions_mock.return_value = [dimension1] + generate_compound_primary_key_if_needed_mock.return_value = dimension2 + model = MagicMock() + adapter_type = MagicMock() + assert generator.lookml_dimensions_from_model(model , adapter_type) == [dimension1 , dimension2] + assert generate_dimensions_mock.mock_calls == [call(model , adapter_type)] + assert generate_compound_primary_key_if_needed_mock.mock_calls[0] == call(model) + diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 9710ca8..516122b 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -6,94 +6,94 @@ from . import models LOOKER_DTYPE_MAP = { - 'bigquery': { - 'INT64': 'number', - 'INTEGER': 'number', - 'FLOAT': 'number', - 'FLOAT64': 'number', - 'NUMERIC': 'number', - 'BOOLEAN': 'yesno', - 'STRING': 'string', - 'TIMESTAMP': 'timestamp', - 'DATETIME': 'datetime', - 'DATE': 'date', - 'TIME': 'string', # Can time-only be handled better in looker? - 'BOOL': 'yesno', - 'ARRAY': 'string', - 'GEOGRAPHY': 'string', + "bigquery": { + "INT64": "number", + "INTEGER": "number", + "FLOAT": "number", + "FLOAT64": "number", + "NUMERIC": "number", + "BOOLEAN": "yesno", + "STRING": "string", + "TIMESTAMP": "timestamp", + "DATETIME": "datetime", + "DATE": "date", + "TIME": "string", # Can time-only be handled better in looker? + "BOOL": "yesno", + "ARRAY": "string", + "GEOGRAPHY": "string", }, - 'snowflake': { - 'NUMBER': 'number', - 'DECIMAL': 'number', - 'NUMERIC': 'number', - 'INT': 'number', - 'INTEGER': 'number', - 'BIGINT': 'number', - 'SMALLINT': 'number', - 'FLOAT': 'number', - 'FLOAT4': 'number', - 'FLOAT8': 'number', - 'DOUBLE': 'number', - 'DOUBLE PRECISION': 'number', - 'REAL': 'number', - 'VARCHAR': 'string', - 'CHAR': 'string', - 'CHARACTER': 'string', - 'STRING': 'string', - 'TEXT': 'string', - 'BINARY': 'string', - 'VARBINARY': 'string', - 'BOOLEAN': 'yesno', - 'DATE': 'date', - 'DATETIME': 'datetime', - 'TIME': 'string', # can we support time? - 'TIMESTAMP': 'timestamp', - 'TIMESTAMP_NTZ': 'timestamp', + "snowflake": { + "NUMBER": "number", + "DECIMAL": "number", + "NUMERIC": "number", + "INT": "number", + "INTEGER": "number", + "BIGINT": "number", + "SMALLINT": "number", + "FLOAT": "number", + "FLOAT4": "number", + "FLOAT8": "number", + "DOUBLE": "number", + "DOUBLE PRECISION": "number", + "REAL": "number", + "VARCHAR": "string", + "CHAR": "string", + "CHARACTER": "string", + "STRING": "string", + "TEXT": "string", + "BINARY": "string", + "VARBINARY": "string", + "BOOLEAN": "yesno", + "DATE": "date", + "DATETIME": "datetime", + "TIME": "string", # can we support time? + "TIMESTAMP": "timestamp", + "TIMESTAMP_NTZ": "timestamp", # TIMESTAMP_LTZ not supported (see https://docs.looker.com/reference/field-params/dimension_group) # TIMESTAMP_TZ not supported (see https://docs.looker.com/reference/field-params/dimension_group) - 'VARIANT': 'string', - 'OBJECT': 'string', - 'ARRAY': 'string', - 'GEOGRAPHY': 'string', + "VARIANT": "string", + "OBJECT": "string", + "ARRAY": "string", + "GEOGRAPHY": "string", }, - 'redshift': { - 'SMALLINT': 'number', - 'INT2': 'number', - 'INTEGER': 'number', - 'INT': 'number', - 'INT4': 'number', - 'BIGINT': 'number', - 'INT8': 'number', - 'DECIMAL': 'number', - 'NUMERIC': 'number', - 'REAL': 'number', - 'FLOAT4': 'number', - 'DOUBLE PRECISION': 'number', - 'FLOAT8': 'number', - 'FLOAT': 'number', - 'BOOLEAN': 'yesno', - 'BOOL': 'yesno', - 'CHAR': 'string', - 'CHARACTER': 'string', - 'NCHAR': 'string', - 'BPCHAR': 'string', - 'VARCHAR': 'string', - 'CHARACTER VARYING': 'string', - 'NVARCHAR': 'string', - 'TEXT': 'string', - 'DATE': 'date', - 'TIMESTAMP': 'timestamp', - 'TIMESTAMP WITHOUT TIME ZONE': 'timestamp', + "redshift": { + "SMALLINT": "number", + "INT2": "number", + "INTEGER": "number", + "INT": "number", + "INT4": "number", + "BIGINT": "number", + "INT8": "number", + "DECIMAL": "number", + "NUMERIC": "number", + "REAL": "number", + "FLOAT4": "number", + "DOUBLE PRECISION": "number", + "FLOAT8": "number", + "FLOAT": "number", + "BOOLEAN": "yesno", + "BOOL": "yesno", + "CHAR": "string", + "CHARACTER": "string", + "NCHAR": "string", + "BPCHAR": "string", + "VARCHAR": "string", + "CHARACTER VARYING": "string", + "NVARCHAR": "string", + "TEXT": "string", + "DATE": "date", + "TIMESTAMP": "timestamp", + "TIMESTAMP WITHOUT TIME ZONE": "timestamp", # TIMESTAMPTZ not supported # TIMESTAMP WITH TIME ZONE not supported - 'GEOMETRY': 'string', + "GEOMETRY": "string", # HLLSKETCH not supported - 'TIME': 'string', - 'TIME WITHOUT TIME ZONE': 'string', + "TIME": "string", + "TIME WITHOUT TIME ZONE": "string", # TIMETZ not supported # TIME WITH TIME ZONE not supported }, - 'postgres': { + "postgres": { # BIT, BIT VARYING, VARBIT not supported # BOX not supported # BYTEA not supported @@ -105,161 +105,214 @@ # POINT not supported # POLYGON not supported # TSQUERY, TSVECTOR not supported - 'XML': 'string', - 'UUID': 'string', - 'PG_LSN': 'string', - 'MACADDR': 'string', - 'JSON': 'string', - 'JSONB': 'string', - 'CIDR': 'string', - 'INET': 'string', - 'MONEY': 'number', - 'SMALLINT': 'number', - 'INT2': 'number', - 'SMALLSERIAL': 'number', - 'SERIAL2': 'number', - 'INTEGER': 'number', - 'INT': 'number', - 'INT4': 'number', - 'SERIAL': 'number', - 'SERIAL4': 'number', - 'BIGINT': 'number', - 'INT8': 'number', - 'BIGSERIAL': 'number', - 'SERIAL8': 'number', - 'DECIMAL': 'number', - 'NUMERIC': 'number', - 'REAL': 'number', - 'FLOAT4': 'number', - 'DOUBLE PRECISION': 'number', - 'FLOAT8': 'number', - 'FLOAT': 'number', - 'BOOLEAN': 'yesno', - 'BOOL': 'yesno', - 'CHAR': 'string', - 'CHARACTER': 'string', - 'NCHAR': 'string', - 'BPCHAR': 'string', - 'VARCHAR': 'string', - 'CHARACTER VARYING': 'string', - 'NVARCHAR': 'string', - 'TEXT': 'string', - 'DATE': 'date', - 'TIMESTAMP': 'timestamp', - 'TIMESTAMP WITHOUT TIME ZONE': 'timestamp', + "XML": "string", + "UUID": "string", + "PG_LSN": "string", + "MACADDR": "string", + "JSON": "string", + "JSONB": "string", + "CIDR": "string", + "INET": "string", + "MONEY": "number", + "SMALLINT": "number", + "INT2": "number", + "SMALLSERIAL": "number", + "SERIAL2": "number", + "INTEGER": "number", + "INT": "number", + "INT4": "number", + "SERIAL": "number", + "SERIAL4": "number", + "BIGINT": "number", + "INT8": "number", + "BIGSERIAL": "number", + "SERIAL8": "number", + "DECIMAL": "number", + "NUMERIC": "number", + "REAL": "number", + "FLOAT4": "number", + "DOUBLE PRECISION": "number", + "FLOAT8": "number", + "FLOAT": "number", + "BOOLEAN": "yesno", + "BOOL": "yesno", + "CHAR": "string", + "CHARACTER": "string", + "NCHAR": "string", + "BPCHAR": "string", + "VARCHAR": "string", + "CHARACTER VARYING": "string", + "NVARCHAR": "string", + "TEXT": "string", + "DATE": "date", + "TIMESTAMP": "timestamp", + "TIMESTAMP WITHOUT TIME ZONE": "timestamp", # TIMESTAMPTZ not supported # TIMESTAMP WITH TIME ZONE not supported - 'GEOMETRY': 'string', + "GEOMETRY": "string", # HLLSKETCH not supported - 'TIME': 'string', - 'TIME WITHOUT TIME ZONE': 'string', + "TIME": "string", + "TIME WITHOUT TIME ZONE": "string", # TIMETZ not supported # TIME WITH TIME ZONE not supported }, - 'spark': { - 'byte': 'number', - 'short': 'number', - 'integer': 'number', - 'long': 'number', - 'float': 'number', - 'double': 'number', - 'decimal': 'number', - 'string': 'string', - 'varchar': 'string', - 'char': 'string', - 'boolean': 'yesno', - 'timestamp': 'timestamp', - 'date': 'datetime', - } + "spark": { + "byte": "number", + "short": "number", + "integer": "number", + "long": "number", + "float": "number", + "double": "number", + "decimal": "number", + "string": "string", + "varchar": "string", + "char": "string", + "boolean": "yesno", + "timestamp": "timestamp", + "date": "datetime", + }, } -looker_date_time_types = ['datetime', 'timestamp'] -looker_date_types = ['date'] -looker_scalar_types = ['number', 'yesno', 'string'] +looker_date_time_types = ["datetime", "timestamp"] +looker_date_types = ["date"] +looker_scalar_types = ["number", "yesno", "string"] looker_timeframes = [ - 'raw', - 'time', - 'date', - 'week', - 'month', - 'quarter', - 'year', + "raw", + "time", + "date", + "week", + "month", + "quarter", + "year", ] def normalise_spark_types(column_type: str) -> str: - return re.match(r'^[^\(]*', column_type).group(0) + return re.match(r"^[^\(]*", column_type).group(0) -def map_adapter_type_to_looker(adapter_type: models.SupportedDbtAdapters, column_type: str): +def map_adapter_type_to_looker( + adapter_type: models.SupportedDbtAdapters, column_type: str +): if column_type is None: return None - normalised_column_type = normalise_spark_types(column_type) if adapter_type == models.SupportedDbtAdapters.spark.value else column_type + normalised_column_type = ( + normalise_spark_types(column_type) + if adapter_type == models.SupportedDbtAdapters.spark.value + else column_type + ) looker_type = LOOKER_DTYPE_MAP[adapter_type].get(normalised_column_type) if (column_type is not None) and (looker_type is None): - logging.warning(f'Column type {column_type} not supported for conversion from {adapter_type} to looker. No dimension will be created.') + logging.warning( + f"Column type {column_type} not supported for conversion from {adapter_type} to looker. No dimension will be created." + ) return looker_type -def lookml_date_time_dimension_group(column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters): +def lookml_date_time_dimension_group( + column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters +): return { - 'name': column.meta.dimension.name or column.name, - 'type': 'time', - 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', - 'description': column.meta.dimension.description or column.description, - 'datatype': map_adapter_type_to_looker(adapter_type, column.data_type), - 'timeframes': ['raw', 'time', 'hour', 'date', 'week', 'month', 'quarter', 'year'] + "name": column.meta.dimension.name or column.name, + "type": "time", + "sql": column.meta.dimension.sql or f"${{TABLE}}.{column.name}", + "description": column.meta.dimension.description or column.description, + "datatype": map_adapter_type_to_looker(adapter_type, column.data_type), + "timeframes": [ + "raw", + "time", + "hour", + "date", + "week", + "month", + "quarter", + "year", + ], } -def lookml_date_dimension_group(column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters): +def lookml_date_dimension_group( + column: models.DbtModelColumn, adapter_type: models.SupportedDbtAdapters +): return { - 'name': column.meta.dimension.name or column.name, - 'type': 'time', - 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', - 'description': column.meta.dimension.description or column.description, - 'datatype': map_adapter_type_to_looker(adapter_type, column.data_type), - 'timeframes': ['raw', 'date', 'week', 'month', 'quarter', 'year'] + "name": column.meta.dimension.name or column.name, + "type": "time", + "sql": column.meta.dimension.sql or f"${{TABLE}}.{column.name}", + "description": column.meta.dimension.description or column.description, + "datatype": map_adapter_type_to_looker(adapter_type, column.data_type), + "timeframes": ["raw", "date", "week", "month", "quarter", "year"], } -def lookml_dimension_groups_from_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): +def lookml_dimension_groups_from_model( + model: models.DbtModel, adapter_type: models.SupportedDbtAdapters +): date_times = [ lookml_date_time_dimension_group(column, adapter_type) for column in model.columns.values() - if map_adapter_type_to_looker(adapter_type, column.data_type) in looker_date_time_types + if map_adapter_type_to_looker(adapter_type, column.data_type) + in looker_date_time_types ] dates = [ lookml_date_dimension_group(column, adapter_type) for column in model.columns.values() if column.meta.dimension.enabled - and map_adapter_type_to_looker(adapter_type, column.data_type) in looker_date_types + and map_adapter_type_to_looker(adapter_type, column.data_type) + in looker_date_types ] return date_times + dates -def lookml_dimensions_from_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): +def lookml_dimensions_from_model( + model: models.DbtModel, adapter_type: models.SupportedDbtAdapters +): + compound_key = _generate_compound_primary_key_if_needed(model) + dimensions = _generate_dimensions(model, adapter_type) + if compound_key: + return dimensions + [compound_key] + return dimensions + + +def _generate_dimensions(model, adapter_type): return [ { - 'name': column.meta.dimension.name or column.name, - 'type': map_adapter_type_to_looker(adapter_type, column.data_type), - 'sql': column.meta.dimension.sql or f'${{TABLE}}.{column.name}', - 'description': column.meta.dimension.description or column.description, - **({ 'primary_key': 'yes' } if model.meta.primary_key == column.name else {}), + "name": column.meta.dimension.name or column.name, + "type": map_adapter_type_to_looker(adapter_type, column.data_type), + "sql": column.meta.dimension.sql or f"${{TABLE}}.{column.name}", + "description": column.meta.dimension.description or column.description, + **({"primary_key": "yes"} if model.meta.primary_key == column.name else {}), **( - {'value_format_name': column.meta.dimension.value_format_name.value} - if (column.meta.dimension.value_format_name - and map_adapter_type_to_looker(adapter_type, column.data_type) == 'number') + {"value_format_name": column.meta.dimension.value_format_name.value} + if ( + column.meta.dimension.value_format_name + and map_adapter_type_to_looker(adapter_type, column.data_type) + == "number" + ) else {} - ) + ), } for column in model.columns.values() if column.meta.dimension.enabled - and map_adapter_type_to_looker(adapter_type, column.data_type) in looker_scalar_types + and map_adapter_type_to_looker(adapter_type, column.data_type) + in looker_scalar_types ] +def _generate_compound_primary_key_if_needed(model: models.DbtModel) -> dict: + if model.meta.primary_key and "," in model.meta.primary_key: + concat_keys = [ + f"${{TABLE}}.{key.strip()}" for key in model.meta.primary_key.split(",") + ] + return { + "name": "primary_key", + "primary_key": "yes", + "sql": f'CONCAT({",".join(concat_keys)}) ;;', + "description": f"auto generated compound key from the columns:{model.meta.primary_key}", + } + return None + + def lookml_measure_filters(measure: models.Dbt2LookerMeasure, model: models.DbtModel): try: columns = { @@ -269,13 +322,16 @@ def lookml_measure_filters(measure: models.Dbt2LookerMeasure, model: models.DbtM } except KeyError as e: raise ValueError( - f'Model {model.unique_id} contains a measure that references a non_existent column: {e}\n' - f'Ensure that dbt model {model.unique_id} contains a column: {e}' + f"Model {model.unique_id} contains a measure that references a non_existent column: {e}\n" + f"Ensure that dbt model {model.unique_id} contains a column: {e}" ) from e - return [{ - (columns[column_name].meta.dimension.name or column_name): fexpr - for column_name, fexpr in f.items() - } for f in measure.filters] + return [ + { + (columns[column_name].meta.dimension.name or column_name): fexpr + for column_name, fexpr in f.items() + } + for f in measure.filters + ] def lookml_measures_from_model(model: models.DbtModel): @@ -283,84 +339,109 @@ def lookml_measures_from_model(model: models.DbtModel): lookml_measure(measure_name, column, measure, model) for column in model.columns.values() for measure_name, measure in { - **column.meta.measures, **column.meta.measure, **column.meta.metrics, **column.meta.metric + **column.meta.measures, + **column.meta.measure, + **column.meta.metrics, + **column.meta.metric, }.items() ] - measures.append(lookml_measure(measure_name="count", column=None, measure=models.Dbt2LookerMeasure(type=models.LookerAggregateMeasures.count, description="Default count measure"), model=None)) + measures.append( + lookml_measure( + measure_name="count", + column=None, + measure=models.Dbt2LookerMeasure( + type=models.LookerAggregateMeasures.count, + description="Default count measure", + ), + model=None, + ) + ) return measures -def lookml_measure(measure_name: str, column: models.DbtModelColumn, measure: models.Dbt2LookerMeasure, model: models.DbtModel): +def lookml_measure( + measure_name: str, + column: models.DbtModelColumn, + measure: models.Dbt2LookerMeasure, + model: models.DbtModel, +): m = { - 'name': measure_name, - 'type': measure.type.value, - 'description': measure.description or (column.description if column else None) or (f'{measure.type.value.capitalize()} of {column.name}' if column else ""), + "name": measure_name, + "type": measure.type.value, + "description": measure.description + or (column.description if column else None) + or (f"{measure.type.value.capitalize()} of {column.name}" if column else ""), } - sql = measure.sql or f'${{TABLE}}.{column.name}' if column else None + sql = measure.sql or f"${{TABLE}}.{column.name}" if column else None if sql: - m['sql'] = sql + m["sql"] = sql if measure.filters: - m['filters'] = lookml_measure_filters(measure, model) + m["filters"] = lookml_measure_filters(measure, model) if measure.value_format_name: - m['value_format_name'] = measure.value_format_name.value + m["value_format_name"] = measure.value_format_name.value return m -def lookml_view_from_dbt_model(model: models.DbtModel, adapter_type: models.SupportedDbtAdapters): +def lookml_view_from_dbt_model( + model: models.DbtModel, adapter_type: models.SupportedDbtAdapters +): lookml = { - 'view': { - 'name': model.name, - 'sql_table_name': model.relation_name, - 'dimension_groups': lookml_dimension_groups_from_model(model, adapter_type), - 'dimensions': lookml_dimensions_from_model(model, adapter_type), - 'measures': lookml_measures_from_model(model), + "view": { + "name": model.name, + "sql_table_name": model.relation_name, + "dimension_groups": lookml_dimension_groups_from_model(model, adapter_type), + "dimensions": lookml_dimensions_from_model(model, adapter_type), + "measures": lookml_measures_from_model(model), } } logging.debug( - f'Created view from model %s with %d measures, %d dimensions', + f"Created view from model %s with %d measures, %d dimensions", model.name, - len(lookml['view']['measures']), - len(lookml['view']['dimensions']), + len(lookml["view"]["measures"]), + len(lookml["view"]["dimensions"]), ) contents = lkml.dump(lookml) - filename = f'{model.name}.view.lkml' + filename = f"{model.name}.view.lkml" return models.LookViewFile(filename=filename, contents=contents) + def lookml_view_from_dbt_exposure(model: models.DbtModel, dbt_project_name: str): pass + # def _convert_all_refs_to_relation_name(manifest: models.DbtManifest, project_name: str, ref_str : str) -> str: # reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" # matches = re.findall(reg_ref, ref_str) # if not matches or len(matches) == 0: # return None - + # ref_str = ref_str.replace(" ", "") # for group_value in matches: # model_loopup = f"model.{project_name}.{group_value.strip()}" -# model_node = manifest.nodes.get(model_loopup) +# model_node = manifest.nodes.get(model_loopup) # ref_str = ref_str.replace(f"ref('{group_value}')",model_node.relation_name) # ref_str = ref_str.replace("="," = ") - + # return ref_str - -def _convert_all_refs_to_relation_name(ref_str : str) -> str: + +def _convert_all_refs_to_relation_name(ref_str: str) -> str: reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" matches = re.findall(reg_ref, ref_str) if not matches or len(matches) == 0: return ref_str - + ref_str = ref_str.replace(" ", "") for group_value in matches: - ref_str = ref_str.replace(f"ref('{group_value}')",group_value) - ref_str = ref_str.replace("="," = ") + ref_str = ref_str.replace(f"ref('{group_value}')", group_value) + ref_str = ref_str.replace("=", " = ") # in case of a compound expression with logical operator , i.e : ${join1} and ${join2} - we would like # to add a space between the logical operator so all elements between }...$ are captured and added a pre and post space - ref_str=re.sub(r'}(.*?)\$', r'} \1 $',ref_str) + ref_str = re.sub(r"}(.*?)\$", r"} \1 $", ref_str) return ref_str -def _extract_all_refs(ref_str : str) -> list[str]: + +def _extract_all_refs(ref_str: str) -> list[str]: reg_ref = r"ref\(\s*\'(\w*)\'\s*\)" matches = re.findall(reg_ref, ref_str) if not matches or len(matches) == 0: @@ -369,59 +450,62 @@ def _extract_all_refs(ref_str : str) -> list[str]: ref_str = ref_str.replace(" ", "") for group_value in matches: refs.append(group_value) - + return refs # def get_view_models_from_exposure() -def lookml_model_from_dbt_model(manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str): + +def lookml_model_from_dbt_model( + manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str +): # Note: assumes view names = model names # and models are unique across dbt packages in project lookml = { - 'connection': dbt_project_name, - 'include': 'views/*', - 'explore': { - 'name': model.name, - 'description': model.description, - 'joins': [ + "connection": dbt_project_name, + "include": "views/*", + "explore": { + "name": model.name, + "description": model.description, + "joins": [ { - 'name': join.join, - 'type': join.type.value, - 'relationship': join.relationship.value, - 'sql_on': join.sql_on, + "name": join.join, + "type": join.type.value, + "relationship": join.relationship.value, + "sql_on": join.sql_on, } for join in model.meta.joins - ] - } + ], + }, } if model.meta.looker: - relation_name = _convert_all_refs_to_relation_name(model.meta.looker.explore_name) + relation_name = _convert_all_refs_to_relation_name( + model.meta.looker.explore_name + ) if not relation_name: logging.error(f"Invalid ref {model.meta.looker.explore_name}") - lookml = { - 'connection': dbt_project_name, - 'include': 'views/*', - 'explore': { - 'name': relation_name, - 'description': model.description, - 'joins': [ + "connection": dbt_project_name, + "include": "views/*", + "explore": { + "name": relation_name, + "description": model.description, + "joins": [ { - 'name': _convert_all_refs_to_relation_name(join.join), - 'type': join.type.value, - 'relationship': join.relationship.value, - 'sql_on': _convert_all_refs_to_relation_name(join.sql_on), + "name": _convert_all_refs_to_relation_name(join.join), + "type": join.type.value, + "relationship": join.relationship.value, + "sql_on": _convert_all_refs_to_relation_name(join.sql_on), } - for join in model.meta.looker.joins - ] - } + for join in model.meta.looker.joins + ], + }, } - model_loopup = f"exposure.{dbt_project_name}.{model.name}" - exposurel_node = manifest.exposures.get(model_loopup) + model_loopup = f"exposure.{dbt_project_name}.{model.name}" + exposurel_node = manifest.exposures.get(model_loopup) file_name = Path(exposurel_node.original_file_path).stem - filename = f'{file_name}.model.lkml' - contents = lkml.dump(lookml) + filename = f"{file_name}.model.lkml" + contents = lkml.dump(lookml) return models.LookModelFile(filename=filename, contents=contents) - From 9ef8e177073b5260cb2736b4661a685b6a869436 Mon Sep 17 00:00:00 2001 From: chaimt Date: Tue, 19 Jul 2022 12:22:40 +0000 Subject: [PATCH 57/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 298133b..8c310da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.21" +version = "0.9.22" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 32a3b98a9aae3ce1150640c592292b0b90192043 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 20 Jul 2022 15:44:32 +0300 Subject: [PATCH 58/87] fix primary key --- tests/yoda_dbt2looker/test_generator.py | 2 +- yoda_dbt2looker/generator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/yoda_dbt2looker/test_generator.py b/tests/yoda_dbt2looker/test_generator.py index 79d44c0..8312e6f 100644 --- a/tests/yoda_dbt2looker/test_generator.py +++ b/tests/yoda_dbt2looker/test_generator.py @@ -225,7 +225,7 @@ def test__generate_compound_primary_key_compound_return_dict(): assert generator._generate_compound_primary_key_if_needed(model) == { "name": "primary_key", "primary_key": "yes", - "sql": 'CONCAT(${TABLE}.col1,${TABLE}.col2) ;;', + "sql": 'CONCAT(${TABLE}.col1,${TABLE}.col2) ', "description": f"auto generated compound key from the columns:col1 , col2", } diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 516122b..c30d3c6 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -307,7 +307,7 @@ def _generate_compound_primary_key_if_needed(model: models.DbtModel) -> dict: return { "name": "primary_key", "primary_key": "yes", - "sql": f'CONCAT({",".join(concat_keys)}) ;;', + "sql": f'CONCAT({",".join(concat_keys)}) ', "description": f"auto generated compound key from the columns:{model.meta.primary_key}", } return None From 95df7dbad3ee4c1a79636a95fb6fb23407580a5a Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 20 Jul 2022 15:45:57 +0300 Subject: [PATCH 59/87] fix primary key --- yoda_dbt2looker/generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index c30d3c6..0eb97fb 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -1,6 +1,7 @@ import logging import re from pathlib import Path +from typing import Optional import lkml from . import models @@ -299,7 +300,7 @@ def _generate_dimensions(model, adapter_type): ] -def _generate_compound_primary_key_if_needed(model: models.DbtModel) -> dict: +def _generate_compound_primary_key_if_needed(model: models.DbtModel) -> Optional[dict]: if model.meta.primary_key and "," in model.meta.primary_key: concat_keys = [ f"${{TABLE}}.{key.strip()}" for key in model.meta.primary_key.split(",") From 2b428fcaa42fc00ced695f39c9dd2a2bef400670 Mon Sep 17 00:00:00 2001 From: chaimt Date: Wed, 20 Jul 2022 15:44:09 +0000 Subject: [PATCH 60/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8c310da..e68d0b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.22" +version = "0.9.23" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 7631ebce6f2359acd84a7b5f3c0a8530065d72bb Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Sun, 24 Jul 2022 01:48:55 +0300 Subject: [PATCH 61/87] remove metrics --- yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json index c804e72..a211785 100644 --- a/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json @@ -332,7 +332,7 @@ } }, "patternProperties": { - "^measures?|metrics?$": { + "^measures?$": { "type": "object", "description": "Object containing measures definitions. Keys ust be valid measure names and unique in this model.", "patternProperties": { From 6cce858f52163ece805f712f88f00f5231a0fb62 Mon Sep 17 00:00:00 2001 From: chaimt Date: Sat, 23 Jul 2022 22:50:08 +0000 Subject: [PATCH 62/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e68d0b3..c189c1b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.23" +version = "0.9.24" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 687c6060854b349b744dd11cefbd4ff7d6ccb8b1 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Thu, 28 Jul 2022 17:02:20 +0300 Subject: [PATCH 63/87] move measure under looker --- tests/yoda_dbt2looker/test_generator.py | 16 +++++++++++++++- yoda_dbt2looker/generator.py | 1 + yoda_dbt2looker/models.py | 8 ++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/tests/yoda_dbt2looker/test_generator.py b/tests/yoda_dbt2looker/test_generator.py index 8312e6f..e736612 100644 --- a/tests/yoda_dbt2looker/test_generator.py +++ b/tests/yoda_dbt2looker/test_generator.py @@ -1,4 +1,4 @@ -from yoda_dbt2looker import generator +from yoda_dbt2looker import generator, models from unittest.mock import MagicMock, patch, call @@ -254,3 +254,17 @@ def test_lookml_dimensions_from_model_has_compound_key_return_joined_list(genera assert generate_dimensions_mock.mock_calls == [call(model , adapter_type)] assert generate_compound_primary_key_if_needed_mock.mock_calls[0] == call(model) +def test_looker_inner_on_column_meta(): + columns = dict() + columns["col_name"] = models.DbtModelColumn(name="test", description="", meta=models.DbtModelColumnMeta()) + columns["col_name"].meta.looker = models.Dbt2InnerLookerMeta() + + columns["col_name"].meta.looker.measures = {} + columns["col_name"].meta.looker.measures["one"] = models.Dbt2LookerMeasure(type = models.LookerAggregateMeasures.average, description="test measure", sql="a=b") + + model_meta = models.DbtModelMeta() + model: models.DbtModel = models.DbtModel(unique_id="a", resource_type="model", relation_name="", schema="", name="test", description="", tags=[], columns=columns, meta= model_meta) + model.name = "test" + + value = generator.lookml_measures_from_model(model) + assert value == [{'name': 'one', 'type': 'average', 'description': 'test measure', 'sql': 'a=b'}, {'name': 'count', 'type': 'count', 'description': 'Default count measure'}] diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 0eb97fb..617f801 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -340,6 +340,7 @@ def lookml_measures_from_model(model: models.DbtModel): lookml_measure(measure_name, column, measure, model) for column in model.columns.values() for measure_name, measure in { + **column.meta.looker.measures, **column.meta.measures, **column.meta.measure, **column.meta.metrics, diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 1d32f95..9edd2cc 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -96,7 +96,15 @@ class Dbt2LookerDimension(BaseModel): value_format_name: Optional[LookerValueFormatName] +class Dbt2InnerLookerMeta(BaseModel): + measures: Optional[Dict[str, Dbt2LookerMeasure]] = {} + measure: Optional[Dict[str, Dbt2LookerMeasure]] = {} + metrics: Optional[Dict[str, Dbt2LookerMeasure]] = {} + metric: Optional[Dict[str, Dbt2LookerMeasure]] = {} + dimension: Optional[Dbt2LookerDimension] = Dbt2LookerDimension() + class Dbt2LookerMeta(BaseModel): + looker: Optional[Dbt2InnerLookerMeta] = Dbt2InnerLookerMeta() measures: Optional[Dict[str, Dbt2LookerMeasure]] = {} measure: Optional[Dict[str, Dbt2LookerMeasure]] = {} metrics: Optional[Dict[str, Dbt2LookerMeasure]] = {} From d164ed1c06b8b0ce9a64c81d721df5a4b436479e Mon Sep 17 00:00:00 2001 From: chaimt Date: Sun, 31 Jul 2022 06:12:36 +0000 Subject: [PATCH 64/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c189c1b..1f141f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.24" +version = "0.9.25" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 2e18816232de0cece23e33a37bc8858e6bc5866b Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Mon, 1 Aug 2022 09:30:11 +0300 Subject: [PATCH 65/87] rename explore_name to main_model --- tests/yoda_dbt2looker/test_generator.py | 16 ++++++++++++++++ yoda_dbt2looker/generator.py | 24 +++++++++++++----------- yoda_dbt2looker/models.py | 2 +- yoda_dbt2looker/parser.py | 2 +- 4 files changed, 31 insertions(+), 13 deletions(-) diff --git a/tests/yoda_dbt2looker/test_generator.py b/tests/yoda_dbt2looker/test_generator.py index e736612..c9992ab 100644 --- a/tests/yoda_dbt2looker/test_generator.py +++ b/tests/yoda_dbt2looker/test_generator.py @@ -268,3 +268,19 @@ def test_looker_inner_on_column_meta(): value = generator.lookml_measures_from_model(model) assert value == [{'name': 'one', 'type': 'average', 'description': 'test measure', 'sql': 'a=b'}, {'name': 'count', 'type': 'count', 'description': 'Default count measure'}] + +def test_main_explorer(): + columns = dict() + columns["col_name"] = models.DbtModelColumn(name="test", description="", meta=models.DbtModelColumnMeta()) + columns["col_name"].meta.looker = models.Dbt2InnerLookerMeta() + + columns["col_name"].meta.looker.measures = {"one": models.Dbt2LookerMeasure(type = models.LookerAggregateMeasures.average, description="test measure", sql="a=b")} + + model_meta = models.DbtModelMeta() + model_meta.looker = models.Dbt2MetaLookerModelMeta(main_model = "ref('main_abc')") + model_meta.looker.joins = [models.Dbt2LookerExploreJoin(join = "test_join", sql_on="field")] + + model: models.DbtModel = models.DbtModel(unique_id="a", resource_type="model", relation_name="", schema="", name="test", description="", tags=[], columns=columns, meta= model_meta) + model.name = "test" + value = generator.lookml_model_data_from_dbt_model(model, "project") + assert value == 'connection: "project"\ninclude: "views/*"\n\nexplore: main_abc {\n description: ""\n\n join: test_join {\n type: left_outer\n relationship: many_to_one\n sql_on: field ;;\n }\n}' diff --git a/yoda_dbt2looker/generator.py b/yoda_dbt2looker/generator.py index 617f801..c80c6e5 100644 --- a/yoda_dbt2looker/generator.py +++ b/yoda_dbt2looker/generator.py @@ -456,11 +456,8 @@ def _extract_all_refs(ref_str: str) -> list[str]: return refs -# def get_view_models_from_exposure() - - -def lookml_model_from_dbt_model( - manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str +def lookml_model_data_from_dbt_model( + model: models.DbtModel, dbt_project_name: str ): # Note: assumes view names = model names # and models are unique across dbt packages in project @@ -483,10 +480,10 @@ def lookml_model_from_dbt_model( } if model.meta.looker: relation_name = _convert_all_refs_to_relation_name( - model.meta.looker.explore_name + model.meta.looker.main_model ) if not relation_name: - logging.error(f"Invalid ref {model.meta.looker.explore_name}") + logging.error(f"Invalid ref {model.meta.looker.main_model}") lookml = { "connection": dbt_project_name, @@ -505,9 +502,14 @@ def lookml_model_from_dbt_model( ], }, } + return lkml.dump(lookml) + +def lookml_model_from_dbt_model( + manifest: models.DbtManifest, model: models.DbtModel, dbt_project_name: str +): + contents = lookml_model_data_from_dbt_model(model, dbt_project_name) model_loopup = f"exposure.{dbt_project_name}.{model.name}" - exposurel_node = manifest.exposures.get(model_loopup) - file_name = Path(exposurel_node.original_file_path).stem - filename = f"{file_name}.model.lkml" - contents = lkml.dump(lookml) + exposure_node = manifest.exposures.get(model_loopup) + file_name = Path(exposure_node.original_file_path).stem + filename = f"{file_name}.model.lkml" return models.LookModelFile(filename=filename, contents=contents) diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index 9edd2cc..f09a364 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -153,7 +153,7 @@ class Dbt2LookerExploreJoin(BaseModel): class Dbt2MetaLookerModelMeta(BaseModel): joins: Optional[List[Dbt2LookerExploreJoin]] = [] - explore_name: str + main_model: str class Dbt2LookerModelMeta(BaseModel): looker: Optional[Dbt2MetaLookerModelMeta] diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index efce3ec..0362d15 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -104,7 +104,7 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, dbt_project_name: exposure_model_views = set() for exposure in typed_dbt_exposures: - exposure_model_views.add(_extract_all_refs(exposure.meta.looker.explore_name)[0]) + exposure_model_views.add(_extract_all_refs(exposure.meta.looker.main_model)[0]) for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): exposure_model_views.add(item) From d80b30258ea0661250ba9f98374eae1cca5dc4b1 Mon Sep 17 00:00:00 2001 From: chaimt Date: Mon, 1 Aug 2022 11:49:06 +0000 Subject: [PATCH 66/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 1f141f1..d3c1baa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.25" +version = "0.9.26" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 12d0b119a66290157d3a1b6ced4952d7f58615e2 Mon Sep 17 00:00:00 2001 From: dkruh36 <101973979+dkruh36@users.noreply.github.com> Date: Tue, 2 Aug 2022 15:41:03 +0300 Subject: [PATCH 67/87] update typing-extention to 4.1.1 --- poetry.lock | 53 ++++++++++++++++++++------------------------------ pyproject.toml | 2 +- 2 files changed, 22 insertions(+), 33 deletions(-) diff --git a/poetry.lock b/poetry.lock index 1ace9ed..c61aaef 100644 --- a/poetry.lock +++ b/poetry.lock @@ -8,17 +8,17 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" [[package]] name = "attrs" -version = "21.4.0" +version = "22.1.0" description = "Classes Without Boilerplate" category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +python-versions = ">=3.5" [package.extras] -dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit", "cloudpickle"] +dev = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "mypy (>=0.900,!=0.940)", "pytest-mypy-plugins", "zope.interface", "furo", "sphinx", "sphinx-notfound-page", "pre-commit", "cloudpickle"] docs = ["furo", "sphinx", "zope.interface", "sphinx-notfound-page"] -tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "zope.interface", "cloudpickle"] -tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "six", "mypy", "pytest-mypy-plugins", "cloudpickle"] +tests = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "mypy (>=0.900,!=0.940)", "pytest-mypy-plugins", "zope.interface", "cloudpickle"] +tests_no_zope = ["coverage[toml] (>=5.0.2)", "hypothesis", "pympler", "pytest (>=4.3.0)", "mypy (>=0.900,!=0.940)", "pytest-mypy-plugins", "cloudpickle"] [[package]] name = "colorama" @@ -30,7 +30,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [[package]] name = "distlib" -version = "0.3.4" +version = "0.3.5" description = "Distribution utilities" category = "dev" optional = false @@ -258,62 +258,55 @@ testing = ["flaky (>=3.4.0)", "freezegun (>=0.3.11)", "pytest (>=4.0.0)", "pytes [[package]] name = "typing-extensions" -version = "3.10.0.2" -description = "Backported and Experimental Type Hints for Python 3.5+" +version = "4.3.0" +description = "Backported and Experimental Type Hints for Python 3.7+" category = "main" optional = false -python-versions = "*" +python-versions = ">=3.7" [[package]] name = "virtualenv" -version = "20.15.1" +version = "20.16.2" description = "Virtual Python Environment builder" category = "dev" optional = false -python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" +python-versions = ">=3.6" [package.dependencies] distlib = ">=0.3.1,<1" filelock = ">=3.2,<4" importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} platformdirs = ">=2,<3" -six = ">=1.9.0,<2" [package.extras] docs = ["proselint (>=0.10.2)", "sphinx (>=3)", "sphinx-argparse (>=0.2.5)", "sphinx-rtd-theme (>=0.4.3)", "towncrier (>=21.3)"] -testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", "pytest (>=4)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.1)", "pytest-mock (>=2)", "pytest-randomly (>=1)", "pytest-timeout (>=1)", "packaging (>=20.0)"] +testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", "packaging (>=20.0)", "pytest (>=4)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.1)", "pytest-mock (>=2)", "pytest-randomly (>=1)", "pytest-timeout (>=1)"] [[package]] name = "zipp" -version = "3.8.0" +version = "3.8.1" description = "Backport of pathlib-compatible object wrapper for zip files" category = "main" optional = false python-versions = ">=3.7" [package.extras] -docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"] -testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.0.1)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"] +docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "jaraco.tidelift (>=1.4)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "jaraco.itertools", "func-timeout", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"] [metadata] lock-version = "1.1" python-versions = ">=3.7" -content-hash = "52e3927fd949f9b24313d79d3c2a6fa1218eec1c767c09e6a254eff10902e09a" +content-hash = "80bab95fcaaf9475054395b0c78a64bc27cd7df50bbef235974024aa8eef4226" [metadata.files] atomicwrites = [] -attrs = [ - {file = "attrs-21.4.0-py2.py3-none-any.whl", hash = "sha256:2d27e3784d7a565d36ab851fe94887c5eccd6a463168875832a1be79c82828b4"}, - {file = "attrs-21.4.0.tar.gz", hash = "sha256:626ba8234211db98e869df76230a137c4c40a12d72445c45d5f5b716f076e2fd"}, -] +attrs = [] colorama = [ {file = "colorama-0.4.5-py2.py3-none-any.whl", hash = "sha256:854bf444933e37f5824ae7bfc1e98d5bce2ebe4160d46b5edf346a89358e99da"}, {file = "colorama-0.4.5.tar.gz", hash = "sha256:e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4"}, ] -distlib = [ - {file = "distlib-0.3.4-py2.py3-none-any.whl", hash = "sha256:6564fe0a8f51e734df6333d08b8b94d4ea8ee6b99b5ed50613f731fd4089f34b"}, - {file = "distlib-0.3.4.zip", hash = "sha256:e4b58818180336dc9c529bfb9a0b58728ffc09ad92027a3f30b7cd91e3458579"}, -] +distlib = [] filelock = [] importlib-metadata = [ {file = "importlib_metadata-4.12.0-py3-none-any.whl", hash = "sha256:7401a975809ea1fdc658c3aa4f78cc2195a0e019c5cbc4c06122884e9ae80c23"}, @@ -460,12 +453,8 @@ tomli = [ ] tox = [] typing-extensions = [ - {file = "typing_extensions-3.10.0.2-py2-none-any.whl", hash = "sha256:d8226d10bc02a29bcc81df19a26e56a9647f8b0a6d4a83924139f4a8b01f17b7"}, - {file = "typing_extensions-3.10.0.2-py3-none-any.whl", hash = "sha256:f1d25edafde516b146ecd0613dabcc61409817af4766fbbcfb8d1ad4ec441a34"}, - {file = "typing_extensions-3.10.0.2.tar.gz", hash = "sha256:49f75d16ff11f1cd258e1b988ccff82a3ca5570217d7ad8c5f48205dd99a677e"}, + {file = "typing_extensions-4.3.0-py3-none-any.whl", hash = "sha256:25642c956049920a5aa49edcdd6ab1e06d7e5d467fc00e0506c44ac86fbfca02"}, + {file = "typing_extensions-4.3.0.tar.gz", hash = "sha256:e6d2677a32f47fc7eb2795db1dd15c1f34eff616bcaf2cfb5e997f854fa1c4a6"}, ] virtualenv = [] -zipp = [ - {file = "zipp-3.8.0-py3-none-any.whl", hash = "sha256:c4f6e5bbf48e74f7a38e7cc5b0480ff42b0ae5178957d564d18932525d5cf099"}, - {file = "zipp-3.8.0.tar.gz", hash = "sha256:56bf8aadb83c24db6c4b577e13de374ccfb67da2078beba1d037c17980bf43ad"}, -] +zipp = [] diff --git a/pyproject.toml b/pyproject.toml index d3c1baa..e285bef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ lkml = "^1.1.0" pydantic = "^1.8.1" PyYAML = "^5.4.1" jsonschema = "^3.2.0" -typing-extensions = "^3.10.0" +typing-extensions = "^4.1.1" importlib-metadata = "^4.8.1" From 055e05c81bb13026cb2385e0e89e0594157192f0 Mon Sep 17 00:00:00 2001 From: chaimt Date: Tue, 2 Aug 2022 12:43:21 +0000 Subject: [PATCH 68/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e285bef..a50b554 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.26" +version = "0.9.27" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 1f567afb2df46472dbcb62c53cd9a6c670414dfb Mon Sep 17 00:00:00 2001 From: Matan Elberg Date: Thu, 4 Aug 2022 12:57:58 +0300 Subject: [PATCH 69/87] Update tox.ini --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 64c895f..fc8a424 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ python = [testenv:tests] whitelist_externals = poetry -# install pytest in the virtualenv where commands will be executed +# install pytest in the virtualenv where commands will be executed... commands = poetry install -v - poetry run pytest {posargs} tests \ No newline at end of file + poetry run pytest {posargs} tests From 05f91af73b3a516242466aecdec249a8b4bbe3b9 Mon Sep 17 00:00:00 2001 From: matane159 Date: Thu, 4 Aug 2022 09:58:57 +0000 Subject: [PATCH 70/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a50b554..209e10d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.27" +version = "0.9.28" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 85d091ea3349205b8b836be8a6930fd5b2e2b1ac Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 31 Aug 2022 16:41:26 +0300 Subject: [PATCH 71/87] update versions --- poetry.lock | 248 ++++++++++++++----------------------------------- pyproject.toml | 12 +-- 2 files changed, 77 insertions(+), 183 deletions(-) diff --git a/poetry.lock b/poetry.lock index c61aaef..8e4d482 100644 --- a/poetry.lock +++ b/poetry.lock @@ -30,7 +30,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [[package]] name = "distlib" -version = "0.3.5" +version = "0.3.6" description = "Distribution utilities" category = "dev" optional = false @@ -38,15 +38,15 @@ python-versions = "*" [[package]] name = "filelock" -version = "3.7.1" +version = "3.8.0" description = "A platform independent file lock." category = "dev" optional = false python-versions = ">=3.7" [package.extras] -docs = ["furo (>=2021.8.17b43)", "sphinx (>=4.1)", "sphinx-autodoc-typehints (>=1.12)"] -testing = ["covdefaults (>=1.2.0)", "coverage (>=4)", "pytest (>=4)", "pytest-cov", "pytest-timeout (>=1.4.2)"] +docs = ["furo (>=2022.6.21)", "sphinx (>=5.1.1)", "sphinx-autodoc-typehints (>=1.19.1)"] +testing = ["covdefaults (>=2.2)", "coverage (>=6.4.2)", "pytest (>=7.1.2)", "pytest-cov (>=3)", "pytest-timeout (>=2.1)"] [[package]] name = "importlib-metadata" @@ -65,6 +65,21 @@ docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)"] perf = ["ipython"] testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "packaging", "pyfakefs", "flufl.flake8", "pytest-perf (>=0.9.2)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)", "importlib-resources (>=1.3)"] +[[package]] +name = "importlib-resources" +version = "5.9.0" +description = "Read resources from Python packages" +category = "main" +optional = false +python-versions = ">=3.7" + +[package.dependencies] +zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} + +[package.extras] +docs = ["sphinx", "jaraco.packaging (>=9)", "rst.linker (>=1.9)", "jaraco.tidelift (>=1.4)"] +testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-black (>=0.3.7)", "pytest-mypy (>=0.9.1)"] + [[package]] name = "iniconfig" version = "1.1.1" @@ -75,21 +90,23 @@ python-versions = "*" [[package]] name = "jsonschema" -version = "3.2.0" +version = "4.15.0" description = "An implementation of JSON Schema validation for Python" category = "main" optional = false -python-versions = "*" +python-versions = ">=3.7" [package.dependencies] attrs = ">=17.4.0" importlib-metadata = {version = "*", markers = "python_version < \"3.8\""} -pyrsistent = ">=0.14.0" -six = ">=1.11.0" +importlib-resources = {version = ">=1.4.0", markers = "python_version < \"3.9\""} +pkgutil-resolve-name = {version = ">=1.3.10", markers = "python_version < \"3.9\""} +pyrsistent = ">=0.14.0,<0.17.0 || >0.17.0,<0.17.1 || >0.17.1,<0.17.2 || >0.17.2" +typing-extensions = {version = "*", markers = "python_version < \"3.8\""} [package.extras] -format = ["idna", "jsonpointer (>1.13)", "rfc3987", "strict-rfc3339", "webcolors"] -format_nongpl = ["idna", "jsonpointer (>1.13)", "webcolors", "rfc3986-validator (>0.1.0)", "rfc3339-validator"] +format = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3987", "uri-template", "webcolors (>=1.11)"] +format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3986-validator (>0.1.0)", "uri-template", "webcolors (>=1.11)"] [[package]] name = "lkml" @@ -110,6 +127,14 @@ python-versions = ">=3.6" [package.dependencies] pyparsing = ">=2.0.2,<3.0.5 || >3.0.5" +[[package]] +name = "pkgutil-resolve-name" +version = "1.3.10" +description = "Resolve a name to an object." +category = "main" +optional = false +python-versions = ">=3.6" + [[package]] name = "platformdirs" version = "2.5.2" @@ -134,8 +159,8 @@ python-versions = ">=3.6" importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} [package.extras] -dev = ["pre-commit", "tox"] -testing = ["pytest", "pytest-benchmark"] +testing = ["pytest-benchmark", "pytest"] +dev = ["tox", "pre-commit"] [[package]] name = "py" @@ -147,14 +172,14 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" [[package]] name = "pydantic" -version = "1.9.1" +version = "1.10.1" description = "Data validation and settings management using python type hints" category = "main" optional = false -python-versions = ">=3.6.1" +python-versions = ">=3.7" [package.dependencies] -typing-extensions = ">=3.7.4.3" +typing-extensions = ">=4.1.0" [package.extras] dotenv = ["python-dotenv (>=0.10.4)"] @@ -203,17 +228,17 @@ testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2. [[package]] name = "pyyaml" -version = "5.4.1" +version = "6.0" description = "YAML parser and emitter for Python" category = "main" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" +python-versions = ">=3.6" [[package]] name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" -category = "main" +category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" @@ -266,21 +291,21 @@ python-versions = ">=3.7" [[package]] name = "virtualenv" -version = "20.16.2" +version = "20.16.4" description = "Virtual Python Environment builder" category = "dev" optional = false python-versions = ">=3.6" [package.dependencies] -distlib = ">=0.3.1,<1" -filelock = ">=3.2,<4" -importlib-metadata = {version = ">=0.12", markers = "python_version < \"3.8\""} -platformdirs = ">=2,<3" +distlib = ">=0.3.5,<1" +filelock = ">=3.4.1,<4" +importlib-metadata = {version = ">=4.8.3", markers = "python_version < \"3.8\""} +platformdirs = ">=2.4,<3" [package.extras] -docs = ["proselint (>=0.10.2)", "sphinx (>=3)", "sphinx-argparse (>=0.2.5)", "sphinx-rtd-theme (>=0.4.3)", "towncrier (>=21.3)"] -testing = ["coverage (>=4)", "coverage-enable-subprocess (>=1)", "flaky (>=3)", "packaging (>=20.0)", "pytest (>=4)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.1)", "pytest-mock (>=2)", "pytest-randomly (>=1)", "pytest-timeout (>=1)"] +docs = ["proselint (>=0.13)", "sphinx (>=5.1.1)", "sphinx-argparse (>=0.3.1)", "sphinx-rtd-theme (>=1)", "towncrier (>=21.9)"] +testing = ["coverage (>=6.2)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=21.3)", "pytest (>=7.0.1)", "pytest-env (>=0.6.2)", "pytest-freezegun (>=0.4.2)", "pytest-mock (>=3.6.1)", "pytest-randomly (>=3.10.3)", "pytest-timeout (>=2.1)"] [[package]] name = "zipp" @@ -297,164 +322,33 @@ testing = ["pytest (>=6)", "pytest-checkdocs (>=2.4)", "pytest-flake8", "pytest- [metadata] lock-version = "1.1" python-versions = ">=3.7" -content-hash = "80bab95fcaaf9475054395b0c78a64bc27cd7df50bbef235974024aa8eef4226" +content-hash = "74e89ee88550ad1b99a3b6450e30aa295cb3c1d21322e3faffed7210ffa17990" [metadata.files] atomicwrites = [] attrs = [] -colorama = [ - {file = "colorama-0.4.5-py2.py3-none-any.whl", hash = "sha256:854bf444933e37f5824ae7bfc1e98d5bce2ebe4160d46b5edf346a89358e99da"}, - {file = "colorama-0.4.5.tar.gz", hash = "sha256:e6c6b4334fc50988a639d9b98aa429a0b57da6e17b9a44f0451f930b6967b7a4"}, -] +colorama = [] distlib = [] filelock = [] -importlib-metadata = [ - {file = "importlib_metadata-4.12.0-py3-none-any.whl", hash = "sha256:7401a975809ea1fdc658c3aa4f78cc2195a0e019c5cbc4c06122884e9ae80c23"}, - {file = "importlib_metadata-4.12.0.tar.gz", hash = "sha256:637245b8bab2b6502fcbc752cc4b7a6f6243bb02b31c5c26156ad103d3d45670"}, -] -iniconfig = [ - {file = "iniconfig-1.1.1-py2.py3-none-any.whl", hash = "sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3"}, - {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"}, -] -jsonschema = [ - {file = "jsonschema-3.2.0-py2.py3-none-any.whl", hash = "sha256:4e5b3cf8216f577bee9ce139cbe72eca3ea4f292ec60928ff24758ce626cd163"}, - {file = "jsonschema-3.2.0.tar.gz", hash = "sha256:c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a"}, -] -lkml = [ - {file = "lkml-1.2.0-py2.py3-none-any.whl", hash = "sha256:20b126e5a4ecef2217f9c21ff47e5354f672d76995038b039984ae5deb3e95ca"}, - {file = "lkml-1.2.0.tar.gz", hash = "sha256:ba31ca4749a0f749604331ff5fc29c586c9d9240251dd3232e46e283edde1d33"}, -] -packaging = [ - {file = "packaging-21.3-py3-none-any.whl", hash = "sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522"}, - {file = "packaging-21.3.tar.gz", hash = "sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"}, -] -platformdirs = [ - {file = "platformdirs-2.5.2-py3-none-any.whl", hash = "sha256:027d8e83a2d7de06bbac4e5ef7e023c02b863d7ea5d079477e722bb41ab25788"}, - {file = "platformdirs-2.5.2.tar.gz", hash = "sha256:58c8abb07dcb441e6ee4b11d8df0ac856038f944ab98b7be6b27b2a3c7feef19"}, -] -pluggy = [ - {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, - {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, -] -py = [ - {file = "py-1.11.0-py2.py3-none-any.whl", hash = "sha256:607c53218732647dff4acdfcd50cb62615cedf612e72d1724fb1a0cc6405b378"}, - {file = "py-1.11.0.tar.gz", hash = "sha256:51c75c4126074b472f746a24399ad32f6053d1b34b68d2fa41e558e6f4a98719"}, -] -pydantic = [ - {file = "pydantic-1.9.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c8098a724c2784bf03e8070993f6d46aa2eeca031f8d8a048dff277703e6e193"}, - {file = "pydantic-1.9.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c320c64dd876e45254bdd350f0179da737463eea41c43bacbee9d8c9d1021f11"}, - {file = "pydantic-1.9.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:18f3e912f9ad1bdec27fb06b8198a2ccc32f201e24174cec1b3424dda605a310"}, - {file = "pydantic-1.9.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c11951b404e08b01b151222a1cb1a9f0a860a8153ce8334149ab9199cd198131"}, - {file = "pydantic-1.9.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8bc541a405423ce0e51c19f637050acdbdf8feca34150e0d17f675e72d119580"}, - {file = "pydantic-1.9.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:e565a785233c2d03724c4dc55464559639b1ba9ecf091288dd47ad9c629433bd"}, - {file = "pydantic-1.9.1-cp310-cp310-win_amd64.whl", hash = "sha256:a4a88dcd6ff8fd47c18b3a3709a89adb39a6373f4482e04c1b765045c7e282fd"}, - {file = "pydantic-1.9.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:447d5521575f18e18240906beadc58551e97ec98142266e521c34968c76c8761"}, - {file = "pydantic-1.9.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:985ceb5d0a86fcaa61e45781e567a59baa0da292d5ed2e490d612d0de5796918"}, - {file = "pydantic-1.9.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:059b6c1795170809103a1538255883e1983e5b831faea6558ef873d4955b4a74"}, - {file = "pydantic-1.9.1-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:d12f96b5b64bec3f43c8e82b4aab7599d0157f11c798c9f9c528a72b9e0b339a"}, - {file = "pydantic-1.9.1-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:ae72f8098acb368d877b210ebe02ba12585e77bd0db78ac04a1ee9b9f5dd2166"}, - {file = "pydantic-1.9.1-cp36-cp36m-win_amd64.whl", hash = "sha256:79b485767c13788ee314669008d01f9ef3bc05db9ea3298f6a50d3ef596a154b"}, - {file = "pydantic-1.9.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:494f7c8537f0c02b740c229af4cb47c0d39840b829ecdcfc93d91dcbb0779892"}, - {file = "pydantic-1.9.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f0f047e11febe5c3198ed346b507e1d010330d56ad615a7e0a89fae604065a0e"}, - {file = "pydantic-1.9.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:969dd06110cb780da01336b281f53e2e7eb3a482831df441fb65dd30403f4608"}, - {file = "pydantic-1.9.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:177071dfc0df6248fd22b43036f936cfe2508077a72af0933d0c1fa269b18537"}, - {file = "pydantic-1.9.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:9bcf8b6e011be08fb729d110f3e22e654a50f8a826b0575c7196616780683380"}, - {file = "pydantic-1.9.1-cp37-cp37m-win_amd64.whl", hash = "sha256:a955260d47f03df08acf45689bd163ed9df82c0e0124beb4251b1290fa7ae728"}, - {file = "pydantic-1.9.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9ce157d979f742a915b75f792dbd6aa63b8eccaf46a1005ba03aa8a986bde34a"}, - {file = "pydantic-1.9.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:0bf07cab5b279859c253d26a9194a8906e6f4a210063b84b433cf90a569de0c1"}, - {file = "pydantic-1.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d93d4e95eacd313d2c765ebe40d49ca9dd2ed90e5b37d0d421c597af830c195"}, - {file = "pydantic-1.9.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1542636a39c4892c4f4fa6270696902acb186a9aaeac6f6cf92ce6ae2e88564b"}, - {file = "pydantic-1.9.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a9af62e9b5b9bc67b2a195ebc2c2662fdf498a822d62f902bf27cccb52dbbf49"}, - {file = "pydantic-1.9.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:fe4670cb32ea98ffbf5a1262f14c3e102cccd92b1869df3bb09538158ba90fe6"}, - {file = "pydantic-1.9.1-cp38-cp38-win_amd64.whl", hash = "sha256:9f659a5ee95c8baa2436d392267988fd0f43eb774e5eb8739252e5a7e9cf07e0"}, - {file = "pydantic-1.9.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b83ba3825bc91dfa989d4eed76865e71aea3a6ca1388b59fc801ee04c4d8d0d6"}, - {file = "pydantic-1.9.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1dd8fecbad028cd89d04a46688d2fcc14423e8a196d5b0a5c65105664901f810"}, - {file = "pydantic-1.9.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:02eefd7087268b711a3ff4db528e9916ac9aa18616da7bca69c1871d0b7a091f"}, - {file = "pydantic-1.9.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7eb57ba90929bac0b6cc2af2373893d80ac559adda6933e562dcfb375029acee"}, - {file = "pydantic-1.9.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:4ce9ae9e91f46c344bec3b03d6ee9612802682c1551aaf627ad24045ce090761"}, - {file = "pydantic-1.9.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:72ccb318bf0c9ab97fc04c10c37683d9eea952ed526707fabf9ac5ae59b701fd"}, - {file = "pydantic-1.9.1-cp39-cp39-win_amd64.whl", hash = "sha256:61b6760b08b7c395975d893e0b814a11cf011ebb24f7d869e7118f5a339a82e1"}, - {file = "pydantic-1.9.1-py3-none-any.whl", hash = "sha256:4988c0f13c42bfa9ddd2fe2f569c9d54646ce84adc5de84228cfe83396f3bd58"}, - {file = "pydantic-1.9.1.tar.gz", hash = "sha256:1ed987c3ff29fff7fd8c3ea3a3ea877ad310aae2ef9889a119e22d3f2db0691a"}, -] -pyparsing = [ - {file = "pyparsing-3.0.9-py3-none-any.whl", hash = "sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc"}, - {file = "pyparsing-3.0.9.tar.gz", hash = "sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"}, -] -pyrsistent = [ - {file = "pyrsistent-0.18.1-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:df46c854f490f81210870e509818b729db4488e1f30f2a1ce1698b2295a878d1"}, - {file = "pyrsistent-0.18.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5d45866ececf4a5fff8742c25722da6d4c9e180daa7b405dc0a2a2790d668c26"}, - {file = "pyrsistent-0.18.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4ed6784ceac462a7d6fcb7e9b663e93b9a6fb373b7f43594f9ff68875788e01e"}, - {file = "pyrsistent-0.18.1-cp310-cp310-win32.whl", hash = "sha256:e4f3149fd5eb9b285d6bfb54d2e5173f6a116fe19172686797c056672689daf6"}, - {file = "pyrsistent-0.18.1-cp310-cp310-win_amd64.whl", hash = "sha256:636ce2dc235046ccd3d8c56a7ad54e99d5c1cd0ef07d9ae847306c91d11b5fec"}, - {file = "pyrsistent-0.18.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:e92a52c166426efbe0d1ec1332ee9119b6d32fc1f0bbfd55d5c1088070e7fc1b"}, - {file = "pyrsistent-0.18.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7a096646eab884bf8bed965bad63ea327e0d0c38989fc83c5ea7b8a87037bfc"}, - {file = "pyrsistent-0.18.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cdfd2c361b8a8e5d9499b9082b501c452ade8bbf42aef97ea04854f4a3f43b22"}, - {file = "pyrsistent-0.18.1-cp37-cp37m-win32.whl", hash = "sha256:7ec335fc998faa4febe75cc5268a9eac0478b3f681602c1f27befaf2a1abe1d8"}, - {file = "pyrsistent-0.18.1-cp37-cp37m-win_amd64.whl", hash = "sha256:6455fc599df93d1f60e1c5c4fe471499f08d190d57eca040c0ea182301321286"}, - {file = "pyrsistent-0.18.1-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:fd8da6d0124efa2f67d86fa70c851022f87c98e205f0594e1fae044e7119a5a6"}, - {file = "pyrsistent-0.18.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7bfe2388663fd18bd8ce7db2c91c7400bf3e1a9e8bd7d63bf7e77d39051b85ec"}, - {file = "pyrsistent-0.18.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0e3e1fcc45199df76053026a51cc59ab2ea3fc7c094c6627e93b7b44cdae2c8c"}, - {file = "pyrsistent-0.18.1-cp38-cp38-win32.whl", hash = "sha256:b568f35ad53a7b07ed9b1b2bae09eb15cdd671a5ba5d2c66caee40dbf91c68ca"}, - {file = "pyrsistent-0.18.1-cp38-cp38-win_amd64.whl", hash = "sha256:d1b96547410f76078eaf66d282ddca2e4baae8964364abb4f4dcdde855cd123a"}, - {file = "pyrsistent-0.18.1-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:f87cc2863ef33c709e237d4b5f4502a62a00fab450c9e020892e8e2ede5847f5"}, - {file = "pyrsistent-0.18.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6bc66318fb7ee012071b2792024564973ecc80e9522842eb4e17743604b5e045"}, - {file = "pyrsistent-0.18.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:914474c9f1d93080338ace89cb2acee74f4f666fb0424896fcfb8d86058bf17c"}, - {file = "pyrsistent-0.18.1-cp39-cp39-win32.whl", hash = "sha256:1b34eedd6812bf4d33814fca1b66005805d3640ce53140ab8bbb1e2651b0d9bc"}, - {file = "pyrsistent-0.18.1-cp39-cp39-win_amd64.whl", hash = "sha256:e24a828f57e0c337c8d8bb9f6b12f09dfdf0273da25fda9e314f0b684b415a07"}, - {file = "pyrsistent-0.18.1.tar.gz", hash = "sha256:d4d61f8b993a7255ba714df3aca52700f8125289f84f704cf80916517c46eb96"}, -] -pytest = [ - {file = "pytest-7.1.2-py3-none-any.whl", hash = "sha256:13d0e3ccfc2b6e26be000cb6568c832ba67ba32e719443bfe725814d3c42433c"}, - {file = "pytest-7.1.2.tar.gz", hash = "sha256:a06a0425453864a270bc45e71f783330a7428defb4230fb5e6a731fde06ecd45"}, -] -pyyaml = [ - {file = "PyYAML-5.4.1-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:3b2b1824fe7112845700f815ff6a489360226a5609b96ec2190a45e62a9fc922"}, - {file = "PyYAML-5.4.1-cp27-cp27m-win32.whl", hash = "sha256:129def1b7c1bf22faffd67b8f3724645203b79d8f4cc81f674654d9902cb4393"}, - {file = "PyYAML-5.4.1-cp27-cp27m-win_amd64.whl", hash = "sha256:4465124ef1b18d9ace298060f4eccc64b0850899ac4ac53294547536533800c8"}, - {file = "PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:bb4191dfc9306777bc594117aee052446b3fa88737cd13b7188d0e7aa8162185"}, - {file = "PyYAML-5.4.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:6c78645d400265a062508ae399b60b8c167bf003db364ecb26dcab2bda048253"}, - {file = "PyYAML-5.4.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4e0583d24c881e14342eaf4ec5fbc97f934b999a6828693a99157fde912540cc"}, - {file = "PyYAML-5.4.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:72a01f726a9c7851ca9bfad6fd09ca4e090a023c00945ea05ba1638c09dc3347"}, - {file = "PyYAML-5.4.1-cp36-cp36m-manylinux2014_s390x.whl", hash = "sha256:895f61ef02e8fed38159bb70f7e100e00f471eae2bc838cd0f4ebb21e28f8541"}, - {file = "PyYAML-5.4.1-cp36-cp36m-win32.whl", hash = "sha256:3bd0e463264cf257d1ffd2e40223b197271046d09dadf73a0fe82b9c1fc385a5"}, - {file = "PyYAML-5.4.1-cp36-cp36m-win_amd64.whl", hash = "sha256:e4fac90784481d221a8e4b1162afa7c47ed953be40d31ab4629ae917510051df"}, - {file = "PyYAML-5.4.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:5accb17103e43963b80e6f837831f38d314a0495500067cb25afab2e8d7a4018"}, - {file = "PyYAML-5.4.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:e1d4970ea66be07ae37a3c2e48b5ec63f7ba6804bdddfdbd3cfd954d25a82e63"}, - {file = "PyYAML-5.4.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:cb333c16912324fd5f769fff6bc5de372e9e7a202247b48870bc251ed40239aa"}, - {file = "PyYAML-5.4.1-cp37-cp37m-manylinux2014_s390x.whl", hash = "sha256:fe69978f3f768926cfa37b867e3843918e012cf83f680806599ddce33c2c68b0"}, - {file = "PyYAML-5.4.1-cp37-cp37m-win32.whl", hash = "sha256:dd5de0646207f053eb0d6c74ae45ba98c3395a571a2891858e87df7c9b9bd51b"}, - {file = "PyYAML-5.4.1-cp37-cp37m-win_amd64.whl", hash = "sha256:08682f6b72c722394747bddaf0aa62277e02557c0fd1c42cb853016a38f8dedf"}, - {file = "PyYAML-5.4.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:d2d9808ea7b4af864f35ea216be506ecec180628aced0704e34aca0b040ffe46"}, - {file = "PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:8c1be557ee92a20f184922c7b6424e8ab6691788e6d86137c5d93c1a6ec1b8fb"}, - {file = "PyYAML-5.4.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:fd7f6999a8070df521b6384004ef42833b9bd62cfee11a09bda1079b4b704247"}, - {file = "PyYAML-5.4.1-cp38-cp38-manylinux2014_s390x.whl", hash = "sha256:bfb51918d4ff3d77c1c856a9699f8492c612cde32fd3bcd344af9be34999bfdc"}, - {file = "PyYAML-5.4.1-cp38-cp38-win32.whl", hash = "sha256:fa5ae20527d8e831e8230cbffd9f8fe952815b2b7dae6ffec25318803a7528fc"}, - {file = "PyYAML-5.4.1-cp38-cp38-win_amd64.whl", hash = "sha256:0f5f5786c0e09baddcd8b4b45f20a7b5d61a7e7e99846e3c799b05c7c53fa696"}, - {file = "PyYAML-5.4.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:294db365efa064d00b8d1ef65d8ea2c3426ac366c0c4368d930bf1c5fb497f77"}, - {file = "PyYAML-5.4.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:74c1485f7707cf707a7aef42ef6322b8f97921bd89be2ab6317fd782c2d53183"}, - {file = "PyYAML-5.4.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:d483ad4e639292c90170eb6f7783ad19490e7a8defb3e46f97dfe4bacae89122"}, - {file = "PyYAML-5.4.1-cp39-cp39-manylinux2014_s390x.whl", hash = "sha256:fdc842473cd33f45ff6bce46aea678a54e3d21f1b61a7750ce3c498eedfe25d6"}, - {file = "PyYAML-5.4.1-cp39-cp39-win32.whl", hash = "sha256:49d4cdd9065b9b6e206d0595fee27a96b5dd22618e7520c33204a4a3239d5b10"}, - {file = "PyYAML-5.4.1-cp39-cp39-win_amd64.whl", hash = "sha256:c20cfa2d49991c8b4147af39859b167664f2ad4561704ee74c1de03318e898db"}, - {file = "PyYAML-5.4.1.tar.gz", hash = "sha256:607774cbba28732bfa802b54baa7484215f530991055bb562efbed5b2f20a45e"}, -] -six = [ - {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, - {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, -] -toml = [ - {file = "toml-0.10.2-py2.py3-none-any.whl", hash = "sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b"}, - {file = "toml-0.10.2.tar.gz", hash = "sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f"}, -] -tomli = [ - {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, - {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, -] +importlib-metadata = [] +importlib-resources = [] +iniconfig = [] +jsonschema = [] +lkml = [] +packaging = [] +pkgutil-resolve-name = [] +platformdirs = [] +pluggy = [] +py = [] +pydantic = [] +pyparsing = [] +pyrsistent = [] +pytest = [] +pyyaml = [] +six = [] +toml = [] +tomli = [] tox = [] -typing-extensions = [ - {file = "typing_extensions-4.3.0-py3-none-any.whl", hash = "sha256:25642c956049920a5aa49edcdd6ab1e06d7e5d467fc00e0506c44ac86fbfca02"}, - {file = "typing_extensions-4.3.0.tar.gz", hash = "sha256:e6d2677a32f47fc7eb2795db1dd15c1f34eff616bcaf2cfb5e997f854fa1c4a6"}, -] +typing-extensions = [] virtualenv = [] zipp = [] diff --git a/pyproject.toml b/pyproject.toml index 209e10d..37f5473 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,12 +10,12 @@ repository = "https://github.com/YotpoLtd/yoda-dbt2looker" [tool.poetry.dependencies] python = ">=3.7" -lkml = "^1.1.0" -pydantic = "^1.8.1" -PyYAML = "^5.4.1" -jsonschema = "^3.2.0" -typing-extensions = "^4.1.1" -importlib-metadata = "^4.8.1" +lkml = "^1.2.0" +pydantic = "^1.10.1" +PyYAML = "^6.0" +jsonschema = "^4.15.0" +typing-extensions = "^4.3.0" +importlib-metadata = "^4.12.0" [tool.poetry.dev-dependencies] From 301ea4826c314c9574b776ebb7f446f30f69036e Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 31 Aug 2022 16:45:16 +0300 Subject: [PATCH 72/87] update versions --- .github/workflows/ci.yml | 2 +- .github/workflows/master.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 765c492..bfa230d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: matrix: python-version: [3.9] poetry-version: [1.1.11] - os: [ubuntu-18.04] + os: [ubuntu-22.04] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 1dd527a..c71669a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -11,7 +11,7 @@ jobs: matrix: python-version: [3.9] poetry-version: [1.1.11] - os: [ubuntu-18.04] + os: [ubuntu-22.04] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 From 1cc13992a249dca824a04bac73803c3a4a0efbe6 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 31 Aug 2022 16:51:33 +0300 Subject: [PATCH 73/87] update versions --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2ac7712..b3b4137 100644 --- a/README.md +++ b/README.md @@ -83,3 +83,4 @@ models: page_views: type: count ``` + From 001ea32f6ced7077fa16b594d59019087563be85 Mon Sep 17 00:00:00 2001 From: chaimt Date: Wed, 31 Aug 2022 14:04:00 +0000 Subject: [PATCH 74/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 37f5473..8095848 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.28" +version = "0.9.29" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From d793e9c69e1dde582369e108caab41dab258f209 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 7 Sep 2022 21:18:49 +0300 Subject: [PATCH 75/87] backup dags --- .../dbt_json_schemas/manifest_dbt2looker.json | 607 +- .../dbt_json_schemas/manifest_v6.json | 6209 +++++++++++++++++ yoda_dbt2looker/parser.py | 10 +- 3 files changed, 6573 insertions(+), 253 deletions(-) create mode 100644 yoda_dbt2looker/dbt_json_schemas/manifest_v6.json diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json index a211785..79b6273 100644 --- a/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json @@ -227,186 +227,24 @@ } }, "additionalProperties": false, - "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Union[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]], NoneType], parent_map: Union[Dict[str, List[str]], NoneType], child_map: Union[Dict[str, List[str]], NoneType])", + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]])", "definitions": { - "LightdashDimension": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "description": "When enabled a dimension will be created in lookml for this column, otherwise it will be ignored. Default is enabled=true.", - "default": true - }, - "name": { - "type": "string", - "pattern": "^[a-z][a-z0-9_]*$", - "description": "An optional name for the dimension, defaults to DBT column name" - }, - "description": { - "type": "string", - "description": "An optional description for the column, defaults to the DBT column description" - }, - "sql": { - "type": "string", - "description": "Optional sql string defining the dimension. Defaults to ${TABLE}.column_name" - }, - "value_format_name": { - "description": "Optional format for numerical dimensions", - "type": "string", - "enum": [ - "decimal_0", "decimal_1", "decimal_2", "decimal_3", "decimal_4", - "usd_0", "usd", - "gbp_0", "gbp", - "eur_0", "eur", - "id", - "percent_0", "percent_1", "percent_2", "percent_3", "percent_4" - ] - } - } - }, - "LightdashMeasure": { - "type": "object", - "required": ["type"], - "properties": { - "type": { - "description": "The type of the measure e.g. average, max min. Not all looker measure types are supported.", - "type": "string", - "enum": [ - "average", - "average_distinct", - "count", - "count_distinct", - "list", - "max", - "median", - "median_distinct", - "min", - "sum", - "sum_distinct" - ] - }, - "description": { - "description": "Optional description for the measure. Default's to a variant of the column description depending on the measure type.", - "type": "string" - }, - "sql": { - "description": "Optional sql string defining the measure value. Defaults ${TABLE}.column_name", - "type": "string" - }, - "value_format_name": { - "description": "Optional format for measure", - "type": "string", - "enum": [ - "decimal_0", "decimal_1", "decimal_2", "decimal_3", "decimal_4", - "usd_0", "usd", - "gbp_0", "gbp", - "eur_0", "eur", - "id", - "percent_0", "percent_1", "percent_2", "percent_3", "percent_4" - ] - }, - "filters": { - "type": "array", - "default": [], - "items": { - "description": "Object of filters. The keys must be a valid dimension name.", - "type": "object", - "required": [], - "patternProperties": { - "^[a-z][a-z0-9_]*$": { - "type": "string", - "description": "Lookml filter expression" - } - } - } - } - } - }, - "LightdashColumnMetadata": { - "type": "object", - "required": [], - "properties": { - "dimension": { - "$ref": "#/definitions/LightdashDimension" - } - }, - "patternProperties": { - "^measures?$": { - "type": "object", - "description": "Object containing measures definitions. Keys ust be valid measure names and unique in this model.", - "patternProperties": { - "^[a-z][a-z0-9_]*$": { - "$ref": "#/definitions/LightdashMeasure" - } - }, - "default": {} - } - } - }, - "LightdashModelMetadata": { - "type": "object", - "required": [], - "properties": { - "joins": { - "type": "array", - "items": { - "type": "object", - "required": [ - "join", - "sql_on" - ], - "properties": { - "join": { - "description": "Name of the dbt model you'd like to join to", - "type": "string" - }, - "sql_on": { - "description": "Sql string defining the join. Use looker references ${table.dimension}=${table.dimesion}", - "type": "string" - }, - "type": { - "type": "string", - "default": "left_outer", - "enum": [ - "left_outer", - "full_outer", - "inner", - "cross" - ] - }, - "relationship": { - "type": "string", - "default": "many_to_one", - "enum": [ - "many_to_one", - "many_to_many", - "one_to_many", - "one_to_one" - ] - } - } - } - } - }, - "default": {} - }, "ManifestMetadata": { "type": "object", "required": [], "properties": { "dbt_schema_version": { "type": "string", - "default": "https://schemas.getdbt.com/dbt/manifest/v4.json" + "default": "https://schemas.getdbt.com/dbt/manifest/v6.json" }, "dbt_version": { "type": "string", - "default": "1.0.0rc2" + "default": "1.2.0a1" }, "generated_at": { "type": "string", "format": "date-time", - "default": "2021-11-30T01:35:47.307789Z" + "default": "2022-07-05T17:06:02.022011Z" }, "invocation_id": { "oneOf": [ @@ -417,7 +255,7 @@ "type": "null" } ], - "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + "default": "6cec400a-e8a4-4480-8ceb-d35589d12bab" }, "env": { "type": "object", @@ -562,7 +400,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -594,6 +434,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -662,7 +512,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.3118432 + "default": 1657040762.0262258 }, "config_call_dict": { "type": "object", @@ -701,7 +551,7 @@ } }, "additionalProperties": false, - "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" }, "FileHash": { "type": "object", @@ -816,6 +666,22 @@ } ] }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, "on_schema_change": { "oneOf": [ { @@ -826,10 +692,14 @@ } ], "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} } }, "additionalProperties": true, - "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore')" + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = )" }, "Hook": { "type": "object", @@ -856,7 +726,7 @@ } }, "additionalProperties": false, - "description": "Hook(sql: str, transaction: bool = True, index: Union[int, NoneType] = None)" + "description": "Hook(sql: str, transaction: bool = True, index: Optional[int] = None)" }, "DependsOn": { "type": "object", @@ -894,7 +764,6 @@ "default": "" }, "meta": { - "$ref": "#/definitions/LightdashColumnMetadata", "type": "object", "default": {} }, @@ -927,7 +796,7 @@ } }, "additionalProperties": true, - "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Union[str, NoneType] = None, quote: Union[bool, NoneType] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Optional[str] = None, quote: Optional[bool] = None, tags: List[str] = , _extra: Dict[str, Any] = )" }, "Docs": { "type": "object", @@ -1077,6 +946,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -1145,7 +1024,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.314477 + "default": 1657040762.028276 }, "config_call_dict": { "type": "object", @@ -1184,7 +1063,7 @@ } }, "additionalProperties": false, - "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" }, "TestConfig": { "type": "object", @@ -1296,7 +1175,7 @@ } }, "additionalProperties": true, - "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = 'dbt_test__audit', database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Union[bool, NoneType] = None, where: Union[str, NoneType] = None, limit: Union[int, NoneType] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" }, "CompiledModelNode": { "type": "object", @@ -1385,7 +1264,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -1417,6 +1298,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -1485,7 +1376,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.315979 + "default": 1657040762.0294158 }, "config_call_dict": { "type": "object", @@ -1524,7 +1415,7 @@ } }, "additionalProperties": false, - "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" }, "CompiledHookNode": { "type": "object", @@ -1613,7 +1504,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -1645,6 +1538,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -1713,7 +1616,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.317642 + "default": 1657040762.030488 }, "config_call_dict": { "type": "object", @@ -1762,7 +1665,7 @@ } }, "additionalProperties": false, - "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, index: Union[int, NoneType] = None)" + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, index: Optional[int] = None)" }, "CompiledRPCNode": { "type": "object", @@ -1851,7 +1754,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -1883,6 +1788,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -1951,7 +1866,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.319278 + "default": 1657040762.031699 }, "config_call_dict": { "type": "object", @@ -1990,7 +1905,7 @@ } }, "additionalProperties": false, - "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" }, "CompiledSqlNode": { "type": "object", @@ -2079,7 +1994,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -2111,6 +2028,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -2179,7 +2106,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.321433 + "default": 1657040762.032803 }, "config_call_dict": { "type": "object", @@ -2218,7 +2145,7 @@ } }, "additionalProperties": false, - "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" }, "CompiledGenericTestNode": { "type": "object", @@ -2343,6 +2270,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -2411,7 +2348,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.323731 + "default": 1657040762.0341172 }, "config_call_dict": { "type": "object", @@ -2470,7 +2407,7 @@ } }, "additionalProperties": false, - "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None, column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, column_name: Optional[str] = None, file_key_name: Optional[str] = None)" }, "TestMetadata": { "type": "object", @@ -2497,7 +2434,7 @@ } }, "additionalProperties": false, - "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Union[str, NoneType] = None)" + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Optional[str] = None)" }, "CompiledSeedNode": { "type": "object", @@ -2586,7 +2523,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "quote_columns": null, "post-hook": [], "pre-hook": [] @@ -2619,6 +2558,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -2687,7 +2636,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.326388 + "default": 1657040762.035997 }, "config_call_dict": { "type": "object", @@ -2726,7 +2675,7 @@ } }, "additionalProperties": false, - "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" }, "SeedConfig": { "type": "object", @@ -2824,6 +2773,22 @@ } ] }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, "on_schema_change": { "oneOf": [ { @@ -2835,6 +2800,10 @@ ], "default": "ignore" }, + "grants": { + "type": "object", + "default": {} + }, "quote_columns": { "oneOf": [ { @@ -2847,7 +2816,7 @@ } }, "additionalProperties": true, - "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', quote_columns: Union[bool, NoneType] = None)" + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , quote_columns: Optional[bool] = None)" }, "CompiledSnapshotNode": { "type": "object", @@ -2936,7 +2905,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -2968,6 +2939,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -3036,7 +3017,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.328031 + "default": 1657040762.037313 }, "config_call_dict": { "type": "object", @@ -3075,7 +3056,7 @@ } }, "additionalProperties": false, - "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Union[str, NoneType] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Union[str, NoneType] = None, _pre_injected_sql: Union[str, NoneType] = None)" + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" }, "ParsedAnalysisNode": { "type": "object", @@ -3160,7 +3141,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -3192,6 +3175,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -3260,7 +3253,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.329485 + "default": 1657040762.038346 }, "config_call_dict": { "type": "object", @@ -3268,7 +3261,7 @@ } }, "additionalProperties": false, - "description": "ParsedAnalysisNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "ParsedAnalysisNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "ParsedSingularTestNode": { "type": "object", @@ -3385,6 +3378,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -3453,7 +3456,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.3306549 + "default": 1657040762.039365 }, "config_call_dict": { "type": "object", @@ -3461,7 +3464,7 @@ } }, "additionalProperties": false, - "description": "ParsedSingularTestNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "ParsedSingularTestNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "ParsedHookNode": { "type": "object", @@ -3546,7 +3549,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -3578,6 +3583,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -3646,7 +3661,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.332001 + "default": 1657040762.0402749 }, "config_call_dict": { "type": "object", @@ -3664,7 +3679,7 @@ } }, "additionalProperties": false, - "description": "ParsedHookNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Union[int, NoneType] = None)" + "description": "ParsedHookNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Optional[int] = None)" }, "ParsedModelNode": { "type": "object", @@ -3749,7 +3764,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -3781,6 +3798,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -3849,7 +3876,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.333348 + "default": 1657040762.041198 }, "config_call_dict": { "type": "object", @@ -3857,7 +3884,7 @@ } }, "additionalProperties": false, - "description": "ParsedModelNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "ParsedModelNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "ParsedRPCNode": { "type": "object", @@ -3942,7 +3969,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -3974,6 +4003,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -4042,7 +4081,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.335125 + "default": 1657040762.0420969 }, "config_call_dict": { "type": "object", @@ -4050,7 +4089,7 @@ } }, "additionalProperties": false, - "description": "ParsedRPCNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "ParsedRPCNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "ParsedSqlNode": { "type": "object", @@ -4135,7 +4174,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "post-hook": [], "pre-hook": [] } @@ -4167,6 +4208,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -4235,7 +4286,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.336567 + "default": 1657040762.0429912 }, "config_call_dict": { "type": "object", @@ -4243,7 +4294,7 @@ } }, "additionalProperties": false, - "description": "ParsedSqlNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "ParsedSqlNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "ParsedGenericTestNode": { "type": "object", @@ -4364,6 +4415,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -4432,7 +4493,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.3383949 + "default": 1657040762.043911 }, "config_call_dict": { "type": "object", @@ -4460,7 +4521,7 @@ } }, "additionalProperties": false, - "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Union[str, NoneType] = None, file_key_name: Union[str, NoneType] = None)" + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Optional[str] = None, file_key_name: Optional[str] = None)" }, "ParsedSeedNode": { "type": "object", @@ -4545,7 +4606,9 @@ "quoting": {}, "column_types": {}, "full_refresh": null, + "unique_key": null, "on_schema_change": "ignore", + "grants": {}, "quote_columns": null, "post-hook": [], "pre-hook": [] @@ -4578,6 +4641,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -4646,7 +4719,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.339838 + "default": 1657040762.044916 }, "config_call_dict": { "type": "object", @@ -4654,7 +4727,7 @@ } }, "additionalProperties": false, - "description": "ParsedSeedNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "ParsedSeedNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "ParsedSnapshotNode": { "type": "object", @@ -4756,6 +4829,16 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "depends_on": { "$ref": "#/definitions/DependsOn", "default": { @@ -4824,7 +4907,7 @@ }, "created_at": { "type": "number", - "default": 1638236147.3425322 + "default": 1657040762.04684 }, "config_call_dict": { "type": "object", @@ -4832,7 +4915,7 @@ } }, "additionalProperties": false, - "description": "ParsedSnapshotNode(raw_sql: str, database: Union[str, NoneType], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, compiled_path: Union[str, NoneType] = None, build_path: Union[str, NoneType] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "ParsedSnapshotNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" }, "SnapshotConfig": { "type": "object", @@ -4930,7 +5013,7 @@ } ] }, - "on_schema_change": { + "unique_key": { "oneOf": [ { "type": "string" @@ -4938,10 +5021,9 @@ { "type": "null" } - ], - "default": "ignore" + ] }, - "strategy": { + "on_schema_change": { "oneOf": [ { "type": "string" @@ -4949,9 +5031,14 @@ { "type": "null" } - ] + ], + "default": "ignore" }, - "unique_key": { + "grants": { + "type": "object", + "default": {} + }, + "strategy": { "oneOf": [ { "type": "string" @@ -5009,7 +5096,7 @@ } }, "additionalProperties": true, - "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Union[str, NoneType] = None, schema: Union[str, NoneType] = None, database: Union[str, NoneType] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Union[bool, NoneType] = None, on_schema_change: Union[str, NoneType] = 'ignore', strategy: Union[str, NoneType] = None, unique_key: Union[str, NoneType] = None, target_schema: Union[str, NoneType] = None, target_database: Union[str, NoneType] = None, updated_at: Union[str, NoneType] = None, check_cols: Union[str, List[str], NoneType] = None)" + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" }, "ParsedSourceDefinition": { "type": "object", @@ -5181,11 +5268,11 @@ }, "created_at": { "type": "number", - "default": 1638236147.345053 + "default": 1657040762.048556 } }, "additionalProperties": false, - "description": "ParsedSourceDefinition(fqn: List[str], database: Union[str, NoneType], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Union[str, NoneType] = None, freshness: Union[dbt.contracts.graph.unparsed.FreshnessThreshold, NoneType] = None, external: Union[dbt.contracts.graph.unparsed.ExternalTable, NoneType] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Union[pathlib.Path, NoneType] = None, unrendered_config: Dict[str, Any] = , relation_name: Union[str, NoneType] = None, created_at: float = )" + "description": "ParsedSourceDefinition(fqn: List[str], database: Optional[str], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[pathlib.Path] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" }, "Quoting": { "type": "object", @@ -5233,7 +5320,7 @@ } }, "additionalProperties": false, - "description": "Quoting(database: Union[bool, NoneType] = None, schema: Union[bool, NoneType] = None, identifier: Union[bool, NoneType] = None, column: Union[bool, NoneType] = None)" + "description": "Quoting(database: Optional[bool] = None, schema: Optional[bool] = None, identifier: Optional[bool] = None, column: Optional[bool] = None)" }, "FreshnessThreshold": { "type": "object", @@ -5279,7 +5366,7 @@ } }, "additionalProperties": false, - "description": "FreshnessThreshold(warn_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , error_after: Union[dbt.contracts.graph.unparsed.Time, NoneType] = , filter: Union[str, NoneType] = None)" + "description": "FreshnessThreshold(warn_after: Optional[dbt.contracts.graph.unparsed.Time] = , error_after: Optional[dbt.contracts.graph.unparsed.Time] = , filter: Optional[str] = None)" }, "FreshnessMetadata": { "type": "object", @@ -5291,12 +5378,12 @@ }, "dbt_version": { "type": "string", - "default": "1.0.0rc2" + "default": "1.2.0a1" }, "generated_at": { "type": "string", "format": "date-time", - "default": "2021-11-30T01:35:47.301745Z" + "default": "2022-07-05T17:06:02.017833Z" }, "invocation_id": { "oneOf": [ @@ -5307,7 +5394,7 @@ "type": "null" } ], - "default": "66dd78f0-c79a-4b06-81b1-99794345df16" + "default": "6cec400a-e8a4-4480-8ceb-d35589d12bab" }, "env": { "type": "object", @@ -5318,7 +5405,7 @@ } }, "additionalProperties": false, - "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.0.0rc2', generated_at: datetime.datetime = , invocation_id: Union[str, NoneType] = , env: Dict[str, str] = )" + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.2.0a1', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" }, "SourceFreshnessRuntimeError": { "type": "object", @@ -5444,7 +5531,7 @@ } }, "additionalProperties": false, - "description": "Time(count: Union[int, NoneType] = None, period: Union[dbt.contracts.graph.unparsed.TimePeriod, NoneType] = None)" + "description": "Time(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.TimePeriod] = None)" }, "TimingInfo": { "type": "object", @@ -5479,7 +5566,7 @@ } }, "additionalProperties": false, - "description": "TimingInfo(name: str, started_at: Union[datetime.datetime, NoneType] = None, completed_at: Union[datetime.datetime, NoneType] = None)" + "description": "TimingInfo(name: str, started_at: Optional[datetime.datetime] = None, completed_at: Optional[datetime.datetime] = None)" }, "ExternalTable": { "type": "object", @@ -5540,7 +5627,7 @@ } }, "additionalProperties": true, - "description": "ExternalTable(_extra: Dict[str, Any] = , location: Union[str, NoneType] = None, file_format: Union[str, NoneType] = None, row_format: Union[str, NoneType] = None, tbl_properties: Union[str, NoneType] = None, partitions: Union[List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Optional[List[dbt.contracts.graph.unparsed.ExternalPartition]] = None)" }, "ExternalPartition": { "type": "object", @@ -5664,11 +5751,11 @@ }, "created_at": { "type": "number", - "default": 1638236147.345993 + "default": 1657040762.049289 } }, "additionalProperties": false, - "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Union[str, NoneType] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" }, "MacroDependsOn": { "type": "object", @@ -5710,7 +5797,7 @@ } }, "additionalProperties": false, - "description": "MacroArgument(name: str, type: Union[str, NoneType] = None, description: str = '')" + "description": "MacroArgument(name: str, type: Optional[str] = None, description: str = '')" }, "ParsedDocumentation": { "type": "object", @@ -5888,11 +5975,11 @@ }, "created_at": { "type": "number", - "default": 1638236147.347234 + "default": 1657040762.050287 } }, "additionalProperties": false, - "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Union[dbt.contracts.graph.unparsed.MaturityType, NoneType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Union[str, NoneType] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" }, "ExposureOwner": { "type": "object", @@ -5915,7 +6002,7 @@ } }, "additionalProperties": false, - "description": "ExposureOwner(email: str, name: Union[str, NoneType] = None)" + "description": "ExposureOwner(email: str, name: Optional[str] = None)" }, "ParsedMetric": { "type": "object", @@ -5926,11 +6013,11 @@ "root_path", "path", "original_file_path", - "model", "name", "description", "label", "type", + "sql", "filters", "time_grains", "dimensions" @@ -5957,9 +6044,6 @@ "original_file_path": { "type": "string" }, - "model": { - "type": "string" - }, "name": { "type": "string" }, @@ -5973,14 +6057,7 @@ "type": "string" }, "sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "type": "string" }, "timestamp": { "oneOf": [ @@ -6010,6 +6087,26 @@ "type": "string" } }, + "model": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "model_unique_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "resource_type": { "type": "string", "enum": [ @@ -6067,13 +6164,23 @@ }, "default": [] }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, "created_at": { "type": "number", - "default": 1638236147.348404 + "default": 1657040762.051152 } }, "additionalProperties": false, - "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, model: str, name: str, description: str, label: str, type: str, sql: Union[str, NoneType], timestamp: Union[str, NoneType], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , created_at: float = )" + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, description: str, label: str, type: str, sql: str, timestamp: Optional[str], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], model: Optional[str] = None, model_unique_id: Optional[str] = None, resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" }, "MetricFilter": { "type": "object", @@ -6098,5 +6205,5 @@ } }, "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schemas.lightdash.com/dbt2looker/manifest/v4.json" -} \ No newline at end of file + "$id": "https://schemas.getdbt.com/dbt/manifest/v6.json" +} diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_v6.json b/yoda_dbt2looker/dbt_json_schemas/manifest_v6.json new file mode 100644 index 0000000..79b6273 --- /dev/null +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_v6.json @@ -0,0 +1,6209 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedSourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMacro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedDocumentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedExposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ParsedMetric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/CompiledAnalysisNode" + }, + { + "$ref": "#/definitions/CompiledSingularTestNode" + }, + { + "$ref": "#/definitions/CompiledModelNode" + }, + { + "$ref": "#/definitions/CompiledHookNode" + }, + { + "$ref": "#/definitions/CompiledRPCNode" + }, + { + "$ref": "#/definitions/CompiledSqlNode" + }, + { + "$ref": "#/definitions/CompiledGenericTestNode" + }, + { + "$ref": "#/definitions/CompiledSeedNode" + }, + { + "$ref": "#/definitions/CompiledSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedAnalysisNode" + }, + { + "$ref": "#/definitions/ParsedSingularTestNode" + }, + { + "$ref": "#/definitions/ParsedHookNode" + }, + { + "$ref": "#/definitions/ParsedModelNode" + }, + { + "$ref": "#/definitions/ParsedRPCNode" + }, + { + "$ref": "#/definitions/ParsedSqlNode" + }, + { + "$ref": "#/definitions/ParsedGenericTestNode" + }, + { + "$ref": "#/definitions/ParsedSeedNode" + }, + { + "$ref": "#/definitions/ParsedSnapshotNode" + }, + { + "$ref": "#/definitions/ParsedSourceDefinition" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v6.json" + }, + "dbt_version": { + "type": "string", + "default": "1.2.0a1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-07-05T17:06:02.022011Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "6cec400a-e8a4-4480-8ceb-d35589d12bab" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "CompiledAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.0262258 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "view" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = )" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Optional[int] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Optional[str] = None, quote: Optional[bool] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True)" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "InjectedCTE(id: str, sql: str)" + }, + "CompiledSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.028276 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "CompiledModelNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.0294158 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "CompiledHookNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.030488 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, index: Optional[int] = None)" + }, + "CompiledRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.031699 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "CompiledSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.032803 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "CompiledGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.0341172 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, column_name: Optional[str] = None, file_key_name: Optional[str] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Optional[str] = None)" + }, + "CompiledSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.035997 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , quote_columns: Optional[bool] = None)" + }, + "CompiledSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "compiled", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "compiled": { + "type": "boolean" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.037313 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "compiled_sql": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + }, + "ParsedAnalysisNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.038346 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedAnalysisNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSingularTestNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.039365 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSingularTestNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedHookNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.0402749 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedHookNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Optional[int] = None)" + }, + "ParsedModelNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.041198 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedModelNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedRPCNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.0420969 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedRPCNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSqlNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "view", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.0429912 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSqlNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedGenericTestNode": { + "type": "object", + "required": [ + "raw_sql", + "test_metadata", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.043911 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Optional[str] = None, file_key_name: Optional[str] = None)" + }, + "ParsedSeedNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "materialized": "seed", + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.044916 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSeedNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "ParsedSnapshotNode": { + "type": "object", + "required": [ + "raw_sql", + "schema", + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "resource_type", + "alias", + "checksum", + "config" + ], + "properties": { + "raw_sql": { + "type": "string" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1657040762.04684 + }, + "config_call_dict": { + "type": "object", + "default": {} + } + }, + "additionalProperties": false, + "description": "ParsedSnapshotNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "ParsedSourceDefinition": { + "type": "object", + "required": [ + "fqn", + "schema", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "source_name", + "source_description", + "loader", + "identifier", + "resource_type" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1657040762.048556 + } + }, + "additionalProperties": false, + "description": "ParsedSourceDefinition(fqn: List[str], database: Optional[str], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[pathlib.Path] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Optional[bool] = None, schema: Optional[bool] = None, identifier: Optional[bool] = None, column: Optional[bool] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Optional[dbt.contracts.graph.unparsed.Time] = , error_after: Optional[dbt.contracts.graph.unparsed.Time] = , filter: Optional[str] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.2.0a1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2022-07-05T17:06:02.017833Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "6cec400a-e8a4-4480-8ceb-d35589d12bab" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.2.0a1', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.TimePeriod] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Optional[datetime.datetime] = None, completed_at: Optional[datetime.datetime] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Optional[List[dbt.contracts.graph.unparsed.ExternalPartition]] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "ParsedMacro": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "macro_sql", + "resource_type" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1657040762.049289 + } + }, + "additionalProperties": false, + "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "MacroDependsOn(macros: List[str] = )" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Optional[str] = None, description: str = '')" + }, + "ParsedDocumentation": { + "type": "object", + "required": [ + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "block_contents" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + }, + "ParsedExposure": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "type", + "owner" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/ExposureOwner" + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "exposure" + }, + "description": { + "type": "string", + "default": "" + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1657040762.050287 + } + }, + "additionalProperties": false, + "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + }, + "ExposureOwner": { + "type": "object", + "required": [ + "email" + ], + "properties": { + "email": { + "type": "string" + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ExposureOwner(email: str, name: Optional[str] = None)" + }, + "ParsedMetric": { + "type": "object", + "required": [ + "fqn", + "unique_id", + "package_name", + "root_path", + "path", + "original_file_path", + "name", + "description", + "label", + "type", + "sql", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "unique_id": { + "type": "string" + }, + "package_name": { + "type": "string" + }, + "root_path": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "type": { + "type": "string" + }, + "sql": { + "type": "string" + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "model": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "model_unique_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "resource_type": { + "type": "string", + "enum": [ + "model", + "analysis", + "test", + "snapshot", + "operation", + "seed", + "rpc", + "sql", + "docs", + "source", + "macro", + "exposure", + "metric" + ], + "default": "metric" + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1657040762.051152 + } + }, + "additionalProperties": false, + "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, description: str, label: str, type: str, sql: str, timestamp: Optional[str], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], model: Optional[str] = None, model_unique_id: Optional[str] = None, resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v6.json" +} diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index 0362d15..040d3e0 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -104,9 +104,13 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, dbt_project_name: exposure_model_views = set() for exposure in typed_dbt_exposures: - exposure_model_views.add(_extract_all_refs(exposure.meta.looker.main_model)[0]) - for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): - exposure_model_views.add(item) + ref_model = _extract_all_refs(exposure.meta.looker.main_model) + if not ref_model: + logging.error(f"Exposure main_model {exposure.meta.looker.main_model} should be ref('model_name')") + else: + exposure_model_views.add(_extract_all_refs(exposure.meta.looker.main_model)[0]) + for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): + exposure_model_views.add(item) for model in exposure_model_views: model_loopup = f"model.{dbt_project_name}.{model}" From f7abb3db9b8af223a7add34d0a98c2742356c090 Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Wed, 7 Sep 2022 22:18:03 +0300 Subject: [PATCH 76/87] backup dags --- yoda_dbt2looker/parser.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index 040d3e0..cab7e08 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -107,14 +107,23 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, dbt_project_name: ref_model = _extract_all_refs(exposure.meta.looker.main_model) if not ref_model: logging.error(f"Exposure main_model {exposure.meta.looker.main_model} should be ref('model_name')") - else: - exposure_model_views.add(_extract_all_refs(exposure.meta.looker.main_model)[0]) - for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): - exposure_model_views.add(item) + raise Exception(f"Exposure main_model {exposure.meta.looker.main_model} should be ref('model_name')") + exposure_model_views.add(ref_model[0]) + + for join in exposure.meta.looker.joins: + if _extract_all_refs(join.sql_on) == None: + logging.error(f"Exposure join.sql_on {join.sql_on} should be ref('model_name')") + raise Exception(f"Exposure join.sql_on {join.sql_on} should be ref('model_name')") + + for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): + exposure_model_views.add(item) for model in exposure_model_views: model_loopup = f"model.{dbt_project_name}.{model}" model_node = manifest.nodes.get(model_loopup) + if not model_node: + logging.error(f"Exposure join.sql_on model {model_loopup} missing") + raise Exception(f"Exposure join.sql_on model {model_loopup} missing") model_node.create_explorer = False exposure_nodes.append(model_node) From 7c73f6de446f37ad326a656f7f86403479bf1a28 Mon Sep 17 00:00:00 2001 From: chaimt Date: Thu, 8 Sep 2022 15:00:35 +0000 Subject: [PATCH 77/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8095848..fd0a522 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.29" +version = "0.9.30" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From 242c278d3cdd0a78410a9fff4aefd8ddf04612ef Mon Sep 17 00:00:00 2001 From: Chaim Turkel Date: Tue, 13 Sep 2022 10:04:26 +0300 Subject: [PATCH 78/87] fix missing join --- yoda_dbt2looker/parser.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/yoda_dbt2looker/parser.py b/yoda_dbt2looker/parser.py index cab7e08..306bbf4 100644 --- a/yoda_dbt2looker/parser.py +++ b/yoda_dbt2looker/parser.py @@ -110,13 +110,14 @@ def parse_typed_models(raw_manifest: dict, raw_catalog: dict, dbt_project_name: raise Exception(f"Exposure main_model {exposure.meta.looker.main_model} should be ref('model_name')") exposure_model_views.add(ref_model[0]) - for join in exposure.meta.looker.joins: - if _extract_all_refs(join.sql_on) == None: - logging.error(f"Exposure join.sql_on {join.sql_on} should be ref('model_name')") - raise Exception(f"Exposure join.sql_on {join.sql_on} should be ref('model_name')") - - for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): - exposure_model_views.add(item) + if exposure.meta.looker.joins: + for join in exposure.meta.looker.joins: + if _extract_all_refs(join.sql_on) == None: + logging.error(f"Exposure join.sql_on {join.sql_on} should be ref('model_name')") + raise Exception(f"Exposure join.sql_on {join.sql_on} should be ref('model_name')") + + for item in reduce(list.__add__, [ _extract_all_refs(join.sql_on) for join in exposure.meta.looker.joins]): + exposure_model_views.add(item) for model in exposure_model_views: model_loopup = f"model.{dbt_project_name}.{model}" From 1dd21ecff6eadd59a524b4b55e94adb3b5078a73 Mon Sep 17 00:00:00 2001 From: chaimt Date: Wed, 14 Sep 2022 06:40:29 +0000 Subject: [PATCH 79/87] Automated Change: Version Updated --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fd0a522..8f95583 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yoda-dbt2looker" -version = "0.9.30" +version = "0.9.31" description = "Generate lookml view files from dbt models" authors = ["oliverlaslett ", "chaimturkel "] license = "MIT" From e7ef56934ccb38ab99d2bf5632db6a23cf90e95f Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:58:35 +0300 Subject: [PATCH 80/87] upgrade to 1_5_4 --- .vscode/settings.json | 3 + .../dbt_json_schemas/manifest_dbt2looker.json | 4776 ++++++---------- .../dbt_json_schemas/manifest_v9.json | 4965 +++++++++++++++++ yoda_dbt2looker/models.py | 128 +- 4 files changed, 6801 insertions(+), 3071 deletions(-) create mode 100644 yoda_dbt2looker/dbt_json_schemas/manifest_v9.json diff --git a/.vscode/settings.json b/.vscode/settings.json index ef42a98..b4768ba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,7 @@ { + "python.testing.pytestArgs": [ + "tests" + ], "jira-plugin.workingProject": "", "files.associations": { "*.yaml": "home-assistant" diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json index 79b6273..82942ae 100644 --- a/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_dbt2looker.json @@ -8,6 +8,7 @@ "docs", "exposures", "metrics", + "groups", "selectors" ], "properties": { @@ -20,58 +21,31 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#/definitions/CompiledAnalysisNode" + "$ref": "#/definitions/AnalysisNode" }, { - "$ref": "#/definitions/CompiledSingularTestNode" + "$ref": "#/definitions/SingularTestNode" }, { - "$ref": "#/definitions/CompiledModelNode" + "$ref": "#/definitions/HookNode" }, { - "$ref": "#/definitions/CompiledHookNode" + "$ref": "#/definitions/ModelNode" }, { - "$ref": "#/definitions/CompiledRPCNode" + "$ref": "#/definitions/RPCNode" }, { - "$ref": "#/definitions/CompiledSqlNode" + "$ref": "#/definitions/SqlNode" }, { - "$ref": "#/definitions/CompiledGenericTestNode" + "$ref": "#/definitions/GenericTestNode" }, { - "$ref": "#/definitions/CompiledSeedNode" + "$ref": "#/definitions/SnapshotNode" }, { - "$ref": "#/definitions/CompiledSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedAnalysisNode" - }, - { - "$ref": "#/definitions/ParsedSingularTestNode" - }, - { - "$ref": "#/definitions/ParsedHookNode" - }, - { - "$ref": "#/definitions/ParsedModelNode" - }, - { - "$ref": "#/definitions/ParsedRPCNode" - }, - { - "$ref": "#/definitions/ParsedSqlNode" - }, - { - "$ref": "#/definitions/ParsedGenericTestNode" - }, - { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" + "$ref": "#/definitions/SeedNode" } ] }, @@ -80,38 +54,45 @@ "sources": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/ParsedSourceDefinition" + "$ref": "#/definitions/SourceDefinition" }, "description": "The sources defined in the dbt project and its dependencies" }, "macros": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/ParsedMacro" + "$ref": "#/definitions/Macro" }, "description": "The macros defined in the dbt project and its dependencies" }, "docs": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/ParsedDocumentation" + "$ref": "#/definitions/Documentation" }, "description": "The docs defined in the dbt project and its dependencies" }, "exposures": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/ParsedExposure" + "$ref": "#/definitions/Exposure" }, "description": "The exposures defined in the dbt project and its dependencies" }, "metrics": { "type": "object", "additionalProperties": { - "$ref": "#/definitions/ParsedMetric" + "$ref": "#/definitions/Metric" }, "description": "The metrics defined in the dbt project and its dependencies" }, + "groups": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Group" + }, + "description": "The groups defined in the dbt project" + }, "selectors": { "type": "object", "description": "The selectors defined in selectors.yml" @@ -125,61 +106,40 @@ "items": { "oneOf": [ { - "$ref": "#/definitions/CompiledAnalysisNode" - }, - { - "$ref": "#/definitions/CompiledSingularTestNode" - }, - { - "$ref": "#/definitions/CompiledModelNode" - }, - { - "$ref": "#/definitions/CompiledHookNode" - }, - { - "$ref": "#/definitions/CompiledRPCNode" - }, - { - "$ref": "#/definitions/CompiledSqlNode" + "$ref": "#/definitions/AnalysisNode" }, { - "$ref": "#/definitions/CompiledGenericTestNode" + "$ref": "#/definitions/SingularTestNode" }, { - "$ref": "#/definitions/CompiledSeedNode" + "$ref": "#/definitions/HookNode" }, { - "$ref": "#/definitions/CompiledSnapshotNode" + "$ref": "#/definitions/ModelNode" }, { - "$ref": "#/definitions/ParsedAnalysisNode" + "$ref": "#/definitions/RPCNode" }, { - "$ref": "#/definitions/ParsedSingularTestNode" + "$ref": "#/definitions/SqlNode" }, { - "$ref": "#/definitions/ParsedHookNode" + "$ref": "#/definitions/GenericTestNode" }, { - "$ref": "#/definitions/ParsedModelNode" + "$ref": "#/definitions/SnapshotNode" }, { - "$ref": "#/definitions/ParsedRPCNode" + "$ref": "#/definitions/SeedNode" }, { - "$ref": "#/definitions/ParsedSqlNode" + "$ref": "#/definitions/SourceDefinition" }, { - "$ref": "#/definitions/ParsedGenericTestNode" + "$ref": "#/definitions/Exposure" }, { - "$ref": "#/definitions/ParsedSeedNode" - }, - { - "$ref": "#/definitions/ParsedSnapshotNode" - }, - { - "$ref": "#/definitions/ParsedSourceDefinition" + "$ref": "#/definitions/Metric" } ] } @@ -224,10 +184,27 @@ } ], "description": "A mapping from parent nodes to their dependents" + }, + "group_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from group names to their nodes" } }, "additionalProperties": false, - "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode]], sources: Mapping[str, dbt.contracts.graph.parsed.ParsedSourceDefinition], macros: Mapping[str, dbt.contracts.graph.parsed.ParsedMacro], docs: Mapping[str, dbt.contracts.graph.parsed.ParsedDocumentation], exposures: Mapping[str, dbt.contracts.graph.parsed.ParsedExposure], metrics: Mapping[str, dbt.contracts.graph.parsed.ParsedMetric], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.compiled.CompiledAnalysisNode, dbt.contracts.graph.compiled.CompiledSingularTestNode, dbt.contracts.graph.compiled.CompiledModelNode, dbt.contracts.graph.compiled.CompiledHookNode, dbt.contracts.graph.compiled.CompiledRPCNode, dbt.contracts.graph.compiled.CompiledSqlNode, dbt.contracts.graph.compiled.CompiledGenericTestNode, dbt.contracts.graph.compiled.CompiledSeedNode, dbt.contracts.graph.compiled.CompiledSnapshotNode, dbt.contracts.graph.parsed.ParsedAnalysisNode, dbt.contracts.graph.parsed.ParsedSingularTestNode, dbt.contracts.graph.parsed.ParsedHookNode, dbt.contracts.graph.parsed.ParsedModelNode, dbt.contracts.graph.parsed.ParsedRPCNode, dbt.contracts.graph.parsed.ParsedSqlNode, dbt.contracts.graph.parsed.ParsedGenericTestNode, dbt.contracts.graph.parsed.ParsedSeedNode, dbt.contracts.graph.parsed.ParsedSnapshotNode, dbt.contracts.graph.parsed.ParsedSourceDefinition]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]])", + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode]], sources: Mapping[str, dbt.contracts.graph.nodes.SourceDefinition], macros: Mapping[str, dbt.contracts.graph.nodes.Macro], docs: Mapping[str, dbt.contracts.graph.nodes.Documentation], exposures: Mapping[str, dbt.contracts.graph.nodes.Exposure], metrics: Mapping[str, dbt.contracts.graph.nodes.Metric], groups: Mapping[str, dbt.contracts.graph.nodes.Group], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode, dbt.contracts.graph.nodes.SourceDefinition, dbt.contracts.graph.nodes.Exposure, dbt.contracts.graph.nodes.Metric]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]], group_map: Optional[Dict[str, List[str]]])", "definitions": { "ManifestMetadata": { "type": "object", @@ -235,16 +212,16 @@ "properties": { "dbt_schema_version": { "type": "string", - "default": "https://schemas.getdbt.com/dbt/manifest/v6.json" + "default": "https://schemas.getdbt.com/dbt/manifest/v9.json" }, "dbt_version": { "type": "string", - "default": "1.2.0a1" + "default": "1.6.0a1" }, "generated_at": { "type": "string", "format": "date-time", - "default": "2022-07-05T17:06:02.022011Z" + "default": "2023-04-21T11:09:06.496436Z" }, "invocation_id": { "oneOf": [ @@ -255,7 +232,7 @@ "type": "null" } ], - "default": "6cec400a-e8a4-4480-8ceb-d35589d12bab" + "default": "c4b245be-8edb-4ad7-ba54-9337ce594f5d" }, "env": { "type": "object", @@ -313,30 +290,21 @@ "additionalProperties": false, "description": "Metadata for the manifest." }, - "CompiledAnalysisNode": { + "AnalysisNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -350,19 +318,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -371,14 +336,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -395,7 +360,9 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "view", + "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, @@ -403,6 +370,14 @@ "unique_key": null, "on_schema_change": "ignore", "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, "post-hook": [], "pre-hook": [] } @@ -414,43 +389,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -466,13 +404,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -482,7 +414,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -512,13 +451,13 @@ }, "created_at": { "type": "number", - "default": 1657040762.0262258 + "default": 1682075346.49809 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { "oneOf": [ { "type": "string" @@ -528,18 +467,63 @@ } ] }, - "extra_ctes_injected": { - "type": "boolean", - "default": false + "raw_code": { + "type": "string", + "default": "" }, - "extra_ctes": { + "language": { + "type": "string", + "default": "sql" + }, + "refs": { "type": "array", "items": { - "$ref": "#/definitions/InjectedCTE" + "$ref": "#/definitions/RefArgs" }, "default": [] }, - "relation_name": { + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { "oneOf": [ { "type": "string" @@ -548,10 +532,28 @@ "type": "null" } ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } } }, "additionalProperties": false, - "description": "CompiledAnalysisNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + "description": "AnalysisNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" }, "FileHash": { "type": "object", @@ -626,10 +628,30 @@ "type": "object", "default": {} }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "materialized": { "type": "string", "default": "view" }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "persist_docs": { "type": "object", "default": {} @@ -696,10 +718,30 @@ "grants": { "type": "object", "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } } }, "additionalProperties": true, - "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'view', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = )" + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'view', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = )" }, "Hook": { "type": "object", @@ -728,27 +770,39 @@ "additionalProperties": false, "description": "Hook(sql: str, transaction: bool = True, index: Optional[int] = None)" }, - "DependsOn": { + "Docs": { "type": "object", "required": [], "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] + "show": { + "type": "boolean", + "default": true }, - "nodes": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] + "node_color": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, - "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + "description": "Docs(show: bool = True, node_color: Optional[str] = None)" + }, + "ContractConfig": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "description": "ContractConfig(enforced: bool = False)" }, "ColumnInfo": { "type": "object", @@ -777,6 +831,13 @@ } ] }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ColumnLevelConstraint" + }, + "default": [] + }, "quote": { "oneOf": [ { @@ -796,19 +857,114 @@ } }, "additionalProperties": true, - "description": "ColumnInfo(name: str, description: str = '', meta: Dict[str, Any] = , data_type: Optional[str] = None, quote: Optional[bool] = None, tags: List[str] = , _extra: Dict[str, Any] = )" + "description": "Used in all ManifestNodes and SourceDefinition" }, - "Docs": { + "ColumnLevelConstraint": { "type": "object", - "required": [], + "required": [ + "type" + ], "properties": { - "show": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "warn_unenforced": { "type": "boolean", "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "ColumnLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Optional[str] = None, expression: Optional[str] = None, warn_unenforced: bool = True, warn_unsupported: bool = True)" + }, + "RefArgs": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "package": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "RefArgs(name: str, package: Optional[str] = None, version: Union[str, float, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] } }, "additionalProperties": false, - "description": "Docs(show: bool = True)" + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" }, "InjectedCTE": { "type": "object", @@ -825,32 +981,45 @@ } }, "additionalProperties": false, - "description": "InjectedCTE(id: str, sql: str)" + "description": "Used in CompiledNodes as part of ephemeral model processing" + }, + "Contract": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "checksum": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Contract(enforced: bool = False, checksum: Optional[str] = None)" }, - "CompiledSingularTestNode": { + "SingularTestNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -864,19 +1033,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "test" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -885,14 +1051,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -909,6 +1075,7 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, @@ -926,43 +1093,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -978,13 +1108,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -994,7 +1118,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -1024,13 +1155,13 @@ }, "created_at": { "type": "number", - "default": 1657040762.028276 + "default": 1682075346.499299 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { "oneOf": [ { "type": "string" @@ -1040,38 +1171,101 @@ } ] }, - "extra_ctes_injected": { - "type": "boolean", - "default": false + "raw_code": { + "type": "string", + "default": "" }, - "extra_ctes": { + "language": { + "type": "string", + "default": "sql" + }, + "refs": { "type": "array", "items": { - "$ref": "#/definitions/InjectedCTE" + "$ref": "#/definitions/RefArgs" }, "default": [] }, - "relation_name": { - "oneOf": [ - { + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { "type": "string" - }, - { - "type": "null" } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSingularTestNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" - }, - "TestConfig": { - "type": "object", - "required": [], - "properties": { - "enabled": { - "type": "boolean", - "default": true + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SingularTestNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true }, "alias": { "oneOf": [ @@ -1122,6 +1316,16 @@ "type": "object", "default": {} }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "materialized": { "type": "string", "default": "test" @@ -1175,32 +1379,23 @@ } }, "additionalProperties": true, - "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" }, - "CompiledModelNode": { + "HookNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -1214,19 +1409,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -1235,14 +1427,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -1259,7 +1451,9 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "view", + "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, @@ -1267,6 +1461,14 @@ "unique_key": null, "on_schema_change": "ignore", "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, "post-hook": [], "pre-hook": [] } @@ -1278,43 +1480,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -1330,13 +1495,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -1346,7 +1505,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -1376,13 +1542,79 @@ }, "created_at": { "type": "number", - "default": 1657040762.0294158 + "default": 1682075346.4999008 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { "oneOf": [ { "type": "string" @@ -1403,10 +1635,17 @@ }, "default": [] }, - "relation_name": { + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "index": { "oneOf": [ { - "type": "string" + "type": "integer" }, { "type": "null" @@ -1415,32 +1654,23 @@ } }, "additionalProperties": false, - "description": "CompiledModelNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + "description": "HookNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , index: Optional[int] = None)" }, - "CompiledHookNode": { + "ModelNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -1454,19 +1684,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "model" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -1475,14 +1702,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -1499,7 +1726,9 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "view", + "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, @@ -1507,6 +1736,14 @@ "unique_key": null, "on_schema_change": "ignore", "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, "post-hook": [], "pre-hook": [] } @@ -1518,43 +1755,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -1570,13 +1770,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -1586,7 +1780,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -1616,13 +1817,79 @@ }, "created_at": { "type": "number", - "default": 1657040762.030488 + "default": 1682075346.500488 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { "oneOf": [ { "type": "string" @@ -1643,54 +1910,130 @@ }, "default": [] }, - "relation_name": { + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "access": { + "type": "string", + "enum": [ + "protected", + "private", + "public" + ], + "default": "protected" + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ModelLevelConstraint" + }, + "default": [] + }, + "version": { "oneOf": [ { "type": "string" }, + { + "type": "number" + }, { "type": "null" } ] }, - "index": { + "latest_version": { "oneOf": [ { - "type": "integer" + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ModelNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , access: dbt.node_types.AccessType = , constraints: List[dbt.contracts.graph.nodes.ModelLevelConstraint] = , version: Union[str, float, NoneType] = None, latest_version: Union[str, float, NoneType] = None)" + }, + "ModelLevelConstraint": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" }, { "type": "null" } ] + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "columns": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] } }, "additionalProperties": false, - "description": "CompiledHookNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, index: Optional[int] = None)" + "description": "ModelLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Optional[str] = None, expression: Optional[str] = None, warn_unenforced: bool = True, warn_unsupported: bool = True, columns: List[str] = )" }, - "CompiledRPCNode": { + "RPCNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -1704,19 +2047,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -1725,14 +2065,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -1749,7 +2089,9 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "view", + "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, @@ -1757,6 +2099,14 @@ "unique_key": null, "on_schema_change": "ignore", "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, "post-hook": [], "pre-hook": [] } @@ -1768,46 +2118,9 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" + "description": { + "type": "string", + "default": "" }, "columns": { "type": "object", @@ -1820,13 +2133,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -1836,7 +2143,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -1866,13 +2180,13 @@ }, "created_at": { "type": "number", - "default": 1657040762.031699 + "default": 1682075346.50125 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { "oneOf": [ { "type": "string" @@ -1882,18 +2196,63 @@ } ] }, - "extra_ctes_injected": { - "type": "boolean", - "default": false + "raw_code": { + "type": "string", + "default": "" }, - "extra_ctes": { + "language": { + "type": "string", + "default": "sql" + }, + "refs": { "type": "array", "items": { - "$ref": "#/definitions/InjectedCTE" + "$ref": "#/definitions/RefArgs" }, "default": [] }, - "relation_name": { + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { "oneOf": [ { "type": "string" @@ -1902,35 +2261,44 @@ "type": "null" } ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } } }, "additionalProperties": false, - "description": "CompiledRPCNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + "description": "RPCNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" }, - "CompiledSqlNode": { + "SqlNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -1944,19 +2312,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -1965,14 +2330,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "sql" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -1989,7 +2354,9 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "view", + "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, @@ -1997,6 +2364,14 @@ "unique_key": null, "on_schema_change": "ignore", "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, "post-hook": [], "pre-hook": [] } @@ -2008,43 +2383,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -2060,13 +2398,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -2076,7 +2408,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -2106,13 +2445,13 @@ }, "created_at": { "type": "number", - "default": 1657040762.032803 + "default": 1682075346.501826 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { "oneOf": [ { "type": "string" @@ -2122,18 +2461,49 @@ } ] }, - "extra_ctes_injected": { - "type": "boolean", - "default": false + "raw_code": { + "type": "string", + "default": "" }, - "extra_ctes": { + "language": { + "type": "string", + "default": "sql" + }, + "refs": { "type": "array", "items": { - "$ref": "#/definitions/InjectedCTE" + "$ref": "#/definitions/RefArgs" }, "default": [] }, - "relation_name": { + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { "oneOf": [ { "type": "string" @@ -2142,39 +2512,62 @@ "type": "null" } ] - } - }, - "additionalProperties": false, - "description": "CompiledSqlNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" - }, - "CompiledGenericTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "compiled", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SqlNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "GenericTestNode": { + "type": "object", + "required": [ + "test_metadata", + "schema", + "name", "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, "test_metadata": { "$ref": "#/definitions/TestMetadata" }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -2188,19 +2581,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "test" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -2209,14 +2599,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -2233,6 +2623,7 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, @@ -2250,43 +2641,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -2302,13 +2656,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -2318,7 +2666,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -2348,13 +2703,79 @@ }, "created_at": { "type": "number", - "default": 1657040762.0341172 + "default": 1682075346.502492 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { "oneOf": [ { "type": "string" @@ -2375,7 +2796,14 @@ }, "default": [] }, - "relation_name": { + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "column_name": { "oneOf": [ { "type": "string" @@ -2385,7 +2813,7 @@ } ] }, - "column_name": { + "file_key_name": { "oneOf": [ { "type": "string" @@ -2395,7 +2823,7 @@ } ] }, - "file_key_name": { + "attached_node": { "oneOf": [ { "type": "string" @@ -2407,7 +2835,7 @@ } }, "additionalProperties": false, - "description": "CompiledGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None, column_name: Optional[str] = None, file_key_name: Optional[str] = None)" + "description": "GenericTestNode(test_metadata: dbt.contracts.graph.nodes.TestMetadata, database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , column_name: Optional[str] = None, file_key_name: Optional[str] = None, attached_node: Optional[str] = None)" }, "TestMetadata": { "type": "object", @@ -2436,30 +2864,22 @@ "additionalProperties": false, "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Optional[str] = None)" }, - "CompiledSeedNode": { + "SnapshotNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", - "checksum" + "checksum", + "config" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -2473,19 +2893,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -2494,14 +2911,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -2510,26 +2927,7 @@ "$ref": "#/definitions/FileHash" }, "config": { - "$ref": "#/definitions/SeedConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "seed", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "unique_key": null, - "on_schema_change": "ignore", - "grants": {}, - "quote_columns": null, - "post-hook": [], - "pre-hook": [] - } + "$ref": "#/definitions/SnapshotConfig" }, "tags": { "type": "array", @@ -2538,43 +2936,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -2590,13 +2951,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -2606,7 +2961,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -2636,13 +2998,13 @@ }, "created_at": { "type": "number", - "default": 1657040762.035997 + "default": 1682075346.503581 }, "config_call_dict": { "type": "object", "default": {} }, - "compiled_sql": { + "relation_name": { "oneOf": [ { "type": "string" @@ -2652,18 +3014,63 @@ } ] }, - "extra_ctes_injected": { - "type": "boolean", - "default": false + "raw_code": { + "type": "string", + "default": "" }, - "extra_ctes": { + "language": { + "type": "string", + "default": "sql" + }, + "refs": { "type": "array", "items": { - "$ref": "#/definitions/InjectedCTE" + "$ref": "#/definitions/RefArgs" }, "default": [] }, - "relation_name": { + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { "oneOf": [ { "type": "string" @@ -2672,12 +3079,30 @@ "type": "null" } ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } } }, "additionalProperties": false, - "description": "CompiledSeedNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" + "description": "SnapshotNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" }, - "SeedConfig": { + "SnapshotConfig": { "type": "object", "required": [], "properties": { @@ -2733,9 +3158,29 @@ "type": "object", "default": {} }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "materialized": { "type": "string", - "default": "seed" + "default": "snapshot" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "persist_docs": { "type": "object", @@ -2778,12 +3223,6 @@ { "type": "string" }, - { - "type": "array", - "items": { - "type": "string" - } - }, { "type": "null" } @@ -2804,10 +3243,76 @@ "type": "object", "default": {} }, - "quote_columns": { + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + }, + "strategy": { "oneOf": [ { - "type": "boolean" + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } }, { "type": "null" @@ -2816,32 +3321,23 @@ } }, "additionalProperties": true, - "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'seed', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , quote_columns: Optional[bool] = None)" + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'snapshot', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" }, - "CompiledSnapshotNode": { + "SeedNode": { "type": "object", "required": [ - "raw_sql", - "compiled", "schema", - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "resource_type", + "unique_id", + "fqn", "alias", "checksum" ], "properties": { - "raw_sql": { - "type": "string" - }, - "compiled": { - "type": "boolean" - }, "database": { "oneOf": [ { @@ -2855,19 +3351,16 @@ "schema": { "type": "string" }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -2876,14 +3369,14 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] + "fqn": { + "type": "array", + "items": { + "type": "string" + } }, "alias": { "type": "string" @@ -2892,1708 +3385,7 @@ "$ref": "#/definitions/FileHash" }, "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "unique_key": null, - "on_schema_change": "ignore", - "grants": {}, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.037313 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "compiled_sql": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "extra_ctes_injected": { - "type": "boolean", - "default": false - }, - "extra_ctes": { - "type": "array", - "items": { - "$ref": "#/definitions/InjectedCTE" - }, - "default": [] - }, - "relation_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "CompiledSnapshotNode(raw_sql: str, compiled: bool, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , compiled_sql: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.compiled.InjectedCTE] = , relation_name: Optional[str] = None, _pre_injected_sql: Optional[str] = None)" - }, - "ParsedAnalysisNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "analysis" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "unique_key": null, - "on_schema_change": "ignore", - "grants": {}, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.038346 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedAnalysisNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSingularTestNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.039365 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSingularTestNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedHookNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "operation" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "unique_key": null, - "on_schema_change": "ignore", - "grants": {}, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.0402749 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "index": { - "oneOf": [ - { - "type": "integer" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedHookNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , index: Optional[int] = None)" - }, - "ParsedModelNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "model" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "unique_key": null, - "on_schema_change": "ignore", - "grants": {}, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.041198 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedModelNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedRPCNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "rpc" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "unique_key": null, - "on_schema_change": "ignore", - "grants": {}, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.0420969 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedRPCNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSqlNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "sql" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/NodeConfig", - "default": { - "enabled": true, - "alias": null, - "schema": null, - "database": null, - "tags": [], - "meta": {}, - "materialized": "view", - "persist_docs": {}, - "quoting": {}, - "column_types": {}, - "full_refresh": null, - "unique_key": null, - "on_schema_change": "ignore", - "grants": {}, - "post-hook": [], - "pre-hook": [] - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.0429912 - }, - "config_call_dict": { - "type": "object", - "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSqlNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedGenericTestNode": { - "type": "object", - "required": [ - "raw_sql", - "test_metadata", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "test_metadata": { - "$ref": "#/definitions/TestMetadata" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "test" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/TestConfig", - "default": { - "enabled": true, - "alias": null, - "schema": "dbt_test__audit", - "database": null, - "tags": [], - "meta": {}, - "materialized": "test", - "severity": "ERROR", - "store_failures": null, - "where": null, - "limit": null, - "fail_calc": "count(*)", - "warn_if": "!= 0", - "error_if": "!= 0" - } - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} - }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "build_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.043911 - }, - "config_call_dict": { - "type": "object", - "default": {} - }, - "column_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "file_key_name": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - } - }, - "additionalProperties": false, - "description": "ParsedGenericTestNode(raw_sql: str, test_metadata: dbt.contracts.graph.parsed.TestMetadata, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , column_name: Optional[str] = None, file_key_name: Optional[str] = None)" - }, - "ParsedSeedNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "seed" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SeedConfig", + "$ref": "#/definitions/SeedConfig", "default": { "enabled": true, "alias": null, @@ -4601,7 +3393,9 @@ "database": null, "tags": [], "meta": {}, + "group": null, "materialized": "seed", + "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, @@ -4609,6 +3403,14 @@ "unique_key": null, "on_schema_change": "ignore", "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, "quote_columns": null, "post-hook": [], "pre-hook": [] @@ -4621,43 +3423,6 @@ }, "default": [] }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, "description": { "type": "string", "default": "" @@ -4673,13 +3438,7 @@ "type": "object", "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "group": { "oneOf": [ { "type": "string" @@ -4689,7 +3448,14 @@ } ] }, - "compiled_path": { + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { "oneOf": [ { "type": "string" @@ -4719,155 +3485,13 @@ }, "created_at": { "type": "number", - "default": 1657040762.044916 + "default": 1682075346.504591 }, "config_call_dict": { "type": "object", "default": {} - } - }, - "additionalProperties": false, - "description": "ParsedSeedNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" - }, - "ParsedSnapshotNode": { - "type": "object", - "required": [ - "raw_sql", - "schema", - "fqn", - "unique_id", - "package_name", - "root_path", - "path", - "original_file_path", - "name", - "resource_type", - "alias", - "checksum", - "config" - ], - "properties": { - "raw_sql": { - "type": "string" - }, - "database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "schema": { - "type": "string" - }, - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { - "type": "string" - }, - "package_name": { - "type": "string" - }, - "root_path": { - "type": "string" - }, - "path": { - "type": "string" - }, - "original_file_path": { - "type": "string" - }, - "name": { - "type": "string" - }, - "resource_type": { - "type": "string", - "enum": [ - "snapshot" - ] - }, - "alias": { - "type": "string" - }, - "checksum": { - "$ref": "#/definitions/FileHash" - }, - "config": { - "$ref": "#/definitions/SnapshotConfig" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "refs": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "sources": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "metrics": { - "type": "array", - "items": { - "type": "array", - "items": { - "type": "string" - } - }, - "default": [] - }, - "depends_on": { - "$ref": "#/definitions/DependsOn", - "default": { - "macros": [], - "nodes": [] - } - }, - "description": { - "type": "string", - "default": "" - }, - "columns": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ColumnInfo" - }, - "default": {} - }, - "meta": { - "type": "object", - "default": {} }, - "docs": { - "$ref": "#/definitions/Docs", - "default": { - "show": true - } - }, - "patch_path": { + "relation_name": { "oneOf": [ { "type": "string" @@ -4877,17 +3501,11 @@ } ] }, - "compiled_path": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "raw_code": { + "type": "string", + "default": "" }, - "build_path": { + "root_path": { "oneOf": [ { "type": "string" @@ -4897,27 +3515,17 @@ } ] }, - "deferred": { - "type": "boolean", - "default": false - }, - "unrendered_config": { - "type": "object", - "default": {} - }, - "created_at": { - "type": "number", - "default": 1657040762.04684 - }, - "config_call_dict": { - "type": "object", - "default": {} + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } } }, "additionalProperties": false, - "description": "ParsedSnapshotNode(raw_sql: str, database: Optional[str], schema: str, fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, resource_type: dbt.node_types.NodeType, alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , refs: List[List[str]] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, compiled_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = )" + "description": "SeedNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', root_path: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = )" }, - "SnapshotConfig": { + "SeedConfig": { "type": "object", "required": [], "properties": { @@ -4973,9 +3581,29 @@ "type": "object", "default": {} }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "materialized": { "type": "string", - "default": "snapshot" + "default": "seed" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "persist_docs": { "type": "object", @@ -5018,6 +3646,12 @@ { "type": "string" }, + { + "type": "array", + "items": { + "type": "string" + } + }, { "type": "null" } @@ -5038,56 +3672,30 @@ "type": "object", "default": {} }, - "strategy": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, - "target_schema": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] }, - "target_database": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } }, - "updated_at": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } }, - "check_cols": { + "quote_columns": { "oneOf": [ { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } + "type": "boolean" }, { "type": "null" @@ -5096,32 +3704,40 @@ } }, "additionalProperties": true, - "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , materialized: str = 'snapshot', persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'seed', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , quote_columns: Optional[bool] = None)" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "Used only in the Macro class" }, - "ParsedSourceDefinition": { + "SourceDefinition": { "type": "object", "required": [ - "fqn", "schema", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", + "unique_id", + "fqn", "source_name", "source_description", "loader", - "identifier", - "resource_type" + "identifier" ], "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, "database": { "oneOf": [ { @@ -5135,13 +3751,16 @@ "schema": { "type": "string" }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "source" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -5150,9 +3769,15 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, "source_name": { "type": "string" }, @@ -5165,12 +3790,6 @@ "identifier": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "source" - ] - }, "quoting": { "$ref": "#/definitions/Quoting", "default": { @@ -5268,11 +3887,11 @@ }, "created_at": { "type": "number", - "default": 1657040762.048556 + "default": 1682075346.505582 } }, "additionalProperties": false, - "description": "ParsedSourceDefinition(fqn: List[str], database: Optional[str], schema: str, unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, source_name: str, source_description: str, loader: str, identifier: str, resource_type: dbt.node_types.NodeType, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.parsed.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[pathlib.Path] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" + "description": "SourceDefinition(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], source_name: str, source_description: str, loader: str, identifier: str, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[str] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" }, "Quoting": { "type": "object", @@ -5378,12 +3997,12 @@ }, "dbt_version": { "type": "string", - "default": "1.2.0a1" + "default": "1.6.0a1" }, "generated_at": { "type": "string", "format": "date-time", - "default": "2022-07-05T17:06:02.017833Z" + "default": "2023-04-21T11:09:06.494387Z" }, "invocation_id": { "oneOf": [ @@ -5394,7 +4013,7 @@ "type": "null" } ], - "default": "6cec400a-e8a4-4480-8ceb-d35589d12bab" + "default": "c4b245be-8edb-4ad7-ba54-9337ce594f5d" }, "env": { "type": "object", @@ -5405,7 +4024,7 @@ } }, "additionalProperties": false, - "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.2.0a1', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.6.0a1', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" }, "SourceFreshnessRuntimeError": { "type": "object", @@ -5614,6 +4233,12 @@ }, "partitions": { "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, { "type": "array", "items": { @@ -5627,7 +4252,7 @@ } }, "additionalProperties": true, - "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Optional[List[dbt.contracts.graph.unparsed.ExternalPartition]] = None)" + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Union[List[str], List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" }, "ExternalPartition": { "type": "object", @@ -5665,26 +4290,28 @@ "additionalProperties": true, "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" }, - "ParsedMacro": { + "Macro": { "type": "object", "required": [ - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "macro_sql", - "resource_type" + "unique_id", + "macro_sql" ], "properties": { - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -5693,25 +4320,12 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, "macro_sql": { "type": "string" }, - "resource_type": { - "type": "string", - "enum": [ - "macro" - ] - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, "depends_on": { "$ref": "#/definitions/MacroDependsOn", "default": { @@ -5729,7 +4343,8 @@ "docs": { "$ref": "#/definitions/Docs", "default": { - "show": true + "show": true, + "node_color": null } }, "patch_path": { @@ -5751,26 +4366,28 @@ }, "created_at": { "type": "number", - "default": 1657040762.049289 - } - }, - "additionalProperties": false, - "description": "ParsedMacro(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, macro_sql: str, resource_type: dbt.node_types.NodeType, tags: List[str] = , depends_on: dbt.contracts.graph.parsed.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = )" - }, - "MacroDependsOn": { - "type": "object", - "required": [], - "properties": { - "macros": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] + "default": 1682075346.505871 + }, + "supported_languages": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "python", + "sql" + ] + } + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, - "description": "MacroDependsOn(macros: List[str] = )" + "description": "Macro(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, macro_sql: str, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = , supported_languages: Optional[List[dbt.node_types.ModelLanguage]] = None)" }, "MacroArgument": { "type": "object", @@ -5799,25 +4416,28 @@ "additionalProperties": false, "description": "MacroArgument(name: str, type: Optional[str] = None, description: str = '')" }, - "ParsedDocumentation": { + "Documentation": { "type": "object", "required": [ - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", + "unique_id", "block_contents" ], "properties": { - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "doc" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -5826,7 +4446,7 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, "block_contents": { @@ -5834,35 +4454,32 @@ } }, "additionalProperties": false, - "description": "ParsedDocumentation(unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, block_contents: str)" + "description": "Documentation(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, block_contents: str)" }, - "ParsedExposure": { + "Exposure": { "type": "object", "required": [ - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", - "type", - "owner" - ], - "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "unique_id", + "fqn", + "type", + "owner" + ], + "properties": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "exposure" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -5871,9 +4488,15 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, "type": { "type": "string", "enum": [ @@ -5885,31 +4508,22 @@ ] }, "owner": { - "$ref": "#/definitions/ExposureOwner" - }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "sql", - "docs", - "source", - "macro", - "exposure", - "metric" - ], - "default": "exposure" + "$ref": "#/definitions/Owner" }, "description": { "type": "string", "default": "" }, + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, "maturity": { "oneOf": [ { @@ -5936,6 +4550,16 @@ }, "default": [] }, + "config": { + "$ref": "#/definitions/ExposureConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, "url": { "oneOf": [ { @@ -5954,6 +4578,13 @@ } }, "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { "type": "array", "items": { "type": "array", @@ -5963,7 +4594,7 @@ }, "default": [] }, - "sources": { + "metrics": { "type": "array", "items": { "type": "array", @@ -5975,20 +4606,25 @@ }, "created_at": { "type": "number", - "default": 1657040762.050287 + "default": 1682075346.50651 } }, "additionalProperties": false, - "description": "ParsedExposure(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.ExposureOwner, resource_type: dbt.node_types.NodeType = , description: str = '', maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , sources: List[List[str]] = , created_at: float = )" + "description": "Exposure(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.Owner, description: str = '', label: Optional[str] = None, maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.ExposureConfig = , unrendered_config: Dict[str, Any] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" }, - "ExposureOwner": { + "Owner": { "type": "object", - "required": [ - "email" - ], + "required": [], "properties": { "email": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] }, "name": { "oneOf": [ @@ -6001,41 +4637,50 @@ ] } }, - "additionalProperties": false, - "description": "ExposureOwner(email: str, name: Optional[str] = None)" + "additionalProperties": true, + "description": "Owner(_extra: Dict[str, Any] = , email: Optional[str] = None, name: Optional[str] = None)" + }, + "ExposureConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "ExposureConfig(_extra: Dict[str, Any] = , enabled: bool = True)" }, - "ParsedMetric": { + "Metric": { "type": "object", "required": [ - "fqn", - "unique_id", + "name", + "resource_type", "package_name", - "root_path", "path", "original_file_path", - "name", + "unique_id", + "fqn", "description", "label", - "type", - "sql", + "calculation_method", + "expression", "filters", "time_grains", "dimensions" ], "properties": { - "fqn": { - "type": "array", - "items": { - "type": "string" - } - }, - "unique_id": { + "name": { "type": "string" }, - "package_name": { - "type": "string" + "resource_type": { + "type": "string", + "enum": [ + "metric" + ] }, - "root_path": { + "package_name": { "type": "string" }, "path": { @@ -6044,31 +4689,27 @@ "original_file_path": { "type": "string" }, - "name": { + "unique_id": { "type": "string" }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, "description": { "type": "string" }, "label": { "type": "string" }, - "type": { + "calculation_method": { "type": "string" }, - "sql": { + "expression": { "type": "string" }, - "timestamp": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "null" - } - ] - }, "filters": { "type": "array", "items": { @@ -6087,6 +4728,26 @@ "type": "string" } }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "window": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTime" + }, + { + "type": "null" + } + ] + }, "model": { "oneOf": [ { @@ -6107,25 +4768,6 @@ } ] }, - "resource_type": { - "type": "string", - "enum": [ - "model", - "analysis", - "test", - "snapshot", - "operation", - "seed", - "rpc", - "sql", - "docs", - "source", - "macro", - "exposure", - "metric" - ], - "default": "metric" - }, "meta": { "type": "object", "default": {} @@ -6137,6 +4779,17 @@ }, "default": [] }, + "config": { + "$ref": "#/definitions/MetricConfig", + "default": { + "enabled": true, + "group": null + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, "sources": { "type": "array", "items": { @@ -6157,10 +4810,7 @@ "refs": { "type": "array", "items": { - "type": "array", - "items": { - "type": "string" - } + "$ref": "#/definitions/RefArgs" }, "default": [] }, @@ -6176,11 +4826,21 @@ }, "created_at": { "type": "number", - "default": 1657040762.051152 + "default": 1682075346.507186 + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] } }, "additionalProperties": false, - "description": "ParsedMetric(fqn: List[str], unique_id: str, package_name: str, root_path: str, path: str, original_file_path: str, name: str, description: str, label: str, type: str, sql: str, timestamp: Optional[str], filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], model: Optional[str] = None, model_unique_id: Optional[str] = None, resource_type: dbt.node_types.NodeType = , meta: Dict[str, Any] = , tags: List[str] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.parsed.DependsOn = , refs: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + "description": "Metric(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], description: str, label: str, calculation_method: str, expression: str, filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], timestamp: Optional[str] = None, window: Optional[dbt.contracts.graph.unparsed.MetricTime] = None, model: Optional[str] = None, model_unique_id: Optional[str] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.MetricConfig = , unrendered_config: Dict[str, Any] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , metrics: List[List[str]] = , created_at: float = , group: Optional[str] = None)" }, "MetricFilter": { "type": "object", @@ -6202,8 +4862,104 @@ }, "additionalProperties": false, "description": "MetricFilter(field: str, operator: str, value: str)" + }, + "MetricTime": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricTime(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.MetricTimePeriod] = None)" + }, + "MetricConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "MetricConfig(_extra: Dict[str, Any] = , enabled: bool = True, group: Optional[str] = None)" + }, + "Group": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "group" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/Owner" + } + }, + "additionalProperties": false, + "description": "Group(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, owner: dbt.contracts.graph.unparsed.Owner)" } }, "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://schemas.getdbt.com/dbt/manifest/v6.json" -} + "$id": "https://schemas.getdbt.com/dbt/manifest/v9.json" +} \ No newline at end of file diff --git a/yoda_dbt2looker/dbt_json_schemas/manifest_v9.json b/yoda_dbt2looker/dbt_json_schemas/manifest_v9.json new file mode 100644 index 0000000..01513b7 --- /dev/null +++ b/yoda_dbt2looker/dbt_json_schemas/manifest_v9.json @@ -0,0 +1,4965 @@ +{ + "type": "object", + "required": [ + "metadata", + "nodes", + "sources", + "macros", + "docs", + "exposures", + "metrics", + "groups", + "selectors" + ], + "properties": { + "metadata": { + "$ref": "#/definitions/ManifestMetadata", + "description": "Metadata about the manifest" + }, + "nodes": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + } + ] + }, + "description": "The nodes defined in the dbt project and its dependencies" + }, + "sources": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/SourceDefinition" + }, + "description": "The sources defined in the dbt project and its dependencies" + }, + "macros": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Macro" + }, + "description": "The macros defined in the dbt project and its dependencies" + }, + "docs": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Documentation" + }, + "description": "The docs defined in the dbt project and its dependencies" + }, + "exposures": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Exposure" + }, + "description": "The exposures defined in the dbt project and its dependencies" + }, + "metrics": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Metric" + }, + "description": "The metrics defined in the dbt project and its dependencies" + }, + "groups": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/Group" + }, + "description": "The groups defined in the dbt project" + }, + "selectors": { + "type": "object", + "description": "The selectors defined in selectors.yml" + }, + "disabled": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/definitions/AnalysisNode" + }, + { + "$ref": "#/definitions/SingularTestNode" + }, + { + "$ref": "#/definitions/HookNode" + }, + { + "$ref": "#/definitions/ModelNode" + }, + { + "$ref": "#/definitions/RPCNode" + }, + { + "$ref": "#/definitions/SqlNode" + }, + { + "$ref": "#/definitions/GenericTestNode" + }, + { + "$ref": "#/definitions/SnapshotNode" + }, + { + "$ref": "#/definitions/SeedNode" + }, + { + "$ref": "#/definitions/SourceDefinition" + }, + { + "$ref": "#/definitions/Exposure" + }, + { + "$ref": "#/definitions/Metric" + } + ] + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping of the disabled nodes in the target" + }, + "parent_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from\u00a0child nodes to their dependencies" + }, + "child_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from parent nodes to their dependents" + }, + "group_map": { + "oneOf": [ + { + "type": "object", + "additionalProperties": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "type": "null" + } + ], + "description": "A mapping from group names to their nodes" + } + }, + "additionalProperties": false, + "description": "WritableManifest(metadata: dbt.contracts.graph.manifest.ManifestMetadata, nodes: Mapping[str, Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode]], sources: Mapping[str, dbt.contracts.graph.nodes.SourceDefinition], macros: Mapping[str, dbt.contracts.graph.nodes.Macro], docs: Mapping[str, dbt.contracts.graph.nodes.Documentation], exposures: Mapping[str, dbt.contracts.graph.nodes.Exposure], metrics: Mapping[str, dbt.contracts.graph.nodes.Metric], groups: Mapping[str, dbt.contracts.graph.nodes.Group], selectors: Mapping[str, Any], disabled: Optional[Mapping[str, List[Union[dbt.contracts.graph.nodes.AnalysisNode, dbt.contracts.graph.nodes.SingularTestNode, dbt.contracts.graph.nodes.HookNode, dbt.contracts.graph.nodes.ModelNode, dbt.contracts.graph.nodes.RPCNode, dbt.contracts.graph.nodes.SqlNode, dbt.contracts.graph.nodes.GenericTestNode, dbt.contracts.graph.nodes.SnapshotNode, dbt.contracts.graph.nodes.SeedNode, dbt.contracts.graph.nodes.SourceDefinition, dbt.contracts.graph.nodes.Exposure, dbt.contracts.graph.nodes.Metric]]]], parent_map: Optional[Dict[str, List[str]]], child_map: Optional[Dict[str, List[str]]], group_map: Optional[Dict[str, List[str]]])", + "definitions": { + "ManifestMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/manifest/v9.json" + }, + "dbt_version": { + "type": "string", + "default": "1.6.0a1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2023-04-21T11:09:06.496436Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "c4b245be-8edb-4ad7-ba54-9337ce594f5d" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + }, + "project_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the project" + }, + "user_id": { + "oneOf": [ + { + "type": "string", + "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}" + }, + { + "type": "null" + } + ], + "description": "A unique identifier for the user" + }, + "send_anonymous_usage_stats": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ], + "description": "Whether dbt is configured to send anonymous usage statistics" + }, + "adapter_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "description": "The type name of the adapter" + } + }, + "additionalProperties": false, + "description": "Metadata for the manifest." + }, + "AnalysisNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "analysis" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.49809 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "AnalysisNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "FileHash": { + "type": "object", + "required": [ + "name", + "checksum" + ], + "properties": { + "name": { + "type": "string" + }, + "checksum": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "FileHash(name: str, checksum: str)" + }, + "NodeConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "view" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + } + }, + "additionalProperties": true, + "description": "NodeConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'view', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = )" + }, + "Hook": { + "type": "object", + "required": [ + "sql" + ], + "properties": { + "sql": { + "type": "string" + }, + "transaction": { + "type": "boolean", + "default": true + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Hook(sql: str, transaction: bool = True, index: Optional[int] = None)" + }, + "Docs": { + "type": "object", + "required": [], + "properties": { + "show": { + "type": "boolean", + "default": true + }, + "node_color": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Docs(show: bool = True, node_color: Optional[str] = None)" + }, + "ContractConfig": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "description": "ContractConfig(enforced: bool = False)" + }, + "ColumnInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "data_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ColumnLevelConstraint" + }, + "default": [] + }, + "quote": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": true, + "description": "Used in all ManifestNodes and SourceDefinition" + }, + "ColumnLevelConstraint": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "description": "ColumnLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Optional[str] = None, expression: Optional[str] = None, warn_unenforced: bool = True, warn_unsupported: bool = True)" + }, + "RefArgs": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "package": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "RefArgs(name: str, package: Optional[str] = None, version: Union[str, float, NoneType] = None)" + }, + "DependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "nodes": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "DependsOn(macros: List[str] = , nodes: List[str] = )" + }, + "InjectedCTE": { + "type": "object", + "required": [ + "id", + "sql" + ], + "properties": { + "id": { + "type": "string" + }, + "sql": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Used in CompiledNodes as part of ephemeral model processing" + }, + "Contract": { + "type": "object", + "required": [], + "properties": { + "enforced": { + "type": "boolean", + "default": false + }, + "checksum": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Contract(enforced: bool = False, checksum: Optional[str] = None)" + }, + "SingularTestNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.499299 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SingularTestNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "TestConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "dbt_test__audit" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "test" + }, + "severity": { + "type": "string", + "pattern": "^([Ww][Aa][Rr][Nn]|[Ee][Rr][Rr][Oo][Rr])$", + "default": "ERROR" + }, + "store_failures": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "where": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "limit": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "fail_calc": { + "type": "string", + "default": "count(*)" + }, + "warn_if": { + "type": "string", + "default": "!= 0" + }, + "error_if": { + "type": "string", + "default": "!= 0" + } + }, + "additionalProperties": true, + "description": "TestConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = 'dbt_test__audit', database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'test', severity: dbt.contracts.graph.model_config.Severity = 'ERROR', store_failures: Optional[bool] = None, where: Optional[str] = None, limit: Optional[int] = None, fail_calc: str = 'count(*)', warn_if: str = '!= 0', error_if: str = '!= 0')" + }, + "HookNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.4999008 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "index": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "HookNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , index: Optional[int] = None)" + }, + "ModelNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "model" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.500488 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "access": { + "type": "string", + "enum": [ + "protected", + "private", + "public" + ], + "default": "protected" + }, + "constraints": { + "type": "array", + "items": { + "$ref": "#/definitions/ModelLevelConstraint" + }, + "default": [] + }, + "version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + }, + "latest_version": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "ModelNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , access: dbt.node_types.AccessType = , constraints: List[dbt.contracts.graph.nodes.ModelLevelConstraint] = , version: Union[str, float, NoneType] = None, latest_version: Union[str, float, NoneType] = None)" + }, + "ModelLevelConstraint": { + "type": "object", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "enum": [ + "check", + "not_null", + "unique", + "primary_key", + "foreign_key", + "custom" + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "expression": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "warn_unenforced": { + "type": "boolean", + "default": true + }, + "warn_unsupported": { + "type": "boolean", + "default": true + }, + "columns": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "ModelLevelConstraint(type: dbt.contracts.graph.nodes.ConstraintType, name: Optional[str] = None, expression: Optional[str] = None, warn_unenforced: bool = True, warn_unsupported: bool = True, columns: List[str] = )" + }, + "RPCNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "rpc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.50125 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "RPCNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "SqlNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "sql operation" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/NodeConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "view", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.501826 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SqlNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.NodeConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "GenericTestNode": { + "type": "object", + "required": [ + "test_metadata", + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "test_metadata": { + "$ref": "#/definitions/TestMetadata" + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "test" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/TestConfig", + "default": { + "enabled": true, + "alias": null, + "schema": "dbt_test__audit", + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "test", + "severity": "ERROR", + "store_failures": null, + "where": null, + "limit": null, + "fail_calc": "count(*)", + "warn_if": "!= 0", + "error_if": "!= 0" + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.502492 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + }, + "column_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_key_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "attached_node": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "GenericTestNode(test_metadata: dbt.contracts.graph.nodes.TestMetadata, database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.TestConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = , column_name: Optional[str] = None, file_key_name: Optional[str] = None, attached_node: Optional[str] = None)" + }, + "TestMetadata": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "kwargs": { + "type": "object", + "default": {} + }, + "namespace": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TestMetadata(name: str, kwargs: Dict[str, Any] = , namespace: Optional[str] = None)" + }, + "SnapshotNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum", + "config" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "snapshot" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SnapshotConfig" + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.503581 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "language": { + "type": "string", + "default": "sql" + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "compiled_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "compiled": { + "type": "boolean", + "default": false + }, + "compiled_code": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "extra_ctes_injected": { + "type": "boolean", + "default": false + }, + "extra_ctes": { + "type": "array", + "items": { + "$ref": "#/definitions/InjectedCTE" + }, + "default": [] + }, + "contract": { + "$ref": "#/definitions/Contract", + "default": { + "enforced": false, + "checksum": null + } + } + }, + "additionalProperties": false, + "description": "SnapshotNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SnapshotConfig, _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', language: str = 'sql', refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , compiled_path: Optional[str] = None, compiled: bool = False, compiled_code: Optional[str] = None, extra_ctes_injected: bool = False, extra_ctes: List[dbt.contracts.graph.nodes.InjectedCTE] = , _pre_injected_sql: Optional[str] = None, contract: dbt.contracts.graph.nodes.Contract = )" + }, + "SnapshotConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "snapshot" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + }, + "strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "target_database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "updated_at": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "check_cols": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SnapshotConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'snapshot', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Optional[str] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , strategy: Optional[str] = None, target_schema: Optional[str] = None, target_database: Optional[str] = None, updated_at: Optional[str] = None, check_cols: Union[str, List[str], NoneType] = None)" + }, + "SeedNode": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "alias", + "checksum" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "seed" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "alias": { + "type": "string" + }, + "checksum": { + "$ref": "#/definitions/FileHash" + }, + "config": { + "$ref": "#/definitions/SeedConfig", + "default": { + "enabled": true, + "alias": null, + "schema": null, + "database": null, + "tags": [], + "meta": {}, + "group": null, + "materialized": "seed", + "incremental_strategy": null, + "persist_docs": {}, + "quoting": {}, + "column_types": {}, + "full_refresh": null, + "unique_key": null, + "on_schema_change": "ignore", + "grants": {}, + "packages": [], + "docs": { + "show": true, + "node_color": null + }, + "contract": { + "enforced": false + }, + "quote_columns": null, + "post-hook": [], + "pre-hook": [] + } + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "build_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "deferred": { + "type": "boolean", + "default": false + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "created_at": { + "type": "number", + "default": 1682075346.504591 + }, + "config_call_dict": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "raw_code": { + "type": "string", + "default": "" + }, + "root_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + } + }, + "additionalProperties": false, + "description": "SeedNode(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], alias: str, checksum: dbt.contracts.files.FileHash, config: dbt.contracts.graph.model_config.SeedConfig = , _event_status: Dict[str, Any] = , tags: List[str] = , description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , group: Optional[str] = None, docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, build_path: Optional[str] = None, deferred: bool = False, unrendered_config: Dict[str, Any] = , created_at: float = , config_call_dict: Dict[str, Any] = , relation_name: Optional[str] = None, raw_code: str = '', root_path: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = )" + }, + "SeedConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "alias": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tags": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "string" + } + ], + "default": [] + }, + "meta": { + "type": "object", + "default": {} + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "materialized": { + "type": "string", + "default": "seed" + }, + "incremental_strategy": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "persist_docs": { + "type": "object", + "default": {} + }, + "post-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "pre-hook": { + "type": "array", + "items": { + "$ref": "#/definitions/Hook" + }, + "default": [] + }, + "quoting": { + "type": "object", + "default": {} + }, + "column_types": { + "type": "object", + "default": {} + }, + "full_refresh": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "unique_key": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "null" + } + ] + }, + "on_schema_change": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "ignore" + }, + "grants": { + "type": "object", + "default": {} + }, + "packages": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "contract": { + "$ref": "#/definitions/ContractConfig", + "default": { + "enforced": false + } + }, + "quote_columns": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "SeedConfig(_extra: Dict[str, Any] = , enabled: bool = True, alias: Optional[str] = None, schema: Optional[str] = None, database: Optional[str] = None, tags: Union[List[str], str] = , meta: Dict[str, Any] = , group: Optional[str] = None, materialized: str = 'seed', incremental_strategy: Optional[str] = None, persist_docs: Dict[str, Any] = , post_hook: List[dbt.contracts.graph.model_config.Hook] = , pre_hook: List[dbt.contracts.graph.model_config.Hook] = , quoting: Dict[str, Any] = , column_types: Dict[str, Any] = , full_refresh: Optional[bool] = None, unique_key: Union[str, List[str], NoneType] = None, on_schema_change: Optional[str] = 'ignore', grants: Dict[str, Any] = , packages: List[str] = , docs: dbt.contracts.graph.unparsed.Docs = , contract: dbt.contracts.graph.model_config.ContractConfig = , quote_columns: Optional[bool] = None)" + }, + "MacroDependsOn": { + "type": "object", + "required": [], + "properties": { + "macros": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + } + }, + "additionalProperties": false, + "description": "Used only in the Macro class" + }, + "SourceDefinition": { + "type": "object", + "required": [ + "schema", + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "source_name", + "source_description", + "loader", + "identifier" + ], + "properties": { + "database": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "schema": { + "type": "string" + }, + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "source" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "source_name": { + "type": "string" + }, + "source_description": { + "type": "string" + }, + "loader": { + "type": "string" + }, + "identifier": { + "type": "string" + }, + "quoting": { + "$ref": "#/definitions/Quoting", + "default": { + "database": null, + "schema": null, + "identifier": null, + "column": null + } + }, + "loaded_at_field": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "freshness": { + "oneOf": [ + { + "$ref": "#/definitions/FreshnessThreshold" + }, + { + "type": "null" + } + ] + }, + "external": { + "oneOf": [ + { + "$ref": "#/definitions/ExternalTable" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + }, + "columns": { + "type": "object", + "additionalProperties": { + "$ref": "#/definitions/ColumnInfo" + }, + "default": {} + }, + "meta": { + "type": "object", + "default": {} + }, + "source_meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/SourceConfig", + "default": { + "enabled": true + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "relation_name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "created_at": { + "type": "number", + "default": 1682075346.505582 + } + }, + "additionalProperties": false, + "description": "SourceDefinition(database: Optional[str], schema: str, name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], source_name: str, source_description: str, loader: str, identifier: str, _event_status: Dict[str, Any] = , quoting: dbt.contracts.graph.unparsed.Quoting = , loaded_at_field: Optional[str] = None, freshness: Optional[dbt.contracts.graph.unparsed.FreshnessThreshold] = None, external: Optional[dbt.contracts.graph.unparsed.ExternalTable] = None, description: str = '', columns: Dict[str, dbt.contracts.graph.nodes.ColumnInfo] = , meta: Dict[str, Any] = , source_meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.SourceConfig = , patch_path: Optional[str] = None, unrendered_config: Dict[str, Any] = , relation_name: Optional[str] = None, created_at: float = )" + }, + "Quoting": { + "type": "object", + "required": [], + "properties": { + "database": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "schema": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "identifier": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + }, + "column": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Quoting(database: Optional[bool] = None, schema: Optional[bool] = None, identifier: Optional[bool] = None, column: Optional[bool] = None)" + }, + "FreshnessThreshold": { + "type": "object", + "required": [], + "properties": { + "warn_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "error_after": { + "oneOf": [ + { + "$ref": "#/definitions/Time" + }, + { + "type": "null" + } + ], + "default": { + "count": null, + "period": null + } + }, + "filter": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "FreshnessThreshold(warn_after: Optional[dbt.contracts.graph.unparsed.Time] = , error_after: Optional[dbt.contracts.graph.unparsed.Time] = , filter: Optional[str] = None)" + }, + "FreshnessMetadata": { + "type": "object", + "required": [], + "properties": { + "dbt_schema_version": { + "type": "string", + "default": "https://schemas.getdbt.com/dbt/sources/v3.json" + }, + "dbt_version": { + "type": "string", + "default": "1.6.0a1" + }, + "generated_at": { + "type": "string", + "format": "date-time", + "default": "2023-04-21T11:09:06.494387Z" + }, + "invocation_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ], + "default": "c4b245be-8edb-4ad7-ba54-9337ce594f5d" + }, + "env": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "default": {} + } + }, + "additionalProperties": false, + "description": "FreshnessMetadata(dbt_schema_version: str = , dbt_version: str = '1.6.0a1', generated_at: datetime.datetime = , invocation_id: Optional[str] = , env: Dict[str, str] = )" + }, + "SourceFreshnessRuntimeError": { + "type": "object", + "required": [ + "unique_id", + "status" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "error": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "status": { + "type": "string", + "enum": [ + "runtime error" + ] + } + }, + "additionalProperties": false, + "description": "SourceFreshnessRuntimeError(unique_id: str, error: Union[str, int, NoneType], status: dbt.contracts.results.FreshnessErrorEnum)" + }, + "SourceFreshnessOutput": { + "type": "object", + "required": [ + "unique_id", + "max_loaded_at", + "snapshotted_at", + "max_loaded_at_time_ago_in_s", + "status", + "criteria", + "adapter_response", + "timing", + "thread_id", + "execution_time" + ], + "properties": { + "unique_id": { + "type": "string" + }, + "max_loaded_at": { + "type": "string", + "format": "date-time" + }, + "snapshotted_at": { + "type": "string", + "format": "date-time" + }, + "max_loaded_at_time_ago_in_s": { + "type": "number" + }, + "status": { + "type": "string", + "enum": [ + "pass", + "warn", + "error", + "runtime error" + ] + }, + "criteria": { + "$ref": "#/definitions/FreshnessThreshold" + }, + "adapter_response": { + "type": "object" + }, + "timing": { + "type": "array", + "items": { + "$ref": "#/definitions/TimingInfo" + } + }, + "thread_id": { + "type": "string" + }, + "execution_time": { + "type": "number" + } + }, + "additionalProperties": false, + "description": "SourceFreshnessOutput(unique_id: str, max_loaded_at: datetime.datetime, snapshotted_at: datetime.datetime, max_loaded_at_time_ago_in_s: float, status: dbt.contracts.results.FreshnessStatus, criteria: dbt.contracts.graph.unparsed.FreshnessThreshold, adapter_response: Dict[str, Any], timing: List[dbt.contracts.results.TimingInfo], thread_id: str, execution_time: float)" + }, + "Time": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "minute", + "hour", + "day" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Time(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.TimePeriod] = None)" + }, + "TimingInfo": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "started_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + }, + "completed_at": { + "oneOf": [ + { + "type": "string", + "format": "date-time" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "TimingInfo(name: str, started_at: Optional[datetime.datetime] = None, completed_at: Optional[datetime.datetime] = None)" + }, + "ExternalTable": { + "type": "object", + "required": [], + "properties": { + "location": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "file_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "row_format": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "tbl_properties": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "partitions": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "$ref": "#/definitions/ExternalPartition" + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "ExternalTable(_extra: Dict[str, Any] = , location: Optional[str] = None, file_format: Optional[str] = None, row_format: Optional[str] = None, tbl_properties: Optional[str] = None, partitions: Union[List[str], List[dbt.contracts.graph.unparsed.ExternalPartition], NoneType] = None)" + }, + "ExternalPartition": { + "type": "object", + "required": [], + "properties": { + "name": { + "type": "string", + "default": "" + }, + "description": { + "type": "string", + "default": "" + }, + "data_type": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + } + }, + "additionalProperties": true, + "description": "ExternalPartition(_extra: Dict[str, Any] = , name: str = '', description: str = '', data_type: str = '', meta: Dict[str, Any] = )" + }, + "SourceConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "SourceConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Macro": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "macro_sql" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "macro" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "macro_sql": { + "type": "string" + }, + "depends_on": { + "$ref": "#/definitions/MacroDependsOn", + "default": { + "macros": [] + } + }, + "description": { + "type": "string", + "default": "" + }, + "meta": { + "type": "object", + "default": {} + }, + "docs": { + "$ref": "#/definitions/Docs", + "default": { + "show": true, + "node_color": null + } + }, + "patch_path": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "arguments": { + "type": "array", + "items": { + "$ref": "#/definitions/MacroArgument" + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1682075346.505871 + }, + "supported_languages": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "string", + "enum": [ + "python", + "sql" + ] + } + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Macro(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, macro_sql: str, depends_on: dbt.contracts.graph.nodes.MacroDependsOn = , description: str = '', meta: Dict[str, Any] = , docs: dbt.contracts.graph.unparsed.Docs = , patch_path: Optional[str] = None, arguments: List[dbt.contracts.graph.unparsed.MacroArgument] = , created_at: float = , supported_languages: Optional[List[dbt.node_types.ModelLanguage]] = None)" + }, + "MacroArgument": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + }, + "type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "description": { + "type": "string", + "default": "" + } + }, + "additionalProperties": false, + "description": "MacroArgument(name: str, type: Optional[str] = None, description: str = '')" + }, + "Documentation": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "block_contents" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "doc" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "block_contents": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "Documentation(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, block_contents: str)" + }, + "Exposure": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "type", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "exposure" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "type": { + "type": "string", + "enum": [ + "dashboard", + "notebook", + "analysis", + "ml", + "application" + ] + }, + "owner": { + "$ref": "#/definitions/Owner" + }, + "description": { + "type": "string", + "default": "" + }, + "label": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "maturity": { + "oneOf": [ + { + "type": "string", + "enum": [ + "low", + "medium", + "high" + ] + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/ExposureConfig", + "default": { + "enabled": true + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "url": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1682075346.50651 + } + }, + "additionalProperties": false, + "description": "Exposure(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], type: dbt.contracts.graph.unparsed.ExposureType, owner: dbt.contracts.graph.unparsed.Owner, description: str = '', label: Optional[str] = None, maturity: Optional[dbt.contracts.graph.unparsed.MaturityType] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.ExposureConfig = , unrendered_config: Dict[str, Any] = , url: Optional[str] = None, depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , sources: List[List[str]] = , metrics: List[List[str]] = , created_at: float = )" + }, + "Owner": { + "type": "object", + "required": [], + "properties": { + "email": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "name": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "Owner(_extra: Dict[str, Any] = , email: Optional[str] = None, name: Optional[str] = None)" + }, + "ExposureConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + } + }, + "additionalProperties": true, + "description": "ExposureConfig(_extra: Dict[str, Any] = , enabled: bool = True)" + }, + "Metric": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "fqn", + "description", + "label", + "calculation_method", + "expression", + "filters", + "time_grains", + "dimensions" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "metric" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "fqn": { + "type": "array", + "items": { + "type": "string" + } + }, + "description": { + "type": "string" + }, + "label": { + "type": "string" + }, + "calculation_method": { + "type": "string" + }, + "expression": { + "type": "string" + }, + "filters": { + "type": "array", + "items": { + "$ref": "#/definitions/MetricFilter" + } + }, + "time_grains": { + "type": "array", + "items": { + "type": "string" + } + }, + "dimensions": { + "type": "array", + "items": { + "type": "string" + } + }, + "timestamp": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "window": { + "oneOf": [ + { + "$ref": "#/definitions/MetricTime" + }, + { + "type": "null" + } + ] + }, + "model": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "model_unique_id": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + }, + "meta": { + "type": "object", + "default": {} + }, + "tags": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "config": { + "$ref": "#/definitions/MetricConfig", + "default": { + "enabled": true, + "group": null + } + }, + "unrendered_config": { + "type": "object", + "default": {} + }, + "sources": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "depends_on": { + "$ref": "#/definitions/DependsOn", + "default": { + "macros": [], + "nodes": [] + } + }, + "refs": { + "type": "array", + "items": { + "$ref": "#/definitions/RefArgs" + }, + "default": [] + }, + "metrics": { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "string" + } + }, + "default": [] + }, + "created_at": { + "type": "number", + "default": 1682075346.507186 + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "Metric(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, fqn: List[str], description: str, label: str, calculation_method: str, expression: str, filters: List[dbt.contracts.graph.unparsed.MetricFilter], time_grains: List[str], dimensions: List[str], timestamp: Optional[str] = None, window: Optional[dbt.contracts.graph.unparsed.MetricTime] = None, model: Optional[str] = None, model_unique_id: Optional[str] = None, meta: Dict[str, Any] = , tags: List[str] = , config: dbt.contracts.graph.model_config.MetricConfig = , unrendered_config: Dict[str, Any] = , sources: List[List[str]] = , depends_on: dbt.contracts.graph.nodes.DependsOn = , refs: List[dbt.contracts.graph.nodes.RefArgs] = , metrics: List[List[str]] = , created_at: float = , group: Optional[str] = None)" + }, + "MetricFilter": { + "type": "object", + "required": [ + "field", + "operator", + "value" + ], + "properties": { + "field": { + "type": "string" + }, + "operator": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "additionalProperties": false, + "description": "MetricFilter(field: str, operator: str, value: str)" + }, + "MetricTime": { + "type": "object", + "required": [], + "properties": { + "count": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "null" + } + ] + }, + "period": { + "oneOf": [ + { + "type": "string", + "enum": [ + "day", + "week", + "month", + "year" + ] + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "description": "MetricTime(count: Optional[int] = None, period: Optional[dbt.contracts.graph.unparsed.MetricTimePeriod] = None)" + }, + "MetricConfig": { + "type": "object", + "required": [], + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "group": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": true, + "description": "MetricConfig(_extra: Dict[str, Any] = , enabled: bool = True, group: Optional[str] = None)" + }, + "Group": { + "type": "object", + "required": [ + "name", + "resource_type", + "package_name", + "path", + "original_file_path", + "unique_id", + "owner" + ], + "properties": { + "name": { + "type": "string" + }, + "resource_type": { + "type": "string", + "enum": [ + "group" + ] + }, + "package_name": { + "type": "string" + }, + "path": { + "type": "string" + }, + "original_file_path": { + "type": "string" + }, + "unique_id": { + "type": "string" + }, + "owner": { + "$ref": "#/definitions/Owner" + } + }, + "additionalProperties": false, + "description": "Group(name: str, resource_type: dbt.node_types.NodeType, package_name: str, path: str, original_file_path: str, unique_id: str, owner: dbt.contracts.graph.unparsed.Owner)" + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://schemas.getdbt.com/dbt/manifest/v9.json" +} \ No newline at end of file diff --git a/yoda_dbt2looker/models.py b/yoda_dbt2looker/models.py index f09a364..7ac3806 100644 --- a/yoda_dbt2looker/models.py +++ b/yoda_dbt2looker/models.py @@ -1,5 +1,6 @@ from enum import Enum from typing import Union, Dict, List, Optional + try: from typing import Literal except ImportError: @@ -9,67 +10,67 @@ # dbt2looker utility types class UnsupportedDbtAdapterError(PydanticValueError): - code = 'unsupported_dbt_adapter' - msg_template = '{wrong_value} is not a supported dbt adapter' + code = "unsupported_dbt_adapter" + msg_template = "{wrong_value} is not a supported dbt adapter" class SupportedDbtAdapters(str, Enum): - bigquery = 'bigquery' - postgres = 'postgres' - redshift = 'redshift' - snowflake = 'snowflake' - spark = 'spark' + bigquery = "bigquery" + postgres = "postgres" + redshift = "redshift" + snowflake = "snowflake" + spark = "spark" # Lookml types class LookerAggregateMeasures(str, Enum): - average = 'average' - average_distinct = 'average_distinct' - count = 'count' - count_distinct = 'count_distinct' - list = 'list' - max = 'max' - median = 'median' - median_distinct = 'median_distinct' - min = 'min' + average = "average" + average_distinct = "average_distinct" + count = "count" + count_distinct = "count_distinct" + list = "list" + max = "max" + median = "median" + median_distinct = "median_distinct" + min = "min" # percentile = 'percentile' # percentile_distinct = 'percentile_distinct' - sum = 'sum' - sum_distinct = 'sum_distinct' + sum = "sum" + sum_distinct = "sum_distinct" class LookerJoinType(str, Enum): - left_outer = 'left_outer' - full_outer = 'full_outer' - inner = 'inner' - cross = 'cross' + left_outer = "left_outer" + full_outer = "full_outer" + inner = "inner" + cross = "cross" class LookerJoinRelationship(str, Enum): - many_to_one = 'many_to_one' - many_to_many = 'many_to_many' - one_to_many = 'one_to_many' - one_to_one = 'one_to_one' + many_to_one = "many_to_one" + many_to_many = "many_to_many" + one_to_many = "one_to_many" + one_to_one = "one_to_one" class LookerValueFormatName(str, Enum): - decimal_0 = 'decimal_0' - decimal_1 = 'decimal_1' - decimal_2 = 'decimal_2' - decimal_3 = 'decimal_3' - decimal_4 = 'decimal_4' - usd_0 = 'usd_0' - usd = 'usd' - gbp_0 = 'gbp_0' - gbp = 'gbp' - eur_0 = 'eur_0' - eur = 'eur' - id = 'id' - percent_0 = 'percent_0' - percent_1 = 'percent_1' - percent_2 = 'percent_2' - percent_3 = 'percent_3' - percent_4 = 'percent_4' + decimal_0 = "decimal_0" + decimal_1 = "decimal_1" + decimal_2 = "decimal_2" + decimal_3 = "decimal_3" + decimal_4 = "decimal_4" + usd_0 = "usd_0" + usd = "usd" + gbp_0 = "gbp_0" + gbp = "gbp" + eur_0 = "eur_0" + eur = "eur" + id = "id" + percent_0 = "percent_0" + percent_1 = "percent_1" + percent_2 = "percent_2" + percent_3 = "percent_3" + percent_4 = "percent_4" class Dbt2LookerMeasure(BaseModel): @@ -79,12 +80,14 @@ class Dbt2LookerMeasure(BaseModel): sql: Optional[str] value_format_name: Optional[LookerValueFormatName] - @validator('filters') + @validator("filters") def filters_are_singular_dicts(cls, v: List[Dict[str, str]]): if v is not None: for f in v: if len(f) != 1: - raise ValueError('Multiple filter names provided for a single filter in measure block') + raise ValueError( + "Multiple filter names provided for a single filter in measure block" + ) return v @@ -102,7 +105,8 @@ class Dbt2InnerLookerMeta(BaseModel): metrics: Optional[Dict[str, Dbt2LookerMeasure]] = {} metric: Optional[Dict[str, Dbt2LookerMeasure]] = {} dimension: Optional[Dbt2LookerDimension] = Dbt2LookerDimension() - + + class Dbt2LookerMeta(BaseModel): looker: Optional[Dbt2InnerLookerMeta] = Dbt2InnerLookerMeta() measures: Optional[Dict[str, Dbt2LookerMeasure]] = {} @@ -154,20 +158,21 @@ class Dbt2LookerExploreJoin(BaseModel): class Dbt2MetaLookerModelMeta(BaseModel): joins: Optional[List[Dbt2LookerExploreJoin]] = [] main_model: str - + + class Dbt2LookerModelMeta(BaseModel): - looker: Optional[Dbt2MetaLookerModelMeta] + looker: Optional[Dbt2MetaLookerModelMeta] joins: Optional[List[Dbt2LookerExploreJoin]] = [] class DbtModelMeta(Dbt2LookerModelMeta): - primary_key : Optional[str]= Field(None, alias='primary-key') + primary_key: Optional[str] = Field(None, alias="primary-key") class DbtModel(DbtNode): - resource_type: Literal['model'] + resource_type: Literal["model"] relation_name: str - db_schema: str = Field(..., alias='schema') + db_schema: str = Field(..., alias="schema") name: str description: str columns: Dict[str, DbtModelColumn] @@ -175,10 +180,10 @@ class DbtModel(DbtNode): meta: DbtModelMeta create_explorer: bool = True - @validator('columns') + @validator("columns") def case_insensitive_column_names(cls, v: Dict[str, DbtModelColumn]): return { - name.lower(): column.copy(update={'name': column.name.lower()}) + name.lower(): column.copy(update={"name": column.name.lower()}) for name, column in v.items() } @@ -186,9 +191,10 @@ def case_insensitive_column_names(cls, v: Dict[str, DbtModelColumn]): class DbtExposureDependsOn(BaseModel): macros: List[str] nodes: List[str] - + + class DbtExposure(DbtNode): - resource_type: Literal['exposure'] + resource_type: Literal["exposure"] name: str description: str tags: List[str] @@ -196,12 +202,12 @@ class DbtExposure(DbtNode): meta: DbtModelMeta original_file_path: str path: str - root_path: str + class DbtManifestMetadata(BaseModel): adapter_type: str - @validator('adapter_type') + @validator("adapter_type") def adapter_must_be_supported(cls, v): try: SupportedDbtAdapters(v) @@ -218,7 +224,7 @@ class DbtManifest(BaseModel): class DbtCatalogNodeMetadata(BaseModel): type: str - db_schema: str = Field(..., alias='schema') + db_schema: str = Field(..., alias="schema") name: str comment: Optional[str] owner: Optional[str] @@ -235,13 +241,13 @@ class DbtCatalogNode(BaseModel): metadata: DbtCatalogNodeMetadata columns: Dict[str, DbtCatalogNodeColumn] - @validator('columns') + @validator("columns") def case_insensitive_column_names(cls, v: Dict[str, DbtCatalogNodeColumn]): return { - name.lower(): column.copy(update={'name': column.name.lower()}) + name.lower(): column.copy(update={"name": column.name.lower()}) for name, column in v.items() } class DbtCatalog(BaseModel): - nodes: Dict[str, DbtCatalogNode] \ No newline at end of file + nodes: Dict[str, DbtCatalogNode] From 11f5099a3a7a929d842585e50864a69ee72af062 Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:17:17 +0300 Subject: [PATCH 81/87] wip --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfa230d..1e2cbf1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,9 @@ jobs: python -m pip install --upgrade pip python -m pip install tox tox-gh-actions - name: Test with tox - run: tox -e tests + run: tox -e tests + allowlist_externals: + - poetry - name: Poetry Version Pull Request run: poetry version prepatch - name: Poetry Build From 76292dec8ccfe4cbe5f5d2b11a9539a775e10b30 Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:20:06 +0300 Subject: [PATCH 82/87] wip --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e2cbf1..481e249 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,9 +25,10 @@ jobs: python -m pip install --upgrade pip python -m pip install tox tox-gh-actions - name: Test with tox - run: tox -e tests - allowlist_externals: - - poetry + run: | + python -m venv .venv + source .venv/bin/activate + tox -e tests - name: Poetry Version Pull Request run: poetry version prepatch - name: Poetry Build From 740f0ae49b6ab689f1db90e715b8b6610382f5f3 Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:28:21 +0300 Subject: [PATCH 83/87] wip --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 481e249..dac4e68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,9 +26,8 @@ jobs: python -m pip install tox tox-gh-actions - name: Test with tox run: | - python -m venv .venv - source .venv/bin/activate - tox -e tests + poetry install -v + tox -e tests - name: Poetry Version Pull Request run: poetry version prepatch - name: Poetry Build From 2532c0e54f81a7e02cd9fea4e88060e4030aea1c Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:30:43 +0300 Subject: [PATCH 84/87] wip --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dac4e68..1721dd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,11 +23,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install tox tox-gh-actions - name: Test with tox run: | poetry install -v - tox -e tests + pytest tests - name: Poetry Version Pull Request run: poetry version prepatch - name: Poetry Build From e918392bd8107fe09faa32d886ac686cf0f7f121 Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:34:19 +0300 Subject: [PATCH 85/87] wip --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1721dd1..0d25c14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,8 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - - name: Test with tox + pip install pytest + - name: Test with pytest run: | poetry install -v pytest tests From bef3e3e5e1e70895a7c963bea5745728c5e78f47 Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:39:26 +0300 Subject: [PATCH 86/87] wip --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0d25c14..bfa230d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,11 +23,9 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest - - name: Test with pytest - run: | - poetry install -v - pytest tests + python -m pip install tox tox-gh-actions + - name: Test with tox + run: tox -e tests - name: Poetry Version Pull Request run: poetry version prepatch - name: Poetry Build From d5f1835a9ccae4f67b625ebba5e5587c6d67f3ce Mon Sep 17 00:00:00 2001 From: dkruh1 <101973979+dkruh1@users.noreply.github.com> Date: Thu, 3 Aug 2023 14:44:30 +0300 Subject: [PATCH 87/87] wip --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index fc8a424..5a86b1a 100644 --- a/tox.ini +++ b/tox.ini @@ -7,6 +7,7 @@ python = 3.9: py39 [testenv:tests] +allowlist_externals = poetry whitelist_externals = poetry # install pytest in the virtualenv where commands will be executed... commands =