openmetadata-ingestion 1.5.11.0__py3-none-any.whl → 1.6.0.0rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openmetadata-ingestion might be problematic. Click here for more details.
- _openmetadata_testutils/dict.py +23 -0
- _openmetadata_testutils/pydantic/test_utils.py +22 -2
- _openmetadata_testutils/pytest_openmetadata/__init__.py +0 -0
- _openmetadata_testutils/pytest_openmetadata/plugin.py +86 -0
- _openmetadata_testutils/pytest_openmetadata/test_utils.py +99 -0
- metadata/cli/app.py +1 -0
- metadata/cli/dataquality.py +4 -1
- metadata/cli/ingest.py +2 -1
- metadata/cli/lineage.py +2 -1
- metadata/cli/profile.py +4 -1
- metadata/cli/usage.py +2 -1
- metadata/config/common.py +3 -1
- metadata/data_quality/api/models.py +2 -1
- metadata/data_quality/builders/i_validator_builder.py +5 -2
- metadata/data_quality/interface/pandas/pandas_test_suite_interface.py +1 -0
- metadata/data_quality/interface/sqlalchemy/sqa_test_suite_interface.py +1 -0
- metadata/data_quality/interface/test_suite_interface.py +6 -11
- metadata/data_quality/interface/test_suite_interface_factory.py +63 -33
- metadata/data_quality/source/test_suite.py +1 -1
- metadata/data_quality/validations/base_test_handler.py +3 -3
- metadata/data_quality/validations/column/base/columnValuesToBeInSet.py +4 -2
- metadata/data_quality/validations/models.py +6 -1
- metadata/data_quality/validations/runtime_param_setter/table_diff_params_setter.py +7 -2
- metadata/data_quality/validations/table/sqlalchemy/tableDiff.py +175 -3
- metadata/examples/workflows/datafactory.yaml +29 -0
- metadata/examples/workflows/matillion.yaml +31 -0
- metadata/examples/workflows/rest.yaml +20 -0
- metadata/examples/workflows/sigma.yaml +25 -0
- metadata/examples/workflows/trino_profiler.yaml +20 -0
- metadata/generated/antlr/EntityLinkLexer.py +70 -99
- metadata/generated/antlr/FqnLexer.py +15 -15
- metadata/generated/schema/analytics/__init__.py +1 -1
- metadata/generated/schema/analytics/basic.py +1 -1
- metadata/generated/schema/analytics/reportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/__init__.py +1 -1
- metadata/generated/schema/analytics/reportDataType/aggregatedCostAnalysisReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/entityReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/rawCostAnalysisReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/webAnalyticEntityViewReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/webAnalyticUserActivityReportData.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEvent.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventData.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventType/__init__.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventType/customEvent.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventType/pageViewEvent.py +1 -1
- metadata/generated/schema/api/__init__.py +1 -1
- metadata/generated/schema/api/addGlossaryToAssetsRequest.py +1 -1
- metadata/generated/schema/api/addTagToAssetsRequest.py +43 -0
- metadata/generated/schema/api/analytics/__init__.py +1 -1
- metadata/generated/schema/api/analytics/createWebAnalyticEvent.py +1 -1
- metadata/generated/schema/api/automations/__init__.py +1 -1
- metadata/generated/schema/api/automations/createWorkflow.py +1 -1
- metadata/generated/schema/api/bulkAssets.py +1 -1
- metadata/generated/schema/api/classification/__init__.py +1 -1
- metadata/generated/schema/api/classification/createClassification.py +1 -1
- metadata/generated/schema/api/classification/createTag.py +1 -1
- metadata/generated/schema/api/classification/loadTags.py +1 -1
- metadata/generated/schema/api/createBot.py +1 -1
- metadata/generated/schema/api/createEventPublisherJob.py +1 -1
- metadata/generated/schema/api/createType.py +1 -1
- metadata/generated/schema/api/data/__init__.py +1 -1
- metadata/generated/schema/api/data/createAPICollection.py +1 -1
- metadata/generated/schema/api/data/createAPIEndpoint.py +1 -1
- metadata/generated/schema/api/data/createChart.py +1 -1
- metadata/generated/schema/api/data/createContainer.py +1 -1
- metadata/generated/schema/api/data/createCustomProperty.py +1 -1
- metadata/generated/schema/api/data/createDashboard.py +1 -1
- metadata/generated/schema/api/data/createDashboardDataModel.py +1 -1
- metadata/generated/schema/api/data/createDatabase.py +1 -1
- metadata/generated/schema/api/data/createDatabaseSchema.py +1 -1
- metadata/generated/schema/api/data/createGlossary.py +1 -1
- metadata/generated/schema/api/data/createGlossaryTerm.py +1 -1
- metadata/generated/schema/api/data/createMetric.py +83 -0
- metadata/generated/schema/api/data/createMlModel.py +1 -1
- metadata/generated/schema/api/data/createPipeline.py +1 -1
- metadata/generated/schema/api/data/createQuery.py +1 -1
- metadata/generated/schema/api/data/createSearchIndex.py +1 -1
- metadata/generated/schema/api/data/createStoredProcedure.py +1 -1
- metadata/generated/schema/api/data/createTable.py +1 -1
- metadata/generated/schema/api/data/createTableProfile.py +1 -1
- metadata/generated/schema/api/data/createTopic.py +1 -1
- metadata/generated/schema/api/data/loadGlossary.py +1 -1
- metadata/generated/schema/api/data/restoreEntity.py +1 -1
- metadata/generated/schema/api/dataInsight/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/createDataInsightChart.py +1 -1
- metadata/generated/schema/api/dataInsight/custom/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/custom/createDataInsightCustomChart.py +1 -1
- metadata/generated/schema/api/dataInsight/kpi/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/kpi/createKpiRequest.py +1 -1
- metadata/generated/schema/api/docStore/__init__.py +1 -1
- metadata/generated/schema/api/docStore/createDocument.py +1 -1
- metadata/generated/schema/api/domains/__init__.py +1 -1
- metadata/generated/schema/api/domains/createDataProduct.py +1 -1
- metadata/generated/schema/api/domains/createDomain.py +1 -1
- metadata/generated/schema/api/feed/__init__.py +1 -1
- metadata/generated/schema/api/feed/closeTask.py +1 -1
- metadata/generated/schema/api/feed/createPost.py +1 -1
- metadata/generated/schema/api/feed/createSuggestion.py +1 -1
- metadata/generated/schema/api/feed/createThread.py +1 -1
- metadata/generated/schema/api/feed/resolveTask.py +1 -1
- metadata/generated/schema/api/feed/threadCount.py +1 -1
- metadata/generated/schema/api/governance/__init__.py +3 -0
- metadata/generated/schema/api/governance/createWorkflowDefinition.py +83 -0
- metadata/generated/schema/api/governance/createWorkflowInstanceState.py +22 -0
- metadata/generated/schema/api/lineage/__init__.py +1 -1
- metadata/generated/schema/api/lineage/addLineage.py +1 -1
- metadata/generated/schema/api/openMetadataServerVersion.py +1 -1
- metadata/generated/schema/api/policies/__init__.py +1 -1
- metadata/generated/schema/api/policies/createPolicy.py +1 -1
- metadata/generated/schema/api/services/__init__.py +1 -1
- metadata/generated/schema/api/services/createApiService.py +2 -2
- metadata/generated/schema/api/services/createDashboardService.py +1 -1
- metadata/generated/schema/api/services/createDatabaseService.py +1 -1
- metadata/generated/schema/api/services/createMessagingService.py +1 -1
- metadata/generated/schema/api/services/createMetadataService.py +1 -1
- metadata/generated/schema/api/services/createMlModelService.py +1 -1
- metadata/generated/schema/api/services/createPipelineService.py +1 -1
- metadata/generated/schema/api/services/createSearchService.py +1 -1
- metadata/generated/schema/api/services/createStorageService.py +1 -1
- metadata/generated/schema/api/services/ingestionPipelines/__init__.py +1 -1
- metadata/generated/schema/api/services/ingestionPipelines/createIngestionPipeline.py +1 -1
- metadata/generated/schema/api/setOwner.py +1 -1
- metadata/generated/schema/api/teams/__init__.py +1 -1
- metadata/generated/schema/api/teams/createPersona.py +1 -1
- metadata/generated/schema/api/teams/createRole.py +1 -1
- metadata/generated/schema/api/teams/createTeam.py +1 -1
- metadata/generated/schema/api/teams/createUser.py +1 -1
- metadata/generated/schema/api/tests/__init__.py +1 -1
- metadata/generated/schema/api/tests/createCustomMetric.py +1 -1
- metadata/generated/schema/api/tests/createLogicalTestCases.py +1 -1
- metadata/generated/schema/api/tests/createTestCase.py +1 -1
- metadata/generated/schema/api/tests/createTestCaseResolutionStatus.py +1 -1
- metadata/generated/schema/api/tests/createTestCaseResult.py +71 -0
- metadata/generated/schema/api/tests/createTestDefinition.py +1 -1
- metadata/generated/schema/api/tests/createTestSuite.py +1 -1
- metadata/generated/schema/api/voteRequest.py +1 -1
- metadata/generated/schema/auth/__init__.py +1 -1
- metadata/generated/schema/auth/basicAuth.py +1 -1
- metadata/generated/schema/auth/basicLoginRequest.py +1 -1
- metadata/generated/schema/auth/changePasswordRequest.py +1 -1
- metadata/generated/schema/auth/createPersonalToken.py +1 -1
- metadata/generated/schema/auth/emailRequest.py +1 -1
- metadata/generated/schema/auth/emailVerificationToken.py +1 -1
- metadata/generated/schema/auth/generateToken.py +1 -1
- metadata/generated/schema/auth/jwtAuth.py +1 -1
- metadata/generated/schema/auth/loginRequest.py +1 -1
- metadata/generated/schema/auth/logoutRequest.py +1 -1
- metadata/generated/schema/auth/passwordResetRequest.py +1 -1
- metadata/generated/schema/auth/passwordResetToken.py +1 -1
- metadata/generated/schema/auth/personalAccessToken.py +1 -1
- metadata/generated/schema/auth/refreshToken.py +1 -1
- metadata/generated/schema/auth/registrationRequest.py +1 -1
- metadata/generated/schema/auth/revokePersonalToken.py +1 -1
- metadata/generated/schema/auth/revokeToken.py +1 -1
- metadata/generated/schema/auth/serviceTokenEnum.py +1 -1
- metadata/generated/schema/auth/ssoAuth.py +1 -1
- metadata/generated/schema/auth/tokenRefreshRequest.py +1 -1
- metadata/generated/schema/configuration/__init__.py +1 -1
- metadata/generated/schema/configuration/appsPrivateConfiguration.py +1 -1
- metadata/generated/schema/configuration/assetCertificationSettings.py +22 -0
- metadata/generated/schema/configuration/authConfig.py +1 -1
- metadata/generated/schema/configuration/authenticationConfiguration.py +1 -1
- metadata/generated/schema/configuration/authorizerConfiguration.py +1 -1
- metadata/generated/schema/configuration/changeEventConfiguration.py +1 -1
- metadata/generated/schema/configuration/dataQualityConfiguration.py +1 -1
- metadata/generated/schema/configuration/elasticSearchConfiguration.py +1 -1
- metadata/generated/schema/configuration/eventHandlerConfiguration.py +1 -1
- metadata/generated/schema/configuration/fernetConfiguration.py +1 -1
- metadata/generated/schema/configuration/jwtTokenConfiguration.py +1 -1
- metadata/generated/schema/configuration/kafkaEventConfiguration.py +1 -1
- metadata/generated/schema/configuration/ldapConfiguration.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/__init__.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/customTrustManagerConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/hostNameConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/jvmDefaultConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/trustAllConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/truststoreConfig.py +1 -1
- metadata/generated/schema/configuration/limitsConfiguration.py +1 -1
- metadata/generated/schema/configuration/lineageSettings.py +1 -1
- metadata/generated/schema/configuration/loginConfiguration.py +1 -1
- metadata/generated/schema/configuration/logoConfiguration.py +1 -1
- metadata/generated/schema/configuration/pipelineServiceClientConfiguration.py +1 -1
- metadata/generated/schema/configuration/profilerConfiguration.py +1 -1
- metadata/generated/schema/configuration/searchSettings.py +1 -1
- metadata/generated/schema/configuration/slackAppConfiguration.py +1 -1
- metadata/generated/schema/configuration/taskNotificationConfiguration.py +1 -1
- metadata/generated/schema/configuration/testResultNotificationConfiguration.py +1 -1
- metadata/generated/schema/configuration/themeConfiguration.py +1 -1
- metadata/generated/schema/configuration/uiThemePreference.py +1 -1
- metadata/generated/schema/dataInsight/__init__.py +1 -1
- metadata/generated/schema/dataInsight/custom/__init__.py +1 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChart.py +1 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChartResult.py +9 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChartResultList.py +1 -1
- metadata/generated/schema/dataInsight/custom/formulaHolder.py +1 -1
- metadata/generated/schema/dataInsight/custom/lineChart.py +23 -8
- metadata/generated/schema/dataInsight/custom/summaryCard.py +20 -9
- metadata/generated/schema/dataInsight/dataInsightChart.py +1 -1
- metadata/generated/schema/dataInsight/dataInsightChartResult.py +1 -1
- metadata/generated/schema/dataInsight/kpi/__init__.py +1 -1
- metadata/generated/schema/dataInsight/kpi/basic.py +1 -1
- metadata/generated/schema/dataInsight/kpi/kpi.py +1 -1
- metadata/generated/schema/dataInsight/type/__init__.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUnusedAssetsCount.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUnusedAssetsSize.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUsedVsUnusedAssetsCount.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUsedVsUnusedAssetsSize.py +1 -1
- metadata/generated/schema/dataInsight/type/dailyActiveUsers.py +1 -1
- metadata/generated/schema/dataInsight/type/mostActiveUsers.py +1 -1
- metadata/generated/schema/dataInsight/type/mostViewedEntities.py +1 -1
- metadata/generated/schema/dataInsight/type/pageViewsByEntities.py +1 -1
- metadata/generated/schema/dataInsight/type/unusedAssets.py +1 -1
- metadata/generated/schema/email/__init__.py +1 -1
- metadata/generated/schema/email/emailRequest.py +1 -1
- metadata/generated/schema/email/emailTemplate.py +1 -1
- metadata/generated/schema/email/emailTemplatePlaceholder.py +1 -1
- metadata/generated/schema/email/smtpSettings.py +1 -1
- metadata/generated/schema/email/templateValidationReponse.py +1 -1
- metadata/generated/schema/entity/__init__.py +1 -1
- metadata/generated/schema/entity/applications/__init__.py +1 -1
- metadata/generated/schema/entity/applications/app.py +8 -1
- metadata/generated/schema/entity/applications/appExtension.py +1 -1
- metadata/generated/schema/entity/applications/appRunRecord.py +1 -1
- metadata/generated/schema/entity/applications/configuration/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/applicationConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addDescriptionAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addDomainAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addOwnerAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTagsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTierAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/lineagePropagationAction.py +54 -2
- metadata/generated/schema/entity/applications/configuration/external/automator/mlTaggingAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDescriptionAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDomainAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeOwnerAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTagsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTierAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automatorAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/collateAIAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsReportAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/searchIndexingAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/external/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/external/collateAIAppPrivateConfig.py +1 -1
- metadata/generated/schema/entity/applications/createAppRequest.py +8 -1
- metadata/generated/schema/entity/applications/jobStatus.py +1 -1
- metadata/generated/schema/entity/applications/liveExecutionContext.py +1 -1
- metadata/generated/schema/entity/applications/marketplace/__init__.py +1 -1
- metadata/generated/schema/entity/applications/marketplace/appMarketPlaceDefinition.py +8 -1
- metadata/generated/schema/entity/applications/marketplace/createAppMarketPlaceDefinitionReq.py +8 -1
- metadata/generated/schema/entity/applications/scheduledExecutionContext.py +1 -1
- metadata/generated/schema/entity/automations/__init__.py +1 -1
- metadata/generated/schema/entity/automations/testServiceConnection.py +3 -1
- metadata/generated/schema/entity/automations/workflow.py +1 -1
- metadata/generated/schema/entity/bot.py +1 -1
- metadata/generated/schema/entity/classification/__init__.py +1 -1
- metadata/generated/schema/entity/classification/classification.py +2 -2
- metadata/generated/schema/entity/classification/tag.py +2 -2
- metadata/generated/schema/entity/data/__init__.py +1 -1
- metadata/generated/schema/entity/data/apiCollection.py +4 -2
- metadata/generated/schema/entity/data/apiEndpoint.py +4 -2
- metadata/generated/schema/entity/data/chart.py +4 -3
- metadata/generated/schema/entity/data/container.py +4 -2
- metadata/generated/schema/entity/data/dashboard.py +4 -2
- metadata/generated/schema/entity/data/dashboardDataModel.py +5 -2
- metadata/generated/schema/entity/data/database.py +7 -7
- metadata/generated/schema/entity/data/databaseSchema.py +5 -2
- metadata/generated/schema/entity/data/glossary.py +2 -2
- metadata/generated/schema/entity/data/glossaryTerm.py +3 -2
- metadata/generated/schema/entity/data/metric.py +196 -0
- metadata/generated/schema/entity/data/mlmodel.py +4 -2
- metadata/generated/schema/entity/data/pipeline.py +4 -3
- metadata/generated/schema/entity/data/query.py +3 -5
- metadata/generated/schema/entity/data/report.py +1 -1
- metadata/generated/schema/entity/data/searchIndex.py +4 -2
- metadata/generated/schema/entity/data/storedProcedure.py +4 -2
- metadata/generated/schema/entity/data/table.py +36 -3
- metadata/generated/schema/entity/data/topic.py +4 -3
- metadata/generated/schema/entity/docStore/__init__.py +1 -1
- metadata/generated/schema/entity/docStore/document.py +1 -1
- metadata/generated/schema/entity/domains/__init__.py +1 -1
- metadata/generated/schema/entity/domains/dataProduct.py +1 -1
- metadata/generated/schema/entity/domains/domain.py +1 -1
- metadata/generated/schema/entity/events/__init__.py +1 -1
- metadata/generated/schema/entity/events/webhook.py +19 -2
- metadata/generated/schema/entity/feed/__init__.py +1 -1
- metadata/generated/schema/entity/feed/assets.py +1 -1
- metadata/generated/schema/entity/feed/customProperty.py +1 -1
- metadata/generated/schema/entity/feed/description.py +1 -1
- metadata/generated/schema/entity/feed/domain.py +1 -1
- metadata/generated/schema/entity/feed/entityInfo.py +1 -1
- metadata/generated/schema/entity/feed/owner.py +1 -1
- metadata/generated/schema/entity/feed/suggestion.py +1 -1
- metadata/generated/schema/entity/feed/tag.py +1 -1
- metadata/generated/schema/entity/feed/testCaseResult.py +1 -1
- metadata/generated/schema/entity/feed/thread.py +1 -1
- metadata/generated/schema/entity/policies/__init__.py +1 -1
- metadata/generated/schema/entity/policies/accessControl/__init__.py +1 -1
- metadata/generated/schema/entity/policies/accessControl/resourceDescriptor.py +4 -1
- metadata/generated/schema/entity/policies/accessControl/resourcePermission.py +1 -1
- metadata/generated/schema/entity/policies/accessControl/rule.py +1 -1
- metadata/generated/schema/entity/policies/filters.py +1 -1
- metadata/generated/schema/entity/policies/policy.py +1 -1
- metadata/generated/schema/entity/services/__init__.py +1 -1
- metadata/generated/schema/entity/services/apiService.py +7 -7
- metadata/generated/schema/entity/services/connections/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/{apiService → api}/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/{apiService → api}/restConnection.py +15 -7
- metadata/generated/schema/entity/services/connections/common/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/common/sslCertPaths.py +1 -1
- metadata/generated/schema/entity/services/connections/common/sslCertValues.py +1 -1
- metadata/generated/schema/entity/services/connections/common/sslConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/connectionBasicType.py +29 -1
- metadata/generated/schema/entity/services/connections/dashboard/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/customDashboardConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/domoDashboardConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/lightdashConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/lookerConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/metabaseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/modeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/mstrConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerBIConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerBIReportServerConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/bucketDetails.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/gcsConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/s3Config.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/qlikCloudConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/qlikSenseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/quickSightConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/redashConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/sigmaConnection.py +41 -0
- metadata/generated/schema/entity/services/connections/dashboard/supersetConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/tableauConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/athenaConnection.py +5 -1
- metadata/generated/schema/entity/services/connections/database/azureSQLConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/bigQueryConnection.py +9 -1
- metadata/generated/schema/entity/services/connections/database/bigTableConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/clickhouseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/iamAuthConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/jwtAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/noConfigAuthenticationTypes.py +11 -0
- metadata/generated/schema/entity/services/connections/database/couchbaseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/customDatabaseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/databricksConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/gcsConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/s3Config.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalakeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/db2Connection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/deltaLakeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/metastoreConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/storageConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/domoDatabaseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/dorisConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/druidConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/dynamoDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/exasolConnection.py +84 -0
- metadata/generated/schema/entity/services/connections/database/glueConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/greenplumConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/hiveConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/dynamoDbCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/glueCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/hiveCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergCatalog.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergFileSystem.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/restCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/icebergConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/impalaConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/mariaDBConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/mongoDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/mssqlConnection.py +5 -1
- metadata/generated/schema/entity/services/connections/database/mysqlConnection.py +8 -1
- metadata/generated/schema/entity/services/connections/database/oracleConnection.py +5 -1
- metadata/generated/schema/entity/services/connections/database/pinotDBConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/postgresConnection.py +5 -1
- metadata/generated/schema/entity/services/connections/database/prestoConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/redshiftConnection.py +9 -1
- metadata/generated/schema/entity/services/connections/database/salesforceConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapErpConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaHDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaSQLConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHanaConnection.py +5 -1
- metadata/generated/schema/entity/services/connections/database/sasConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/singleStoreConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/snowflakeConnection.py +9 -1
- metadata/generated/schema/entity/services/connections/database/sqliteConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/synapseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/teradataConnection.py +4 -1
- metadata/generated/schema/entity/services/connections/database/trinoConnection.py +7 -2
- metadata/generated/schema/entity/services/connections/database/unityCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/verticaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/customMessagingConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/kafkaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/kinesisConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/pulsarConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/redpandaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/saslMechanismType.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/alationConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/alationSinkConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/amundsenConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/atlasConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/metadataESConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/openMetadataConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/customMlModelConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/mlflowConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/sageMakerConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/sklearnConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/vertexaiConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/airbyteConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/airflowConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/backendConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/customPipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/dagsterConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/databricksPipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/datafactoryConnection.py +69 -0
- metadata/generated/schema/entity/services/connections/pipeline/dbtCloudConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/domoPipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/fivetranConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/flinkConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/gluePipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/kafkaConnectConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/matillionConnection.py +65 -0
- metadata/generated/schema/entity/services/connections/pipeline/nifiConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/openLineageConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/sparkConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/splineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/stitchConnection.py +43 -0
- metadata/generated/schema/entity/services/connections/search/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/customSearchConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/apiAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearchConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/search/openSearchConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/serviceConnection.py +3 -3
- metadata/generated/schema/entity/services/connections/storage/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/adlsConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/customStorageConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/gcsConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/s3Connection.py +1 -1
- metadata/generated/schema/entity/services/connections/testConnectionDefinition.py +1 -1
- metadata/generated/schema/entity/services/connections/testConnectionResult.py +1 -1
- metadata/generated/schema/entity/services/dashboardService.py +5 -2
- metadata/generated/schema/entity/services/databaseService.py +5 -2
- metadata/generated/schema/entity/services/ingestionPipelines/__init__.py +1 -1
- metadata/generated/schema/entity/services/ingestionPipelines/ingestionPipeline.py +1 -1
- metadata/generated/schema/entity/services/ingestionPipelines/pipelineServiceClientResponse.py +1 -1
- metadata/generated/schema/entity/services/ingestionPipelines/status.py +1 -1
- metadata/generated/schema/entity/services/messagingService.py +2 -2
- metadata/generated/schema/entity/services/metadataService.py +2 -2
- metadata/generated/schema/entity/services/mlmodelService.py +2 -2
- metadata/generated/schema/entity/services/pipelineService.py +11 -2
- metadata/generated/schema/entity/services/searchService.py +2 -2
- metadata/generated/schema/entity/services/serviceType.py +2 -2
- metadata/generated/schema/entity/services/storageService.py +2 -2
- metadata/generated/schema/entity/teams/__init__.py +1 -1
- metadata/generated/schema/entity/teams/persona.py +1 -1
- metadata/generated/schema/entity/teams/role.py +1 -1
- metadata/generated/schema/entity/teams/team.py +1 -1
- metadata/generated/schema/entity/teams/teamHierarchy.py +1 -1
- metadata/generated/schema/entity/teams/user.py +1 -1
- metadata/generated/schema/entity/type.py +1 -1
- metadata/generated/schema/entity/utils/__init__.py +1 -1
- metadata/generated/schema/entity/utils/entitiesCount.py +1 -1
- metadata/generated/schema/entity/utils/servicesCount.py +1 -1
- metadata/generated/schema/entity/utils/supersetApiConnection.py +1 -1
- metadata/generated/schema/events/__init__.py +1 -1
- metadata/generated/schema/events/alertMetrics.py +1 -1
- metadata/generated/schema/events/api/__init__.py +1 -1
- metadata/generated/schema/events/api/createEventSubscription.py +1 -1
- metadata/generated/schema/events/api/eventSubscriptionDiagnosticInfo.py +69 -0
- metadata/generated/schema/events/api/eventsRecord.py +37 -0
- metadata/generated/schema/events/api/testEventSubscriptionDestination.py +1 -4
- metadata/generated/schema/events/api/typedEvent.py +46 -0
- metadata/generated/schema/events/emailAlertConfig.py +1 -1
- metadata/generated/schema/events/eventFilterRule.py +1 -1
- metadata/generated/schema/events/eventSubscription.py +15 -46
- metadata/generated/schema/events/eventSubscriptionOffset.py +7 -2
- metadata/generated/schema/events/failedEvent.py +1 -1
- metadata/generated/schema/events/failedEventResponse.py +38 -0
- metadata/generated/schema/events/filterResourceDescriptor.py +1 -1
- metadata/generated/schema/events/statusContext.py +43 -0
- metadata/generated/schema/events/subscriptionResourceDescriptor.py +1 -1
- metadata/generated/schema/events/subscriptionStatus.py +78 -0
- metadata/generated/schema/events/testDestinationStatus.py +88 -0
- metadata/generated/schema/governance/workflows/__init__.py +3 -0
- metadata/generated/schema/governance/workflows/elements/__init__.py +5 -0
- metadata/generated/schema/governance/workflows/elements/edge.py +29 -0
- metadata/generated/schema/governance/workflows/elements/nodeSubType.py +16 -0
- metadata/generated/schema/governance/workflows/elements/nodeType.py +14 -0
- metadata/generated/schema/governance/workflows/elements/nodes/__init__.py +3 -0
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/__init__.py +5 -0
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/checkEntityAttributesTask.py +44 -0
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/setEntityCertificationTask.py +49 -0
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/setGlossaryTermStatusTask.py +42 -0
- metadata/generated/schema/governance/workflows/elements/nodes/endEvent/__init__.py +3 -0
- metadata/generated/schema/governance/workflows/elements/nodes/endEvent/endEvent.py +30 -0
- metadata/generated/schema/governance/workflows/elements/nodes/startEvent/__init__.py +3 -0
- metadata/generated/schema/governance/workflows/elements/nodes/startEvent/startEvent.py +30 -0
- metadata/generated/schema/governance/workflows/elements/nodes/userTask/__init__.py +3 -0
- metadata/generated/schema/governance/workflows/elements/nodes/userTask/userApprovalTask.py +57 -0
- metadata/generated/schema/governance/workflows/elements/triggers/__init__.py +3 -0
- metadata/generated/schema/governance/workflows/elements/triggers/eventBasedEntityTrigger.py +43 -0
- metadata/generated/schema/governance/workflows/elements/triggers/periodicBatchEntityTrigger.py +44 -0
- metadata/generated/schema/{entity/data/metrics.py → governance/workflows/workflowDefinition.py} +36 -49
- metadata/generated/schema/governance/workflows/workflowInstance.py +43 -0
- metadata/generated/schema/governance/workflows/workflowInstanceState.py +66 -0
- metadata/generated/schema/metadataIngestion/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/apiServiceMetadataPipeline.py +53 -0
- metadata/generated/schema/metadataIngestion/application.py +1 -1
- metadata/generated/schema/metadataIngestion/applicationPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dashboardServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dataInsightPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/databaseServiceMetadataPipeline.py +1 -9
- metadata/generated/schema/metadataIngestion/databaseServiceProfilerPipeline.py +37 -2
- metadata/generated/schema/metadataIngestion/databaseServiceQueryLineagePipeline.py +42 -1
- metadata/generated/schema/metadataIngestion/databaseServiceQueryUsagePipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtAzureConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtBucketDetails.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtCloudConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtGCSConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtHttpConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtLocalConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtS3Config.py +1 -1
- metadata/generated/schema/metadataIngestion/messagingServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/metadataToElasticSearchPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/mlmodelServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/pipelineServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/searchServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/containerMetadataConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/manifestMetadataConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageBucketDetails.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataADLSConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataGCSConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataHttpConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataLocalConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataS3Config.py +1 -1
- metadata/generated/schema/metadataIngestion/storageServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/testSuitePipeline.py +4 -1
- metadata/generated/schema/metadataIngestion/workflow.py +13 -1
- metadata/generated/schema/monitoring/__init__.py +1 -1
- metadata/generated/schema/monitoring/eventMonitorProvider.py +1 -1
- metadata/generated/schema/security/__init__.py +1 -1
- metadata/generated/schema/security/client/__init__.py +1 -1
- metadata/generated/schema/security/client/auth0SSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/azureSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/customOidcSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/googleSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/oidcClientConfig.py +1 -1
- metadata/generated/schema/security/client/oktaSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/openMetadataJWTClientConfig.py +1 -1
- metadata/generated/schema/security/client/samlSSOClientConfig.py +1 -1
- metadata/generated/schema/security/credentials/__init__.py +1 -1
- metadata/generated/schema/security/credentials/accessTokenAuth.py +1 -1
- metadata/generated/schema/security/credentials/apiAccessTokenAuth.py +1 -1
- metadata/generated/schema/security/credentials/awsCredentials.py +1 -1
- metadata/generated/schema/security/credentials/azureCredentials.py +1 -1
- metadata/generated/schema/security/credentials/basicAuth.py +1 -1
- metadata/generated/schema/security/credentials/bitbucketCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gcpCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gcpExternalAccount.py +1 -1
- metadata/generated/schema/security/credentials/gcpValues.py +1 -1
- metadata/generated/schema/security/credentials/gitCredentials.py +1 -1
- metadata/generated/schema/security/credentials/githubCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gitlabCredentials.py +1 -1
- metadata/generated/schema/security/sasl/__init__.py +1 -1
- metadata/generated/schema/security/sasl/saslClientConfig.py +1 -1
- metadata/generated/schema/security/secrets/__init__.py +1 -1
- metadata/generated/schema/security/secrets/secretsManagerClientLoader.py +1 -1
- metadata/generated/schema/security/secrets/secretsManagerConfiguration.py +1 -1
- metadata/generated/schema/security/secrets/secretsManagerProvider.py +1 -1
- metadata/generated/schema/security/securityConfiguration.py +1 -1
- metadata/generated/schema/security/ssl/__init__.py +1 -1
- metadata/generated/schema/security/ssl/validateSSLClientConfig.py +1 -1
- metadata/generated/schema/security/ssl/verifySSLConfig.py +1 -1
- metadata/generated/schema/settings/__init__.py +1 -1
- metadata/generated/schema/settings/settings.py +7 -1
- metadata/generated/schema/system/__init__.py +1 -1
- metadata/generated/schema/system/entityError.py +1 -1
- metadata/generated/schema/system/eventPublisherJob.py +2 -2
- metadata/generated/schema/system/indexingError.py +1 -1
- metadata/generated/schema/system/limitsResponse.py +1 -1
- metadata/generated/schema/system/ui/__init__.py +1 -1
- metadata/generated/schema/system/ui/knowledgePanel.py +1 -1
- metadata/generated/schema/system/ui/page.py +1 -1
- metadata/generated/schema/system/validationResponse.py +1 -1
- metadata/generated/schema/tests/__init__.py +1 -1
- metadata/generated/schema/tests/assigned.py +1 -1
- metadata/generated/schema/tests/basic.py +19 -4
- metadata/generated/schema/tests/customMetric.py +1 -1
- metadata/generated/schema/tests/dataQualityReport.py +1 -1
- metadata/generated/schema/tests/resolved.py +1 -1
- metadata/generated/schema/tests/testCase.py +6 -2
- metadata/generated/schema/tests/testCaseResolutionStatus.py +17 -2
- metadata/generated/schema/tests/testDefinition.py +1 -1
- metadata/generated/schema/tests/testSuite.py +9 -2
- metadata/generated/schema/type/__init__.py +1 -1
- metadata/generated/schema/type/apiSchema.py +1 -1
- metadata/generated/schema/type/assetCertification.py +26 -0
- metadata/generated/schema/type/auditLog.py +1 -1
- metadata/generated/schema/type/basic.py +1 -1
- metadata/generated/schema/type/bulkOperationResult.py +1 -1
- metadata/generated/schema/type/changeEvent.py +1 -1
- metadata/generated/schema/type/changeEventType.py +1 -1
- metadata/generated/schema/type/collectionDescriptor.py +1 -1
- metadata/generated/schema/type/csvDocumentation.py +1 -1
- metadata/generated/schema/type/csvErrorType.py +1 -1
- metadata/generated/schema/type/csvFile.py +1 -1
- metadata/generated/schema/type/csvImportResult.py +1 -1
- metadata/generated/schema/type/customProperties/__init__.py +1 -1
- metadata/generated/schema/type/customProperties/complexTypes.py +1 -1
- metadata/generated/schema/type/customProperties/enumConfig.py +1 -1
- metadata/generated/schema/type/customProperties/tableConfig.py +1 -1
- metadata/generated/schema/type/customProperty.py +8 -1
- metadata/generated/schema/type/dailyCount.py +1 -1
- metadata/generated/schema/type/databaseConnectionConfig.py +1 -1
- metadata/generated/schema/type/entityHierarchy.py +1 -1
- metadata/generated/schema/type/entityHistory.py +1 -1
- metadata/generated/schema/type/entityLineage.py +1 -1
- metadata/generated/schema/type/entityReference.py +1 -1
- metadata/generated/schema/type/entityReferenceList.py +1 -1
- metadata/generated/schema/type/entityRelationship.py +1 -1
- metadata/generated/schema/type/entityUsage.py +1 -1
- metadata/generated/schema/type/filterPattern.py +1 -1
- metadata/generated/schema/type/function.py +1 -1
- metadata/generated/schema/type/include.py +1 -1
- metadata/generated/schema/type/jdbcConnection.py +1 -1
- metadata/generated/schema/type/lifeCycle.py +1 -1
- metadata/generated/schema/type/paging.py +1 -1
- metadata/generated/schema/type/profile.py +1 -1
- metadata/generated/schema/type/queryParserData.py +1 -1
- metadata/generated/schema/type/reaction.py +1 -1
- metadata/generated/schema/type/schedule.py +1 -1
- metadata/generated/schema/type/schema.py +1 -1
- metadata/generated/schema/type/tableQuery.py +1 -1
- metadata/generated/schema/type/tableUsageCount.py +1 -1
- metadata/generated/schema/type/tagLabel.py +1 -1
- metadata/generated/schema/type/usageDetails.py +1 -1
- metadata/generated/schema/type/usageRequest.py +1 -1
- metadata/generated/schema/type/votes.py +1 -1
- metadata/ingestion/api/parser.py +14 -0
- metadata/ingestion/models/custom_basemodel_validation.py +80 -0
- metadata/ingestion/models/custom_pydantic.py +33 -1
- metadata/ingestion/models/custom_types.py +2 -0
- metadata/ingestion/models/entity_interface.py +71 -0
- metadata/ingestion/ometa/mixins/es_mixin.py +66 -8
- metadata/ingestion/ometa/routes.py +4 -2
- metadata/ingestion/processor/query_parser.py +2 -2
- metadata/ingestion/source/api/api_service.py +212 -0
- metadata/ingestion/source/api/rest/connection.py +93 -0
- metadata/ingestion/source/api/rest/metadata.py +278 -0
- metadata/ingestion/source/api/rest/models.py +41 -0
- metadata/ingestion/source/api/rest/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/domodashboard/service_spec.py +6 -0
- metadata/ingestion/source/dashboard/lightdash/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/looker/metadata.py +33 -4
- metadata/ingestion/source/dashboard/looker/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/metabase/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/mode/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/mstr/client.py +3 -2
- metadata/ingestion/source/dashboard/mstr/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/powerbi/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/qlikcloud/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/qliksense/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/quicksight/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/redash/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/sigma/__init__.py +0 -0
- metadata/ingestion/source/dashboard/sigma/client.py +186 -0
- metadata/ingestion/source/dashboard/sigma/connection.py +67 -0
- metadata/ingestion/source/dashboard/sigma/metadata.py +331 -0
- metadata/ingestion/source/dashboard/sigma/models.py +97 -0
- metadata/ingestion/source/dashboard/sigma/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/superset/service_spec.py +4 -0
- metadata/ingestion/source/dashboard/tableau/service_spec.py +4 -0
- metadata/ingestion/source/database/athena/service_spec.py +10 -0
- metadata/ingestion/source/database/azuresql/service_spec.py +10 -0
- metadata/ingestion/source/database/bigquery/connection.py +28 -2
- metadata/ingestion/source/database/bigquery/lineage.py +29 -2
- metadata/ingestion/source/database/bigquery/metadata.py +1 -25
- metadata/ingestion/source/database/bigquery/profiler/__init__.py +0 -0
- metadata/ingestion/source/database/bigquery/profiler/profiler.py +30 -0
- metadata/ingestion/source/database/bigquery/profiler/system.py +165 -0
- metadata/ingestion/source/database/bigquery/queries.py +69 -1
- metadata/ingestion/source/database/bigquery/service_spec.py +14 -0
- metadata/ingestion/source/database/bigtable/service_spec.py +4 -0
- metadata/ingestion/source/database/clickhouse/service_spec.py +12 -0
- metadata/ingestion/source/database/common_db_source.py +150 -147
- metadata/ingestion/source/database/common_nosql_source.py +0 -14
- metadata/ingestion/source/database/couchbase/metadata.py +62 -2
- metadata/ingestion/source/database/couchbase/models.py +31 -0
- metadata/ingestion/source/database/couchbase/queries.py +6 -1
- metadata/ingestion/source/database/couchbase/service_spec.py +4 -0
- metadata/ingestion/source/database/database_service.py +15 -22
- metadata/ingestion/source/database/databricks/metadata.py +12 -1
- metadata/ingestion/source/database/databricks/service_spec.py +16 -0
- metadata/ingestion/source/database/datalake/clients/gcs.py +6 -4
- metadata/ingestion/source/database/datalake/metadata.py +2 -13
- metadata/ingestion/source/database/datalake/service_spec.py +9 -0
- metadata/ingestion/source/database/db2/lineage.py +46 -0
- metadata/ingestion/source/database/db2/service_spec.py +9 -0
- metadata/ingestion/source/database/dbt/metadata.py +3 -6
- metadata/ingestion/source/database/dbt/service_spec.py +4 -0
- metadata/ingestion/source/database/deltalake/metadata.py +1 -12
- metadata/ingestion/source/database/deltalake/service_spec.py +4 -0
- metadata/ingestion/source/database/domodatabase/metadata.py +1 -12
- metadata/ingestion/source/database/domodatabase/service_spec.py +4 -0
- metadata/ingestion/source/database/doris/metadata.py +1 -1
- metadata/ingestion/source/database/doris/service_spec.py +4 -0
- metadata/ingestion/source/database/druid/lineage.py +46 -0
- metadata/ingestion/source/database/druid/service_spec.py +4 -0
- metadata/ingestion/source/database/dynamodb/service_spec.py +7 -0
- metadata/ingestion/source/database/exasol/__init__.py +0 -0
- metadata/ingestion/source/database/exasol/connection.py +87 -0
- metadata/ingestion/source/database/exasol/metadata.py +27 -0
- metadata/ingestion/source/database/exasol/service_spec.py +4 -0
- metadata/ingestion/source/database/glue/metadata.py +49 -19
- metadata/ingestion/source/database/glue/models.py +8 -0
- metadata/ingestion/source/database/glue/service_spec.py +4 -0
- metadata/ingestion/source/database/greenplum/lineage.py +46 -0
- metadata/ingestion/source/database/greenplum/service_spec.py +4 -0
- metadata/ingestion/source/database/hive/lineage.py +46 -0
- metadata/ingestion/source/database/hive/service_spec.py +4 -0
- metadata/ingestion/source/database/iceberg/metadata.py +1 -16
- metadata/ingestion/source/database/iceberg/service_spec.py +4 -0
- metadata/ingestion/source/database/impala/lineage.py +46 -0
- metadata/ingestion/source/database/impala/service_spec.py +4 -0
- metadata/ingestion/source/database/life_cycle_query_mixin.py +3 -5
- metadata/ingestion/source/database/lineage_source.py +124 -32
- metadata/ingestion/source/database/mariadb/lineage.py +46 -0
- metadata/ingestion/source/database/mariadb/service_spec.py +4 -0
- metadata/ingestion/source/database/mongodb/service_spec.py +7 -0
- metadata/ingestion/source/database/mssql/lineage.py +51 -2
- metadata/ingestion/source/database/mssql/metadata.py +2 -44
- metadata/ingestion/source/database/mssql/service_spec.py +10 -0
- metadata/ingestion/source/database/mysql/lineage.py +46 -0
- metadata/ingestion/source/database/mysql/service_spec.py +4 -0
- metadata/ingestion/source/database/oracle/lineage.py +28 -1
- metadata/ingestion/source/database/oracle/metadata.py +2 -23
- metadata/ingestion/source/database/oracle/service_spec.py +10 -0
- metadata/ingestion/source/database/pinotdb/lineage.py +46 -0
- metadata/ingestion/source/database/pinotdb/service_spec.py +4 -0
- metadata/ingestion/source/database/postgres/metadata.py +4 -13
- metadata/ingestion/source/database/postgres/service_spec.py +10 -0
- metadata/ingestion/source/database/postgres/utils.py +26 -0
- metadata/ingestion/source/database/presto/service_spec.py +4 -0
- metadata/ingestion/source/database/query/service_spec.py +9 -0
- metadata/ingestion/source/database/query_parser_source.py +1 -0
- metadata/ingestion/source/database/redshift/connection.py +9 -2
- metadata/ingestion/source/database/redshift/lineage.py +27 -3
- metadata/ingestion/source/database/redshift/metadata.py +2 -27
- metadata/ingestion/source/database/redshift/profiler/__init__.py +0 -0
- metadata/ingestion/source/database/redshift/profiler/profiler.py +14 -0
- metadata/ingestion/source/database/redshift/profiler/system.py +148 -0
- metadata/ingestion/source/database/redshift/queries.py +99 -8
- metadata/ingestion/source/database/redshift/service_spec.py +14 -0
- metadata/ingestion/source/database/redshift/utils.py +3 -3
- metadata/ingestion/source/database/salesforce/metadata.py +1 -12
- metadata/ingestion/source/database/salesforce/service_spec.py +4 -0
- metadata/ingestion/source/database/sample_data.py +137 -34
- metadata/ingestion/source/database/saperp/service_spec.py +4 -0
- metadata/ingestion/source/database/saphana/service_spec.py +7 -0
- metadata/ingestion/source/database/sas/metadata.py +1 -10
- metadata/ingestion/source/database/sas/service_spec.py +4 -0
- metadata/ingestion/source/database/singlestore/lineage.py +46 -0
- metadata/ingestion/source/database/singlestore/service_spec.py +9 -0
- metadata/ingestion/source/database/snowflake/connection.py +6 -1
- metadata/ingestion/source/database/snowflake/lineage.py +31 -2
- metadata/ingestion/source/database/snowflake/metadata.py +1 -24
- metadata/ingestion/source/database/snowflake/models.py +50 -1
- metadata/ingestion/source/database/snowflake/profiler/__init__.py +0 -0
- metadata/ingestion/source/database/snowflake/profiler/profiler.py +26 -0
- metadata/ingestion/source/database/snowflake/profiler/system.py +436 -0
- metadata/ingestion/source/database/snowflake/queries.py +27 -0
- metadata/ingestion/source/database/snowflake/service_spec.py +14 -0
- metadata/ingestion/source/database/sql_column_handler.py +26 -0
- metadata/ingestion/source/database/sqlite/lineage.py +46 -0
- metadata/ingestion/source/database/sqlite/service_spec.py +4 -0
- metadata/ingestion/source/database/stored_procedures_mixin.py +78 -37
- metadata/ingestion/source/database/teradata/lineage.py +46 -0
- metadata/ingestion/source/database/teradata/service_spec.py +4 -0
- metadata/ingestion/source/database/trino/connection.py +60 -23
- metadata/ingestion/source/database/trino/profiler/__init__.py +0 -0
- metadata/ingestion/source/database/trino/profiler/system_tables_profiler.py +167 -0
- metadata/ingestion/source/database/trino/service_spec.py +14 -0
- metadata/ingestion/source/database/unitycatalog/metadata.py +3 -24
- metadata/ingestion/source/database/unitycatalog/service_spec.py +18 -0
- metadata/ingestion/source/database/usage_source.py +4 -1
- metadata/ingestion/source/database/vertica/service_spec.py +10 -0
- metadata/ingestion/source/messaging/kafka/service_spec.py +4 -0
- metadata/ingestion/source/messaging/kinesis/service_spec.py +4 -0
- metadata/ingestion/source/messaging/redpanda/service_spec.py +4 -0
- metadata/ingestion/source/metadata/alationsink/service_spec.py +4 -0
- metadata/ingestion/source/metadata/amundsen/service_spec.py +4 -0
- metadata/ingestion/source/metadata/atlas/service_spec.py +4 -0
- metadata/ingestion/source/mlmodel/mlflow/service_spec.py +4 -0
- metadata/ingestion/source/mlmodel/sagemaker/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/airbyte/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/airflow/metadata.py +36 -2
- metadata/ingestion/source/pipeline/airflow/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/dagster/metadata.py +3 -1
- metadata/ingestion/source/pipeline/dagster/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/databrickspipeline/service_spec.py +6 -0
- metadata/ingestion/source/pipeline/dbtcloud/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/domopipeline/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/fivetran/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/flink/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/gluepipeline/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/kafkaconnect/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/nifi/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/openlineage/service_spec.py +4 -0
- metadata/ingestion/source/pipeline/pipeline_service.py +3 -1
- metadata/ingestion/source/pipeline/spline/service_spec.py +4 -0
- metadata/ingestion/source/search/elasticsearch/service_spec.py +4 -0
- metadata/ingestion/source/storage/gcs/metadata.py +2 -2
- metadata/ingestion/source/storage/gcs/service_spec.py +4 -0
- metadata/ingestion/source/storage/s3/service_spec.py +4 -0
- metadata/mixins/sqalchemy/sqa_mixin.py +2 -1
- metadata/parsers/avro_parser.py +51 -16
- metadata/parsers/json_schema_parser.py +45 -16
- metadata/pii/scanners/ner_scanner.py +2 -1
- metadata/profiler/api/models.py +5 -0
- metadata/profiler/interface/profiler_interface.py +26 -8
- metadata/profiler/interface/sqlalchemy/mariadb/profiler_interface.py +5 -3
- metadata/profiler/interface/sqlalchemy/profiler_interface.py +32 -21
- metadata/profiler/interface/sqlalchemy/single_store/profiler_interface.py +3 -3
- metadata/profiler/interface/sqlalchemy/stored_statistics_profiler.py +147 -0
- metadata/profiler/interface/sqlalchemy/trino/profiler_interface.py +7 -2
- metadata/profiler/metrics/system/system.py +69 -374
- metadata/profiler/orm/converter/base.py +2 -1
- metadata/profiler/orm/converter/bigquery/converter.py +1 -1
- metadata/profiler/orm/functions/count.py +9 -0
- metadata/profiler/orm/functions/md5.py +39 -0
- metadata/profiler/orm/functions/substr.py +32 -0
- metadata/profiler/orm/functions/table_metric_computer.py +1 -1
- metadata/profiler/orm/functions/unique_count.py +6 -0
- metadata/profiler/orm/registry.py +27 -2
- metadata/profiler/processor/core.py +8 -4
- metadata/profiler/processor/processor.py +1 -1
- metadata/profiler/processor/sampler/sqlalchemy/snowflake/sampler.py +28 -5
- metadata/profiler/source/{base → database/base}/profiler_source.py +20 -23
- metadata/profiler/source/{bigquery → database/bigquery}/profiler_source.py +1 -1
- metadata/profiler/source/{databricks → database/databricks}/profiler_source.py +4 -4
- metadata/profiler/source/{mariadb → database/mariadb}/metrics/window/first_quartile.py +1 -1
- metadata/profiler/source/{mariadb → database/mariadb}/metrics/window/median.py +1 -1
- metadata/profiler/source/{mariadb → database/mariadb}/metrics/window/third_quartile.py +1 -1
- metadata/profiler/source/{single_store → database/single_store}/metrics/window/first_quartile.py +3 -1
- metadata/profiler/source/{single_store → database/single_store}/metrics/window/median.py +3 -1
- metadata/profiler/source/{single_store → database/single_store}/metrics/window/third_quartile.py +3 -1
- metadata/profiler/source/fetcher/entity_fetcher.py +62 -0
- metadata/profiler/source/fetcher/fetcher_strategy.py +301 -0
- metadata/profiler/source/fetcher/profiler_source_factory.py +89 -0
- metadata/profiler/source/metadata.py +16 -201
- metadata/profiler/source/metadata_ext.py +23 -18
- metadata/profiler/source/model.py +29 -0
- metadata/utils/class_helper.py +5 -0
- metadata/utils/collaborative_super.py +28 -0
- metadata/utils/constants.py +2 -0
- metadata/utils/constraints.py +65 -0
- metadata/utils/dict.py +8 -0
- metadata/utils/dispatch.py +1 -53
- metadata/utils/entity_link.py +8 -2
- metadata/utils/entity_utils.py +93 -0
- metadata/utils/filters.py +15 -0
- metadata/utils/fqn.py +15 -0
- metadata/utils/helpers.py +2 -0
- metadata/utils/importer.py +12 -24
- metadata/utils/logger.py +23 -2
- metadata/utils/lru_cache.py +76 -15
- metadata/utils/profiler_utils.py +1 -9
- metadata/utils/service_spec/__init__.py +5 -0
- metadata/utils/service_spec/default.py +15 -0
- metadata/utils/service_spec/service_spec.py +99 -0
- metadata/utils/ssl_manager.py +33 -0
- metadata/utils/time_utils.py +33 -5
- metadata/workflow/application.py +7 -36
- metadata/workflow/base.py +47 -17
- metadata/workflow/ingestion.py +6 -38
- metadata/workflow/workflow_output_handler.py +11 -8
- metadata/workflow/workflow_status_mixin.py +0 -2
- openmetadata_ingestion-1.6.0.0rc1.dist-info/LICENSE +114 -0
- {openmetadata_ingestion-1.5.11.0.dist-info → openmetadata_ingestion-1.6.0.0rc1.dist-info}/METADATA +499 -578
- {openmetadata_ingestion-1.5.11.0.dist-info → openmetadata_ingestion-1.6.0.0rc1.dist-info}/RECORD +908 -728
- {openmetadata_ingestion-1.5.11.0.dist-info → openmetadata_ingestion-1.6.0.0rc1.dist-info}/entry_points.txt +3 -0
- metadata/profiler/interface/profiler_interface_factory.py +0 -107
- metadata/profiler/metrics/system/queries/bigquery.py +0 -54
- metadata/profiler/metrics/system/queries/redshift.py +0 -103
- metadata/profiler/metrics/system/queries/snowflake.py +0 -191
- metadata/profiler/source/profiler_source_factory.py +0 -54
- openmetadata_ingestion-1.5.11.0.dist-info/LICENSE +0 -201
- /metadata/profiler/source/{bigquery → database/bigquery}/type_mapper.py +0 -0
- /metadata/profiler/source/{mariadb → database/mariadb}/functions/median.py +0 -0
- /metadata/profiler/source/{single_store → database/single_store}/functions/median.py +0 -0
- {openmetadata_ingestion-1.5.11.0.dist-info → openmetadata_ingestion-1.6.0.0rc1.dist-info}/WHEEL +0 -0
- {openmetadata_ingestion-1.5.11.0.dist-info → openmetadata_ingestion-1.6.0.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
def merge(source: dict, destination: dict):
|
|
2
|
+
"""
|
|
3
|
+
Merge source dictionary into destination dictionary recursively in place.
|
|
4
|
+
|
|
5
|
+
Examples
|
|
6
|
+
# >>> a = { 'first' : { 'all_rows' : { 'pass' : 'dog', 'number' : '1' } } }
|
|
7
|
+
# >>> b = { 'first' : { 'all_rows' : { 'fail' : 'cat', 'number' : '5' } } }
|
|
8
|
+
# >>> merge(b, a) == { 'first' : { 'all_rows' : { 'pass' : 'dog', 'fail' : 'cat', 'number' : '5' } } }
|
|
9
|
+
True
|
|
10
|
+
|
|
11
|
+
Args:
|
|
12
|
+
source (dict): Source dictionary
|
|
13
|
+
destination (dict): Destination dictionary
|
|
14
|
+
"""
|
|
15
|
+
for key, value in source.items():
|
|
16
|
+
if isinstance(value, dict):
|
|
17
|
+
# get node or create one
|
|
18
|
+
node = destination.setdefault(key, {})
|
|
19
|
+
merge(value, node)
|
|
20
|
+
else:
|
|
21
|
+
destination[key] = value
|
|
22
|
+
|
|
23
|
+
return destination
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
from collections import deque
|
|
2
|
+
from typing import List, Union
|
|
2
3
|
|
|
3
4
|
from pydantic import BaseModel
|
|
4
5
|
|
|
5
6
|
|
|
6
7
|
def assert_equal_pydantic_objects(
|
|
7
|
-
expected: BaseModel,
|
|
8
|
+
expected: Union[BaseModel, List[BaseModel]],
|
|
9
|
+
actual: Union[BaseModel, List[BaseModel]],
|
|
10
|
+
ignore_none=True,
|
|
8
11
|
):
|
|
9
12
|
"""Compare 2 pydantic objects recursively and raise an AssertionError if they are not equal along with all
|
|
10
13
|
the differences by field. If `ignore_none` is set to True, expected None values will be ignored. This can be
|
|
@@ -32,6 +35,10 @@ def assert_equal_pydantic_objects(
|
|
|
32
35
|
Traceback (most recent call last):
|
|
33
36
|
```
|
|
34
37
|
AssertionError: objects mismatched on field: [b.a], expected: [1], actual: [2]
|
|
38
|
+
>>> assert_equal_pydantic_objects([a1, a2], [a2, a1])
|
|
39
|
+
Traceback (most recent call last):
|
|
40
|
+
```
|
|
41
|
+
AssertionError: objects mismatched on field: [0].a, expected: [1], actual: [2]
|
|
35
42
|
|
|
36
43
|
Args:
|
|
37
44
|
expected (BaseModel): The expected pydantic object.
|
|
@@ -69,11 +76,24 @@ def assert_equal_pydantic_objects(
|
|
|
69
76
|
errors.append(
|
|
70
77
|
f"objects mismatched on field: [{new_key_prefix}], expected: [{expected_value}], actual: [{actual_value}]"
|
|
71
78
|
)
|
|
79
|
+
elif isinstance(expected, list):
|
|
80
|
+
if not isinstance(actual, list):
|
|
81
|
+
errors.append(
|
|
82
|
+
f"validation error on field: [{current_key_prefix}], expected: [list], actual: [{type(actual).__name__}]"
|
|
83
|
+
)
|
|
84
|
+
elif len(expected) != len(actual):
|
|
85
|
+
errors.append(
|
|
86
|
+
f"mismatch length at {current_key_prefix}: expected: [{len(expected)}], actual: [{len(actual)}]"
|
|
87
|
+
)
|
|
88
|
+
else:
|
|
89
|
+
for i, (expected_item, actual_item) in enumerate(zip(expected, actual)):
|
|
90
|
+
queue.append(
|
|
91
|
+
(expected_item, actual_item, f"{current_key_prefix}[{i}]")
|
|
92
|
+
)
|
|
72
93
|
else:
|
|
73
94
|
if expected != actual:
|
|
74
95
|
errors.append(
|
|
75
96
|
f"mismatch at {current_key_prefix}: expected: [{expected}], actual: [{actual}]"
|
|
76
97
|
)
|
|
77
|
-
|
|
78
98
|
if errors:
|
|
79
99
|
raise AssertionError("\n".join(errors))
|
|
File without changes
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
from typing import Type
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
5
|
+
from _openmetadata_testutils.ometa import int_admin_ometa
|
|
6
|
+
from metadata.generated.schema.entity.teams.user import AuthenticationMechanism, User
|
|
7
|
+
from metadata.generated.schema.metadataIngestion.workflow import LogLevels
|
|
8
|
+
from metadata.ingestion.api.common import Entity
|
|
9
|
+
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
10
|
+
from metadata.workflow.ingestion import IngestionWorkflow
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@pytest.fixture(scope="session")
|
|
14
|
+
def metadata():
|
|
15
|
+
return int_admin_ometa()
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@pytest.fixture(scope="session")
|
|
19
|
+
def sink_config(metadata):
|
|
20
|
+
return {
|
|
21
|
+
"type": "metadata-rest",
|
|
22
|
+
"config": {},
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@pytest.fixture(scope="session")
|
|
27
|
+
def workflow_config(metadata):
|
|
28
|
+
return {
|
|
29
|
+
"loggerLevel": LogLevels.DEBUG.value,
|
|
30
|
+
"openMetadataServerConfig": metadata.config.model_dump(),
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@pytest.fixture(scope="session")
|
|
35
|
+
def ingestion_bot_wokflow_config(metadata, workflow_config):
|
|
36
|
+
ingestion_bot: User = metadata.get_by_name(
|
|
37
|
+
entity=User, fqn="ingestion-bot", nullable=False
|
|
38
|
+
)
|
|
39
|
+
ingestion_bot_auth: AuthenticationMechanism = metadata.get_by_id(
|
|
40
|
+
entity=AuthenticationMechanism, entity_id=ingestion_bot.id, nullable=False
|
|
41
|
+
)
|
|
42
|
+
workflow_config = workflow_config.copy()
|
|
43
|
+
workflow_config["openMetadataServerConfig"]["securityConfig"][
|
|
44
|
+
"jwtToken"
|
|
45
|
+
] = ingestion_bot_auth.config.JWTToken
|
|
46
|
+
return workflow_config
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@pytest.fixture()
|
|
50
|
+
def clean_up_fqn(metadata):
|
|
51
|
+
fqns = []
|
|
52
|
+
|
|
53
|
+
def inner(entity_type: type[Entity], fqn: str):
|
|
54
|
+
fqns.append((entity_type, fqn))
|
|
55
|
+
|
|
56
|
+
yield inner
|
|
57
|
+
for entity_type, fqn in fqns:
|
|
58
|
+
entity = metadata.get_by_name(entity_type, fqn, fields=["*"])
|
|
59
|
+
if entity:
|
|
60
|
+
metadata.delete(entity_type, entity.id, recursive=True, hard_delete=True)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@pytest.fixture(scope="session")
|
|
64
|
+
def ingestion_bot_workflow_config(metadata: OpenMetadata):
|
|
65
|
+
ingestion_bot: User = metadata.get_by_name(entity=User, fqn="ingestion-bot")
|
|
66
|
+
ingestion_bot_auth: AuthenticationMechanism = metadata.get_by_id(
|
|
67
|
+
entity=AuthenticationMechanism, entity_id=ingestion_bot.id
|
|
68
|
+
)
|
|
69
|
+
config = metadata.config.model_dump()
|
|
70
|
+
config["securityConfig"]["jwtToken"] = ingestion_bot_auth.config.JWTToken
|
|
71
|
+
return {
|
|
72
|
+
"loggerLevel": LogLevels.DEBUG.value,
|
|
73
|
+
"openMetadataServerConfig": config,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
@pytest.fixture(scope="module")
|
|
78
|
+
def run_workflow():
|
|
79
|
+
def _run(workflow_type: Type[IngestionWorkflow], config, raise_from_status=True):
|
|
80
|
+
workflow: IngestionWorkflow = workflow_type.create(config)
|
|
81
|
+
workflow.execute()
|
|
82
|
+
if raise_from_status:
|
|
83
|
+
workflow.raise_from_status()
|
|
84
|
+
return workflow
|
|
85
|
+
|
|
86
|
+
return _run
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
from collections import deque
|
|
2
|
+
from typing import List, Union
|
|
3
|
+
|
|
4
|
+
from pydantic import BaseModel
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def assert_equal_pydantic_objects(
|
|
8
|
+
expected: Union[BaseModel, List[BaseModel]],
|
|
9
|
+
actual: Union[BaseModel, List[BaseModel]],
|
|
10
|
+
ignore_none=True,
|
|
11
|
+
):
|
|
12
|
+
"""Compare 2 pydantic objects recursively and raise an AssertionError if they are not equal along with all
|
|
13
|
+
the differences by field. If `ignore_none` is set to True, expected None values will be ignored. This can be
|
|
14
|
+
useful when comparing objects that are partially filled.
|
|
15
|
+
|
|
16
|
+
Example:
|
|
17
|
+
>>> from pydantic import BaseModel
|
|
18
|
+
>>> class A(BaseModel):
|
|
19
|
+
... a: int
|
|
20
|
+
>>> class B(BaseModel):
|
|
21
|
+
... b: A
|
|
22
|
+
>>> a1 = A(a=1)
|
|
23
|
+
>>> a2 = A(a=2)
|
|
24
|
+
>>> b1 = B(b=a1)
|
|
25
|
+
>>> b2 = B(b=a2)
|
|
26
|
+
>>> assert_equal_pydantic_objects(a1, b1)
|
|
27
|
+
Traceback (most recent call last):
|
|
28
|
+
```
|
|
29
|
+
AssertionError: objects mismatched on type at : expected: [A], actual: [B]
|
|
30
|
+
>>> assert_equal_pydantic_objects(a1, a2)
|
|
31
|
+
Traceback (most recent call last):
|
|
32
|
+
```
|
|
33
|
+
AssertionError: objects mismatched on field: [a], expected: [1], actual: [2]
|
|
34
|
+
>>> assert_equal_pydantic_objects(b1, b2)
|
|
35
|
+
Traceback (most recent call last):
|
|
36
|
+
```
|
|
37
|
+
AssertionError: objects mismatched on field: [b.a], expected: [1], actual: [2]
|
|
38
|
+
>>> assert_equal_pydantic_objects([a1, a2], [a2, a1])
|
|
39
|
+
Traceback (most recent call last):
|
|
40
|
+
```
|
|
41
|
+
AssertionError: objects mismatched on field: [0].a, expected: [1], actual: [2]
|
|
42
|
+
|
|
43
|
+
Args:
|
|
44
|
+
expected (BaseModel): The expected pydantic object.
|
|
45
|
+
actual (BaseModel): The actual pydantic object.
|
|
46
|
+
ignore_none (bool, optional): Whether to ignore None values. Defaults to True.
|
|
47
|
+
|
|
48
|
+
Raises:
|
|
49
|
+
AssertionError: If the objects are not equal. The error message will contain all the differences.
|
|
50
|
+
"""
|
|
51
|
+
errors = []
|
|
52
|
+
queue = deque([(expected, actual, "")])
|
|
53
|
+
while queue:
|
|
54
|
+
expected, actual, current_key_prefix = queue.popleft()
|
|
55
|
+
if not isinstance(expected, actual.__class__):
|
|
56
|
+
errors.append(
|
|
57
|
+
f"objects mismatched on type at {current_key_prefix}: "
|
|
58
|
+
f"expected: [{type(expected).__name__}], actual: [{type(actual).__name__}]"
|
|
59
|
+
)
|
|
60
|
+
continue
|
|
61
|
+
if issubclass(expected.__class__, BaseModel) and isinstance(
|
|
62
|
+
expected.model_dump(), dict
|
|
63
|
+
):
|
|
64
|
+
for key, expected_value in expected.model_dump().items():
|
|
65
|
+
if expected_value is None and ignore_none:
|
|
66
|
+
continue
|
|
67
|
+
actual_value = actual.model_dump().get(key)
|
|
68
|
+
new_key_prefix = (
|
|
69
|
+
f"{current_key_prefix}.{key}" if current_key_prefix else key
|
|
70
|
+
)
|
|
71
|
+
if issubclass(getattr(expected, key).__class__, BaseModel):
|
|
72
|
+
queue.append(
|
|
73
|
+
(getattr(expected, key), getattr(actual, key), new_key_prefix)
|
|
74
|
+
)
|
|
75
|
+
elif expected_value != actual_value:
|
|
76
|
+
errors.append(
|
|
77
|
+
f"objects mismatched on field: [{new_key_prefix}], expected: [{expected_value}], actual: [{actual_value}]"
|
|
78
|
+
)
|
|
79
|
+
elif isinstance(expected, list):
|
|
80
|
+
if not isinstance(actual, list):
|
|
81
|
+
errors.append(
|
|
82
|
+
f"validation error on field: [{current_key_prefix}], expected: [list], actual: [{type(actual).__name__}]"
|
|
83
|
+
)
|
|
84
|
+
elif len(expected) != len(actual):
|
|
85
|
+
errors.append(
|
|
86
|
+
f"mismatch length at {current_key_prefix}: expected: [{len(expected)}], actual: [{len(actual)}]"
|
|
87
|
+
)
|
|
88
|
+
else:
|
|
89
|
+
for i, (expected_item, actual_item) in enumerate(zip(expected, actual)):
|
|
90
|
+
queue.append(
|
|
91
|
+
(expected_item, actual_item, f"{current_key_prefix}[{i}]")
|
|
92
|
+
)
|
|
93
|
+
else:
|
|
94
|
+
if expected != actual:
|
|
95
|
+
errors.append(
|
|
96
|
+
f"mismatch at {current_key_prefix}: expected: [{expected}], actual: [{actual}]"
|
|
97
|
+
)
|
|
98
|
+
if errors:
|
|
99
|
+
raise AssertionError("\n".join(errors))
|
metadata/cli/app.py
CHANGED
|
@@ -32,6 +32,7 @@ def run_app(config_path: Path) -> None:
|
|
|
32
32
|
|
|
33
33
|
try:
|
|
34
34
|
config_dict = load_config_file(config_path)
|
|
35
|
+
# no logging for config because apps might have custom secrets
|
|
35
36
|
workflow = ApplicationWorkflow.create(config_dict)
|
|
36
37
|
except Exception as exc:
|
|
37
38
|
logger.error(f"Error running the application {exc}")
|
metadata/cli/dataquality.py
CHANGED
|
@@ -20,7 +20,7 @@ from metadata.config.common import load_config_file
|
|
|
20
20
|
from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipeline import (
|
|
21
21
|
PipelineType,
|
|
22
22
|
)
|
|
23
|
-
from metadata.utils.logger import cli_logger
|
|
23
|
+
from metadata.utils.logger import cli_logger, redacted_config
|
|
24
24
|
from metadata.workflow.data_quality import TestSuiteWorkflow
|
|
25
25
|
from metadata.workflow.workflow_init_error_handler import WorkflowInitErrorHandler
|
|
26
26
|
|
|
@@ -37,6 +37,9 @@ def run_test(config_path: Path) -> None:
|
|
|
37
37
|
workflow_config_dict = None
|
|
38
38
|
try:
|
|
39
39
|
workflow_config_dict = load_config_file(config_path)
|
|
40
|
+
logger.debug(
|
|
41
|
+
"Using workflow config:\n%s", redacted_config(workflow_config_dict)
|
|
42
|
+
)
|
|
40
43
|
workflow = TestSuiteWorkflow.create(workflow_config_dict)
|
|
41
44
|
except Exception as exc:
|
|
42
45
|
logger.debug(traceback.format_exc())
|
metadata/cli/ingest.py
CHANGED
|
@@ -20,7 +20,7 @@ from metadata.config.common import load_config_file
|
|
|
20
20
|
from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipeline import (
|
|
21
21
|
PipelineType,
|
|
22
22
|
)
|
|
23
|
-
from metadata.utils.logger import cli_logger
|
|
23
|
+
from metadata.utils.logger import cli_logger, redacted_config
|
|
24
24
|
from metadata.workflow.metadata import MetadataWorkflow
|
|
25
25
|
from metadata.workflow.workflow_init_error_handler import WorkflowInitErrorHandler
|
|
26
26
|
|
|
@@ -37,6 +37,7 @@ def run_ingest(config_path: Path) -> None:
|
|
|
37
37
|
config_dict = None
|
|
38
38
|
try:
|
|
39
39
|
config_dict = load_config_file(config_path)
|
|
40
|
+
logger.debug("Using workflow config:\n%s", redacted_config(config_dict))
|
|
40
41
|
workflow = MetadataWorkflow.create(config_dict)
|
|
41
42
|
except Exception as exc:
|
|
42
43
|
logger.debug(traceback.format_exc())
|
metadata/cli/lineage.py
CHANGED
|
@@ -27,7 +27,7 @@ from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipel
|
|
|
27
27
|
from metadata.generated.schema.metadataIngestion.workflow import WorkflowConfig
|
|
28
28
|
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
29
29
|
from metadata.utils.constants import UTF_8
|
|
30
|
-
from metadata.utils.logger import cli_logger
|
|
30
|
+
from metadata.utils.logger import cli_logger, redacted_config
|
|
31
31
|
from metadata.workflow.workflow_init_error_handler import WorkflowInitErrorHandler
|
|
32
32
|
|
|
33
33
|
logger = cli_logger()
|
|
@@ -52,6 +52,7 @@ def run_lineage(config_path: Path) -> None:
|
|
|
52
52
|
config_dict = None
|
|
53
53
|
try:
|
|
54
54
|
config_dict = load_config_file(config_path)
|
|
55
|
+
logger.debug("Using workflow config:\n%s", redacted_config(config_dict))
|
|
55
56
|
workflow = LineageWorkflow.model_validate(config_dict)
|
|
56
57
|
|
|
57
58
|
except Exception as exc:
|
metadata/cli/profile.py
CHANGED
|
@@ -20,7 +20,7 @@ from metadata.config.common import load_config_file
|
|
|
20
20
|
from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipeline import (
|
|
21
21
|
PipelineType,
|
|
22
22
|
)
|
|
23
|
-
from metadata.utils.logger import cli_logger
|
|
23
|
+
from metadata.utils.logger import cli_logger, redacted_config
|
|
24
24
|
from metadata.workflow.profiler import ProfilerWorkflow
|
|
25
25
|
from metadata.workflow.workflow_init_error_handler import WorkflowInitErrorHandler
|
|
26
26
|
|
|
@@ -37,6 +37,9 @@ def run_profiler(config_path: Path) -> None:
|
|
|
37
37
|
workflow_config_dict = None
|
|
38
38
|
try:
|
|
39
39
|
workflow_config_dict = load_config_file(config_path)
|
|
40
|
+
logger.debug(
|
|
41
|
+
"Using workflow config:\n%s", redacted_config(workflow_config_dict)
|
|
42
|
+
)
|
|
40
43
|
workflow = ProfilerWorkflow.create(workflow_config_dict)
|
|
41
44
|
except Exception as exc:
|
|
42
45
|
logger.debug(traceback.format_exc())
|
metadata/cli/usage.py
CHANGED
|
@@ -20,7 +20,7 @@ from metadata.config.common import load_config_file
|
|
|
20
20
|
from metadata.generated.schema.entity.services.ingestionPipelines.ingestionPipeline import (
|
|
21
21
|
PipelineType,
|
|
22
22
|
)
|
|
23
|
-
from metadata.utils.logger import cli_logger
|
|
23
|
+
from metadata.utils.logger import cli_logger, redacted_config
|
|
24
24
|
from metadata.workflow.usage import UsageWorkflow
|
|
25
25
|
from metadata.workflow.workflow_init_error_handler import WorkflowInitErrorHandler
|
|
26
26
|
|
|
@@ -37,6 +37,7 @@ def run_usage(config_path: Path) -> None:
|
|
|
37
37
|
config_dict = None
|
|
38
38
|
try:
|
|
39
39
|
config_dict = load_config_file(config_path)
|
|
40
|
+
logger.debug("Using workflow config:\n%s", redacted_config(config_dict))
|
|
40
41
|
workflow = UsageWorkflow.create(config_dict)
|
|
41
42
|
except Exception as exc:
|
|
42
43
|
logger.debug(traceback.format_exc())
|
metadata/config/common.py
CHANGED
|
@@ -19,7 +19,9 @@ from abc import ABC, abstractmethod
|
|
|
19
19
|
from typing import IO, Any, Optional
|
|
20
20
|
|
|
21
21
|
import yaml
|
|
22
|
-
from pydantic import
|
|
22
|
+
from pydantic import ConfigDict
|
|
23
|
+
|
|
24
|
+
from metadata.ingestion.models.custom_pydantic import BaseModel
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
class ConfigModel(BaseModel):
|
|
@@ -18,13 +18,14 @@ multiple test cases per workflow.
|
|
|
18
18
|
|
|
19
19
|
from typing import List, Optional
|
|
20
20
|
|
|
21
|
-
from pydantic import
|
|
21
|
+
from pydantic import Field
|
|
22
22
|
|
|
23
23
|
from metadata.config.common import ConfigModel
|
|
24
24
|
from metadata.generated.schema.api.tests.createTestSuite import CreateTestSuiteRequest
|
|
25
25
|
from metadata.generated.schema.entity.data.table import Table
|
|
26
26
|
from metadata.generated.schema.tests.basic import TestCaseResult
|
|
27
27
|
from metadata.generated.schema.tests.testCase import TestCase, TestCaseParameterValue
|
|
28
|
+
from metadata.ingestion.models.custom_pydantic import BaseModel
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
class TestCaseDefinition(ConfigModel):
|
|
@@ -15,7 +15,7 @@ Validators are test classes (e.g. columnValuesToBeBetween, etc.)
|
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
from abc import ABC, abstractmethod
|
|
18
|
-
from datetime import datetime
|
|
18
|
+
from datetime import datetime, timezone
|
|
19
19
|
from typing import TYPE_CHECKING, Optional, Type, Union
|
|
20
20
|
|
|
21
21
|
from metadata.data_quality.validations.base_test_handler import BaseTestValidator
|
|
@@ -23,6 +23,7 @@ from metadata.data_quality.validations.runtime_param_setter.param_setter import
|
|
|
23
23
|
RuntimeParameterSetter,
|
|
24
24
|
)
|
|
25
25
|
from metadata.generated.schema.tests.testCase import TestCase, TestCaseParameterValue
|
|
26
|
+
from metadata.generated.schema.type.basic import Timestamp
|
|
26
27
|
from metadata.profiler.processor.runner import QueryRunner
|
|
27
28
|
from metadata.utils.importer import import_test_case_class
|
|
28
29
|
|
|
@@ -91,7 +92,9 @@ class IValidatorBuilder(ABC):
|
|
|
91
92
|
self._validator = self.validator_cls(
|
|
92
93
|
self.runner,
|
|
93
94
|
test_case=self.test_case,
|
|
94
|
-
execution_date=
|
|
95
|
+
execution_date=Timestamp(
|
|
96
|
+
int(datetime.now(tz=timezone.utc).timestamp() * 1000)
|
|
97
|
+
),
|
|
95
98
|
)
|
|
96
99
|
|
|
97
100
|
@abstractmethod
|
|
@@ -52,6 +52,7 @@ class SQATestSuiteInterface(SQAInterfaceMixin, TestSuiteInterface):
|
|
|
52
52
|
table_entity: Table = None,
|
|
53
53
|
sqa_metadata=None,
|
|
54
54
|
):
|
|
55
|
+
super().__init__()
|
|
55
56
|
self.ometa_client = ometa_client
|
|
56
57
|
self.table_entity = table_entity
|
|
57
58
|
self.service_connection_config = service_connection_config
|
|
@@ -43,17 +43,12 @@ class TestSuiteInterface(ABC):
|
|
|
43
43
|
|
|
44
44
|
runtime_params_setter_fact = RuntimeParameterSetterFactory
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
self
|
|
49
|
-
ometa_client: OpenMetadata
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
):
|
|
53
|
-
"""Required attribute for the interface"""
|
|
54
|
-
self.ometa_client = ometa_client
|
|
55
|
-
self.service_connection_config = service_connection_config
|
|
56
|
-
self.table_entity = table_entity
|
|
46
|
+
def __init__(self):
|
|
47
|
+
"""This constructor exists to staisfy the linter. Its fields should be set in the implementation class"""
|
|
48
|
+
self.ometa_client: DatabaseConnection = None
|
|
49
|
+
self.ometa_client: OpenMetadata = None
|
|
50
|
+
self.table_entity: Table = None
|
|
51
|
+
self.service_connection_config: DatabaseConnection = None
|
|
57
52
|
|
|
58
53
|
@property
|
|
59
54
|
def sampler(self):
|
|
@@ -8,27 +8,14 @@
|
|
|
8
8
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
9
|
# See the License for the specific language governing permissions and
|
|
10
10
|
# limitations under the License.
|
|
11
|
+
# pylint: disable=import-outside-toplevel
|
|
11
12
|
"""
|
|
12
13
|
Interface factory
|
|
13
14
|
"""
|
|
14
15
|
import traceback
|
|
15
16
|
from logging import Logger
|
|
17
|
+
from typing import Callable, Dict, Type
|
|
16
18
|
|
|
17
|
-
from metadata.data_quality.interface.pandas.pandas_test_suite_interface import (
|
|
18
|
-
PandasTestSuiteInterface,
|
|
19
|
-
)
|
|
20
|
-
from metadata.data_quality.interface.sqlalchemy.databricks.test_suite_interface import (
|
|
21
|
-
DatabricksTestSuiteInterface,
|
|
22
|
-
)
|
|
23
|
-
from metadata.data_quality.interface.sqlalchemy.snowflake.test_suite_interface import (
|
|
24
|
-
SnowflakeTestSuiteInterface,
|
|
25
|
-
)
|
|
26
|
-
from metadata.data_quality.interface.sqlalchemy.sqa_test_suite_interface import (
|
|
27
|
-
SQATestSuiteInterface,
|
|
28
|
-
)
|
|
29
|
-
from metadata.data_quality.interface.sqlalchemy.unity_catalog.test_suite_interface import (
|
|
30
|
-
UnityCatalogTestSuiteInterface,
|
|
31
|
-
)
|
|
32
19
|
from metadata.data_quality.interface.test_suite_interface import TestSuiteInterface
|
|
33
20
|
from metadata.generated.schema.entity.data.table import Table
|
|
34
21
|
from metadata.generated.schema.entity.services.connections.database.databricksConnection import (
|
|
@@ -55,19 +42,18 @@ class TestSuiteInterfaceFactory:
|
|
|
55
42
|
|
|
56
43
|
def __init__(self):
|
|
57
44
|
"""Initialize the interface factory"""
|
|
58
|
-
self._interface_type = {
|
|
59
|
-
"base":
|
|
60
|
-
DatalakeConnection.__name__: PandasTestSuiteInterface,
|
|
45
|
+
self._interface_type: Dict[str, Callable[[], Type[TestSuiteInterface]]] = {
|
|
46
|
+
"base": self.sqa,
|
|
61
47
|
}
|
|
62
48
|
|
|
63
|
-
def register(self, interface_type: str,
|
|
49
|
+
def register(self, interface_type: str, fn: Callable[[], Type[TestSuiteInterface]]):
|
|
64
50
|
"""Register the interface
|
|
65
51
|
|
|
66
52
|
Args:
|
|
67
53
|
interface_type (str): type of the interface
|
|
68
|
-
interface (
|
|
54
|
+
interface (callable): a class that implements the TestSuiteInterface
|
|
69
55
|
"""
|
|
70
|
-
self._interface_type[interface_type] =
|
|
56
|
+
self._interface_type[interface_type] = fn
|
|
71
57
|
|
|
72
58
|
def register_many(self, interface_dict):
|
|
73
59
|
"""
|
|
@@ -77,8 +63,8 @@ class TestSuiteInterfaceFactory:
|
|
|
77
63
|
interface_dict: A dictionary mapping connection class names (strings) to their
|
|
78
64
|
corresponding profiler interface classes.
|
|
79
65
|
"""
|
|
80
|
-
for interface_type,
|
|
81
|
-
self.register(interface_type,
|
|
66
|
+
for interface_type, interface_fn in interface_dict.items():
|
|
67
|
+
self.register(interface_type, interface_fn)
|
|
82
68
|
|
|
83
69
|
def create(
|
|
84
70
|
self,
|
|
@@ -104,25 +90,69 @@ class TestSuiteInterfaceFactory:
|
|
|
104
90
|
except AttributeError as err:
|
|
105
91
|
logger.debug(traceback.format_exc())
|
|
106
92
|
raise AttributeError(f"Could not instantiate interface class: {err}")
|
|
107
|
-
|
|
93
|
+
interface_fn = self._interface_type.get(connection_type)
|
|
108
94
|
|
|
109
|
-
if not
|
|
110
|
-
|
|
95
|
+
if not interface_fn:
|
|
96
|
+
interface_fn = self._interface_type["base"]
|
|
111
97
|
|
|
112
|
-
|
|
98
|
+
interface_class = interface_fn()
|
|
99
|
+
return interface_class(
|
|
113
100
|
service_connection_config, ometa_client, table_entity, *args, **kwargs
|
|
114
101
|
)
|
|
115
102
|
|
|
103
|
+
@staticmethod
|
|
104
|
+
def sqa() -> Type[TestSuiteInterface]:
|
|
105
|
+
"""Lazy load the SQATestSuiteInterface"""
|
|
106
|
+
from metadata.data_quality.interface.sqlalchemy.sqa_test_suite_interface import (
|
|
107
|
+
SQATestSuiteInterface,
|
|
108
|
+
)
|
|
116
109
|
|
|
117
|
-
|
|
110
|
+
return SQATestSuiteInterface
|
|
111
|
+
|
|
112
|
+
@staticmethod
|
|
113
|
+
def pandas() -> Type[TestSuiteInterface]:
|
|
114
|
+
"""Lazy load the PandasTestSuiteInterface"""
|
|
115
|
+
from metadata.data_quality.interface.pandas.pandas_test_suite_interface import (
|
|
116
|
+
PandasTestSuiteInterface,
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
return PandasTestSuiteInterface
|
|
120
|
+
|
|
121
|
+
@staticmethod
|
|
122
|
+
def snowflake() -> Type[TestSuiteInterface]:
|
|
123
|
+
"""Lazy load the SnowflakeTestSuiteInterface"""
|
|
124
|
+
from metadata.data_quality.interface.sqlalchemy.snowflake.test_suite_interface import (
|
|
125
|
+
SnowflakeTestSuiteInterface,
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
return SnowflakeTestSuiteInterface
|
|
129
|
+
|
|
130
|
+
@staticmethod
|
|
131
|
+
def unity_catalog() -> Type[TestSuiteInterface]:
|
|
132
|
+
"""Lazy load the UnityCatalogTestSuiteInterface"""
|
|
133
|
+
from metadata.data_quality.interface.sqlalchemy.unity_catalog.test_suite_interface import (
|
|
134
|
+
UnityCatalogTestSuiteInterface,
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
return UnityCatalogTestSuiteInterface
|
|
138
|
+
|
|
139
|
+
@staticmethod
|
|
140
|
+
def databricks() -> Type[TestSuiteInterface]:
|
|
141
|
+
"""Lazy load the DatabricksTestSuiteInterface"""
|
|
142
|
+
from metadata.data_quality.interface.sqlalchemy.databricks.test_suite_interface import (
|
|
143
|
+
DatabricksTestSuiteInterface,
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
return DatabricksTestSuiteInterface
|
|
118
147
|
|
|
119
148
|
|
|
120
149
|
test_suite_interface = {
|
|
121
|
-
DatabaseConnection.__name__:
|
|
122
|
-
DatalakeConnection.__name__:
|
|
123
|
-
SnowflakeConnection.__name__:
|
|
124
|
-
UnityCatalogConnection.__name__:
|
|
125
|
-
DatabricksConnection.__name__:
|
|
150
|
+
DatabaseConnection.__name__: TestSuiteInterfaceFactory.sqa,
|
|
151
|
+
DatalakeConnection.__name__: TestSuiteInterfaceFactory.pandas,
|
|
152
|
+
SnowflakeConnection.__name__: TestSuiteInterfaceFactory.snowflake,
|
|
153
|
+
UnityCatalogConnection.__name__: TestSuiteInterfaceFactory.unity_catalog,
|
|
154
|
+
DatabricksConnection.__name__: TestSuiteInterfaceFactory.databricks,
|
|
126
155
|
}
|
|
127
156
|
|
|
157
|
+
test_suite_interface_factory = TestSuiteInterfaceFactory()
|
|
128
158
|
test_suite_interface_factory.register_many(test_suite_interface)
|
|
@@ -38,8 +38,8 @@ from metadata.ingestion.api.steps import Source
|
|
|
38
38
|
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
39
39
|
from metadata.utils import fqn
|
|
40
40
|
from metadata.utils.constants import CUSTOM_CONNECTOR_PREFIX
|
|
41
|
-
from metadata.utils.importer import import_source_class
|
|
42
41
|
from metadata.utils.logger import test_suite_logger
|
|
42
|
+
from metadata.utils.service_spec.service_spec import import_source_class
|
|
43
43
|
|
|
44
44
|
logger = test_suite_logger()
|
|
45
45
|
|
|
@@ -17,7 +17,6 @@ from __future__ import annotations
|
|
|
17
17
|
|
|
18
18
|
import reprlib
|
|
19
19
|
from abc import ABC, abstractmethod
|
|
20
|
-
from datetime import datetime
|
|
21
20
|
from typing import TYPE_CHECKING, Callable, List, Optional, Type, TypeVar, Union
|
|
22
21
|
|
|
23
22
|
from metadata.data_quality.validations import utils
|
|
@@ -30,6 +29,7 @@ from metadata.generated.schema.tests.basic import (
|
|
|
30
29
|
TestResultValue,
|
|
31
30
|
)
|
|
32
31
|
from metadata.generated.schema.tests.testCase import TestCase, TestCaseParameterValue
|
|
32
|
+
from metadata.generated.schema.type.basic import Timestamp
|
|
33
33
|
from metadata.profiler.processor.runner import QueryRunner
|
|
34
34
|
|
|
35
35
|
if TYPE_CHECKING:
|
|
@@ -51,7 +51,7 @@ class BaseTestValidator(ABC):
|
|
|
51
51
|
self,
|
|
52
52
|
runner: Union[QueryRunner, List["DataFrame"]],
|
|
53
53
|
test_case: TestCase,
|
|
54
|
-
execution_date:
|
|
54
|
+
execution_date: Timestamp,
|
|
55
55
|
) -> None:
|
|
56
56
|
self.runner = runner
|
|
57
57
|
self.test_case = test_case
|
|
@@ -80,7 +80,7 @@ class BaseTestValidator(ABC):
|
|
|
80
80
|
|
|
81
81
|
def get_test_case_result_object( # pylint: disable=too-many-arguments
|
|
82
82
|
self,
|
|
83
|
-
execution_date:
|
|
83
|
+
execution_date: Timestamp,
|
|
84
84
|
status: TestCaseStatus,
|
|
85
85
|
result: str,
|
|
86
86
|
test_result_value: List[TestResultValue],
|