mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-23 09:22:18 +00:00

* Fixing conflicts * Fixing Conflicts * Fix snowflake * Prepare snowflake and redshift * snowflake use a single query * Add bigquery * Add clickhouse * format * Add query log lineage source * Add filters to core * Prepare mssql usage * Update schemas * Add example workflows * Prepare lineage deployment * Remove lineage * Use filters * Prep lineage DAG * Prepare Lineage Ingestion * Test lineage workflow * format * Comments * fixed tests * Revert "fixed tests" This reverts commit 0e846c7c4806098e4adf7c071d133d1df68aedf5. * fixed get connection method Co-authored-by: Onkar Ravgan <onkarravgan@Onkars-MacBook-Pro.local>
32 lines
1.4 KiB
Python
32 lines
1.4 KiB
Python
# Copyright 2021 Collate
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
"""
|
|
DAG builder registry.
|
|
|
|
Add a function for each type from PipelineType
|
|
"""
|
|
from openmetadata_managed_apis.workflows.ingestion.lineage import build_lineage_dag
|
|
from openmetadata_managed_apis.workflows.ingestion.metadata import build_metadata_dag
|
|
from openmetadata_managed_apis.workflows.ingestion.profiler import build_profiler_dag
|
|
from openmetadata_managed_apis.workflows.ingestion.usage import build_usage_dag
|
|
|
|
from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipeline import (
|
|
PipelineType,
|
|
)
|
|
from metadata.utils.dispatch import enum_register
|
|
|
|
build_registry = enum_register()
|
|
|
|
build_registry.add(PipelineType.metadata.value)(build_metadata_dag)
|
|
build_registry.add(PipelineType.usage.value)(build_usage_dag)
|
|
build_registry.add(PipelineType.lineage.value)(build_lineage_dag)
|
|
build_registry.add(PipelineType.profiler.value)(build_profiler_dag)
|