mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-05 20:17:07 +00:00
Simplify Data Insight workflow builder (#10688)
This commit is contained in:
parent
dd225d1463
commit
4dbe5e4f5c
@ -67,7 +67,7 @@ data_insight_config = {
|
||||
"source": {
|
||||
"type": "dataInsight",
|
||||
"serviceName": "dataInsightWorkflow",
|
||||
"sourceConfig": {"config": {"type": "dataInsight"}},
|
||||
"sourceConfig": {"config": {}},
|
||||
},
|
||||
"processor": {"type": "data-insight-processor", "config": {}},
|
||||
"sink": {
|
||||
|
||||
@ -32,13 +32,14 @@ from metadata.generated.schema.metadataIngestion.workflow import (
|
||||
LogLevels,
|
||||
OpenMetadataWorkflowConfig,
|
||||
Processor,
|
||||
Sink,
|
||||
)
|
||||
from metadata.generated.schema.metadataIngestion.workflow import (
|
||||
Source as WorkflowSource,
|
||||
)
|
||||
from metadata.generated.schema.metadataIngestion.workflow import WorkflowConfig
|
||||
from metadata.generated.schema.type.basic import ComponentConfig
|
||||
from metadata.generated.schema.metadataIngestion.workflow import (
|
||||
SourceConfig,
|
||||
WorkflowConfig,
|
||||
)
|
||||
from metadata.ingestion.models.encoders import show_secrets_encoder
|
||||
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
||||
|
||||
@ -94,7 +95,7 @@ def build_data_insight_workflow_config(
|
||||
source=WorkflowSource(
|
||||
type="dataInsight",
|
||||
serviceName=ingestion_pipeline.service.name,
|
||||
sourceConfig=ingestion_pipeline.sourceConfig,
|
||||
sourceConfig=SourceConfig(), # Source Config not needed here. Configs are passed to ES Sink.
|
||||
),
|
||||
sink=sink,
|
||||
processor=Processor(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user