openmetadata-ingestion 1.5.13.1__py3-none-any.whl → 1.6.0.0__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/plugin.py +86 -0
- _openmetadata_testutils/pytest_openmetadata/test_utils.py +99 -0
- metadata/cli/app.py +1 -0
- metadata/cli/classify.py +52 -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/clients/aws_client.py +2 -2
- metadata/cmd.py +9 -0
- metadata/config/common.py +3 -1
- metadata/data_quality/api/models.py +2 -1
- metadata/data_quality/builders/{i_validator_builder.py → validator_builder.py} +45 -31
- metadata/data_quality/interface/pandas/pandas_test_suite_interface.py +25 -24
- metadata/data_quality/interface/sqlalchemy/sqa_test_suite_interface.py +23 -49
- metadata/data_quality/interface/test_suite_interface.py +36 -52
- metadata/data_quality/processor/test_case_runner.py +9 -9
- metadata/data_quality/runner/base_test_suite_source.py +52 -26
- metadata/data_quality/source/test_suite.py +1 -1
- metadata/data_quality/validations/base_test_handler.py +17 -12
- metadata/data_quality/validations/column/base/columnValuesToBeInSet.py +4 -2
- metadata/data_quality/validations/column/sqlalchemy/columnValueLengthsToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValueMaxToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValueMeanToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValueMedianToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValueMinToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValueStdDevToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesMissingCount.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesSumToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToBeAtExpectedLocation.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToBeBetween.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToBeInSet.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToBeNotInSet.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToBeNotNull.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToBeUnique.py +2 -8
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToMatchRegex.py +1 -1
- metadata/data_quality/validations/column/sqlalchemy/columnValuesToNotMatchRegex.py +1 -1
- metadata/data_quality/validations/models.py +6 -1
- metadata/data_quality/validations/runtime_param_setter/param_setter.py +2 -3
- metadata/data_quality/validations/runtime_param_setter/param_setter_factory.py +45 -17
- metadata/data_quality/validations/runtime_param_setter/table_diff_params_setter.py +26 -16
- metadata/data_quality/validations/table/sqlalchemy/tableCustomSQLQuery.py +7 -1
- metadata/data_quality/validations/table/sqlalchemy/tableDiff.py +193 -17
- metadata/data_quality/validations/table/sqlalchemy/tableRowInsertedCountToBeBetween.py +2 -2
- metadata/examples/workflows/bigquery_classifier.yaml +56 -0
- metadata/examples/workflows/bigquery_profiler.yaml +1 -2
- metadata/examples/workflows/datafactory.yaml +29 -0
- metadata/examples/workflows/db2_profiler.yaml +1 -2
- metadata/examples/workflows/dbtcloud.yaml +2 -1
- metadata/examples/workflows/matillion.yaml +31 -0
- metadata/examples/workflows/{mstr.yaml → microstrategy.yaml} +3 -2
- metadata/examples/workflows/mysql_profiler.yaml +0 -1
- metadata/examples/workflows/redshift_classifier.yaml +38 -0
- metadata/examples/workflows/redshift_profiler.yaml +2 -3
- 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/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 +8 -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 -14
- 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 +9 -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 +4 -2
- 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/external/slackAppTokenConfiguration.py +22 -0
- 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 +16 -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/microStrategyConnection.py +67 -0
- metadata/generated/schema/entity/services/connections/dashboard/modeConnection.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 +16 -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 +3 -2
- metadata/generated/schema/entity/services/connections/database/mssqlConnection.py +5 -1
- metadata/generated/schema/entity/services/connections/database/mysqlConnection.py +11 -7
- 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 +17 -5
- 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 +8 -5
- 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 +2 -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 +50 -0
- metadata/generated/schema/governance/workflows/workflowInstanceState.py +73 -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/databaseServiceAutoClassificationPipeline.py +111 -0
- metadata/generated/schema/metadataIngestion/databaseServiceMetadataPipeline.py +1 -9
- metadata/generated/schema/metadataIngestion/databaseServiceProfilerPipeline.py +27 -24
- 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 +9 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtLocalConfig.py +9 -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 +9 -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 +15 -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 -1
- 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 +2 -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/models.py +9 -5
- metadata/ingestion/api/parser.py +14 -0
- metadata/ingestion/lineage/parser.py +1 -1
- metadata/ingestion/lineage/sql_lineage.py +135 -62
- 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/data_insight_mixin.py +3 -2
- metadata/ingestion/ometa/mixins/es_mixin.py +66 -8
- metadata/ingestion/ometa/mixins/ingestion_pipeline_mixin.py +5 -3
- metadata/ingestion/ometa/mixins/suggestions_mixin.py +3 -3
- metadata/ingestion/ometa/mixins/table_mixin.py +1 -1
- metadata/ingestion/ometa/models.py +1 -0
- metadata/ingestion/ometa/ometa_api.py +6 -3
- metadata/ingestion/ometa/routes.py +4 -2
- metadata/ingestion/processor/query_parser.py +2 -2
- metadata/ingestion/sink/metadata_rest.py +23 -18
- 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/dashboard_service.py +2 -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/microstrategy/__init__.py +0 -0
- metadata/ingestion/source/dashboard/{mstr → microstrategy}/client.py +48 -37
- metadata/ingestion/source/dashboard/{mstr → microstrategy}/connection.py +11 -11
- metadata/ingestion/source/dashboard/{mstr → microstrategy}/metadata.py +18 -14
- metadata/ingestion/source/dashboard/{mstr → microstrategy}/models.py +1 -1
- metadata/ingestion/source/dashboard/microstrategy/service_spec.py +6 -0
- metadata/ingestion/source/dashboard/mode/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/metadata.py +29 -12
- metadata/ingestion/source/dashboard/tableau/models.py +10 -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 +12 -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 +166 -0
- metadata/ingestion/source/database/bigquery/queries.py +69 -1
- metadata/ingestion/source/database/bigquery/service_spec.py +16 -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/{data_quality/builders/sqa_validator_builder.py → ingestion/source/database/couchbase/models.py} +15 -9
- 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 +20 -0
- metadata/ingestion/source/database/datalake/clients/azure_blob.py +0 -3
- metadata/ingestion/source/database/datalake/clients/base.py +10 -1
- metadata/ingestion/source/database/datalake/clients/gcs.py +10 -6
- metadata/ingestion/source/database/datalake/clients/s3.py +0 -3
- metadata/ingestion/source/database/datalake/metadata.py +2 -13
- metadata/ingestion/source/database/datalake/service_spec.py +16 -0
- metadata/ingestion/source/database/db2/connection.py +14 -1
- metadata/ingestion/source/database/db2/lineage.py +46 -0
- metadata/ingestion/source/database/db2/service_spec.py +9 -0
- metadata/ingestion/source/database/dbt/constants.py +12 -0
- metadata/ingestion/source/database/dbt/dbt_config.py +24 -2
- metadata/ingestion/source/database/dbt/dbt_service.py +25 -1
- metadata/ingestion/source/database/dbt/dbt_utils.py +29 -0
- metadata/ingestion/source/database/dbt/metadata.py +73 -7
- metadata/ingestion/source/database/dbt/models.py +2 -0
- 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 +10 -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 +10 -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 +12 -0
- metadata/ingestion/source/database/mysql/lineage.py +0 -2
- metadata/ingestion/source/database/mysql/queries.py +0 -2
- metadata/ingestion/source/database/mysql/service_spec.py +10 -0
- metadata/ingestion/source/database/mysql/usage.py +0 -2
- 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 +149 -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 +129 -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 +13 -3
- metadata/ingestion/source/database/snowflake/lineage.py +65 -3
- 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 +437 -0
- metadata/ingestion/source/database/snowflake/queries.py +27 -0
- metadata/ingestion/source/database/snowflake/service_spec.py +20 -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 +90 -52
- 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 +16 -0
- metadata/ingestion/source/database/unitycatalog/metadata.py +3 -24
- metadata/ingestion/source/database/unitycatalog/service_spec.py +22 -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/connection.py +45 -2
- metadata/ingestion/source/pipeline/airflow/metadata.py +71 -27
- 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/client.py +67 -28
- metadata/ingestion/source/pipeline/dbtcloud/connection.py +1 -3
- metadata/ingestion/source/pipeline/dbtcloud/models.py +1 -1
- 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/metadata.py +1 -1
- 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/client.py +13 -14
- metadata/ingestion/source/pipeline/kafkaconnect/connection.py +1 -1
- 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/metadata.py +53 -0
- metadata/ingestion/source/search/elasticsearch/service_spec.py +4 -0
- metadata/ingestion/source/search/search_service.py +44 -1
- 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/pandas/pandas_mixin.py +2 -31
- metadata/mixins/sqalchemy/sqa_mixin.py +18 -17
- metadata/parsers/avro_parser.py +51 -16
- metadata/parsers/json_schema_parser.py +45 -16
- metadata/pii/processor.py +10 -9
- metadata/pii/scanners/ner_scanner.py +2 -1
- metadata/profiler/api/models.py +4 -75
- metadata/profiler/config.py +39 -0
- metadata/profiler/interface/nosql/profiler_interface.py +1 -26
- metadata/profiler/interface/pandas/profiler_interface.py +37 -77
- metadata/profiler/interface/profiler_interface.py +25 -279
- metadata/profiler/interface/sqlalchemy/bigquery/profiler_interface.py +0 -19
- metadata/profiler/interface/sqlalchemy/databricks/profiler_interface.py +2 -17
- metadata/profiler/interface/sqlalchemy/db2/profiler_interface.py +1 -1
- metadata/profiler/interface/sqlalchemy/mariadb/profiler_interface.py +7 -5
- metadata/profiler/interface/sqlalchemy/profiler_interface.py +73 -125
- metadata/profiler/interface/sqlalchemy/single_store/profiler_interface.py +5 -5
- metadata/profiler/interface/sqlalchemy/snowflake/profiler_interface.py +1 -1
- metadata/profiler/interface/sqlalchemy/stored_statistics_profiler.py +145 -0
- metadata/profiler/interface/sqlalchemy/trino/profiler_interface.py +9 -4
- metadata/profiler/metrics/static/max.py +4 -2
- metadata/profiler/metrics/static/min.py +4 -2
- metadata/profiler/metrics/system/system.py +69 -374
- metadata/profiler/orm/converter/base.py +23 -13
- metadata/profiler/orm/converter/bigquery/converter.py +1 -1
- metadata/profiler/orm/converter/converter_registry.py +2 -0
- metadata/profiler/orm/converter/mssql/converter.py +15 -1
- metadata/profiler/orm/functions/count.py +9 -0
- metadata/profiler/orm/functions/md5.py +42 -0
- metadata/{data_quality/builders/pandas_validator_builder.py → profiler/orm/functions/substr.py} +13 -10
- metadata/profiler/orm/functions/table_metric_computer.py +10 -9
- metadata/profiler/orm/functions/unique_count.py +6 -0
- metadata/profiler/orm/registry.py +27 -2
- metadata/profiler/orm/types/custom_timestamp.py +4 -2
- metadata/profiler/processor/core.py +13 -62
- metadata/profiler/processor/handle_partition.py +0 -48
- metadata/profiler/processor/processor.py +1 -1
- metadata/profiler/processor/runner.py +116 -35
- metadata/profiler/processor/sample_data_handler.py +7 -4
- metadata/profiler/source/database/base/profiler_source.py +214 -0
- metadata/profiler/source/{bigquery → database/bigquery}/profiler_source.py +4 -4
- metadata/profiler/source/{databricks → database/databricks}/profiler_source.py +6 -7
- 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/config.py +44 -0
- metadata/profiler/source/fetcher/entity_fetcher.py +62 -0
- metadata/profiler/source/fetcher/fetcher_strategy.py +299 -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/sampler/config.py +237 -0
- metadata/sampler/models.py +106 -0
- metadata/{profiler/processor/sampler → sampler}/nosql/sampler.py +44 -12
- metadata/sampler/pandas/sampler.py +239 -0
- metadata/{utils → sampler}/partition.py +66 -51
- metadata/sampler/processor.py +154 -0
- metadata/sampler/sampler_interface.py +251 -0
- metadata/{profiler/processor/sampler → sampler}/sqlalchemy/azuresql/sampler.py +1 -1
- metadata/{profiler/processor/sampler → sampler}/sqlalchemy/bigquery/sampler.py +55 -26
- metadata/sampler/sqlalchemy/mssql/sampler.py +50 -0
- metadata/sampler/sqlalchemy/postgres/sampler.py +91 -0
- metadata/{profiler/processor/sampler → sampler}/sqlalchemy/sampler.py +93 -98
- metadata/sampler/sqlalchemy/snowflake/sampler.py +95 -0
- metadata/{profiler/processor/sampler → sampler}/sqlalchemy/trino/sampler.py +5 -3
- metadata/utils/class_helper.py +12 -0
- metadata/utils/collaborative_super.py +28 -0
- metadata/utils/constants.py +65 -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 +3 -2
- metadata/utils/importer.py +12 -24
- metadata/utils/logger.py +31 -1
- metadata/utils/lru_cache.py +76 -15
- metadata/utils/profiler_utils.py +43 -9
- metadata/utils/service_spec/__init__.py +5 -0
- metadata/utils/service_spec/default.py +21 -0
- metadata/utils/service_spec/service_spec.py +146 -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/classification.py +53 -0
- metadata/workflow/data_quality.py +5 -1
- metadata/workflow/ingestion.py +6 -38
- metadata/workflow/profiler.py +1 -17
- metadata/workflow/workflow_output_handler.py +11 -8
- metadata/workflow/workflow_status_mixin.py +0 -2
- openmetadata_ingestion-1.6.0.0.dist-info/LICENSE +114 -0
- {openmetadata_ingestion-1.5.13.1.dist-info → openmetadata_ingestion-1.6.0.0.dist-info}/METADATA +498 -573
- {openmetadata_ingestion-1.5.13.1.dist-info → openmetadata_ingestion-1.6.0.0.dist-info}/RECORD +1012 -825
- {openmetadata_ingestion-1.5.13.1.dist-info → openmetadata_ingestion-1.6.0.0.dist-info}/entry_points.txt +3 -0
- metadata/data_quality/interface/test_suite_interface_factory.py +0 -128
- metadata/data_quality/runner/test_suite_source_factory.py +0 -38
- metadata/generated/schema/entity/services/connections/dashboard/mstrConnection.py +0 -54
- 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/processor/sampler/pandas/sampler.py +0 -170
- metadata/profiler/processor/sampler/sampler_factory.py +0 -100
- metadata/profiler/processor/sampler/sampler_interface.py +0 -74
- metadata/profiler/processor/sampler/sqlalchemy/snowflake/sampler.py +0 -60
- metadata/profiler/source/base/profiler_source.py +0 -299
- metadata/profiler/source/profiler_source_factory.py +0 -54
- openmetadata_ingestion-1.5.13.1.dist-info/LICENSE +0 -201
- {metadata/ingestion/source/dashboard/mstr → _openmetadata_testutils/pytest_openmetadata}/__init__.py +0 -0
- /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.13.1.dist-info → openmetadata_ingestion-1.6.0.0.dist-info}/WHEEL +0 -0
- {openmetadata_ingestion-1.5.13.1.dist-info → openmetadata_ingestion-1.6.0.0.dist-info}/top_level.txt +0 -0
|
@@ -13,7 +13,7 @@ Base class for ingesting database services
|
|
|
13
13
|
"""
|
|
14
14
|
import traceback
|
|
15
15
|
from abc import ABC, abstractmethod
|
|
16
|
-
from typing import Any, Iterable, List, Optional, Set, Tuple
|
|
16
|
+
from typing import Any, Iterable, List, Optional, Set, Tuple
|
|
17
17
|
|
|
18
18
|
from pydantic import BaseModel, Field
|
|
19
19
|
from sqlalchemy.engine import Inspector
|
|
@@ -23,7 +23,6 @@ from metadata.generated.schema.api.data.createDatabase import CreateDatabaseRequ
|
|
|
23
23
|
from metadata.generated.schema.api.data.createDatabaseSchema import (
|
|
24
24
|
CreateDatabaseSchemaRequest,
|
|
25
25
|
)
|
|
26
|
-
from metadata.generated.schema.api.data.createQuery import CreateQueryRequest
|
|
27
26
|
from metadata.generated.schema.api.data.createStoredProcedure import (
|
|
28
27
|
CreateStoredProcedureRequest,
|
|
29
28
|
)
|
|
@@ -112,13 +111,9 @@ class DatabaseServiceTopology(ServiceTopology):
|
|
|
112
111
|
),
|
|
113
112
|
],
|
|
114
113
|
children=["database"],
|
|
115
|
-
# Note how we have `yield_view_lineage` and `yield_stored_procedure_lineage`
|
|
116
|
-
# as post_processed. This is because we cannot ensure proper lineage processing
|
|
117
|
-
# until we have finished ingesting all the metadata from the source.
|
|
118
114
|
post_process=[
|
|
119
|
-
"yield_view_lineage",
|
|
120
|
-
"yield_procedure_lineage_and_queries",
|
|
121
115
|
"yield_external_table_lineage",
|
|
116
|
+
"yield_table_constraints",
|
|
122
117
|
],
|
|
123
118
|
)
|
|
124
119
|
database: Annotated[
|
|
@@ -345,15 +340,14 @@ class DatabaseServiceSource(
|
|
|
345
340
|
if self.source_config.includeTags:
|
|
346
341
|
yield from self.yield_database_tag(database_name) or []
|
|
347
342
|
|
|
348
|
-
@abstractmethod
|
|
349
|
-
def yield_view_lineage(self) -> Iterable[Either[AddLineageRequest]]:
|
|
350
|
-
"""
|
|
351
|
-
From topology.
|
|
352
|
-
Parses view definition to get lineage information
|
|
353
|
-
"""
|
|
354
|
-
|
|
355
343
|
def update_table_constraints(
|
|
356
|
-
self,
|
|
344
|
+
self,
|
|
345
|
+
table_name,
|
|
346
|
+
schema_name,
|
|
347
|
+
db_name,
|
|
348
|
+
table_constraints: List[TableConstraint],
|
|
349
|
+
foreign_columns: [],
|
|
350
|
+
columns,
|
|
357
351
|
) -> List[TableConstraint]:
|
|
358
352
|
"""
|
|
359
353
|
process the table constraints of all tables
|
|
@@ -381,12 +375,6 @@ class DatabaseServiceSource(
|
|
|
381
375
|
) -> Iterable[Either[CreateStoredProcedureRequest]]:
|
|
382
376
|
"""Process the stored procedure information"""
|
|
383
377
|
|
|
384
|
-
@abstractmethod
|
|
385
|
-
def yield_procedure_lineage_and_queries(
|
|
386
|
-
self,
|
|
387
|
-
) -> Iterable[Either[Union[AddLineageRequest, CreateQueryRequest]]]:
|
|
388
|
-
"""Extracts the lineage information from Stored Procedures"""
|
|
389
|
-
|
|
390
378
|
def get_raw_database_schema_names(self) -> Iterable[str]:
|
|
391
379
|
"""
|
|
392
380
|
fetch all schema names without any filtering.
|
|
@@ -539,7 +527,7 @@ class DatabaseServiceSource(
|
|
|
539
527
|
self.inspector, "get_table_owner"
|
|
540
528
|
):
|
|
541
529
|
owner_name = self.inspector.get_table_owner(
|
|
542
|
-
connection=self.connection, # pylint: disable=no-member
|
|
530
|
+
connection=self.connection, # pylint: disable=no-member
|
|
543
531
|
table_name=table_name,
|
|
544
532
|
schema=self.context.get().database_schema,
|
|
545
533
|
)
|
|
@@ -610,6 +598,11 @@ class DatabaseServiceSource(
|
|
|
610
598
|
Process external table lineage
|
|
611
599
|
"""
|
|
612
600
|
|
|
601
|
+
def yield_table_constraints(self) -> Iterable[Either[AddLineageRequest]]:
|
|
602
|
+
"""
|
|
603
|
+
Process remaining table constraints by patching the table
|
|
604
|
+
"""
|
|
605
|
+
|
|
613
606
|
def test_connection(self) -> None:
|
|
614
607
|
test_connection_fn = get_test_connection_fn(self.service_connection)
|
|
615
608
|
result = test_connection_fn(
|
|
@@ -112,6 +112,12 @@ _type_map.update(
|
|
|
112
112
|
}
|
|
113
113
|
)
|
|
114
114
|
|
|
115
|
+
|
|
116
|
+
def format_schema_name(schema):
|
|
117
|
+
# Adds back quotes(``) if hyphen(-) in schema name
|
|
118
|
+
return f"`{schema}`" if "-" in schema else schema
|
|
119
|
+
|
|
120
|
+
|
|
115
121
|
# This method is from hive dialect originally but
|
|
116
122
|
# is overridden to optimize DESCRIBE query execution
|
|
117
123
|
def _get_table_columns(self, connection, table_name, schema, db_name):
|
|
@@ -152,6 +158,7 @@ def _get_table_columns(self, connection, table_name, schema, db_name):
|
|
|
152
158
|
|
|
153
159
|
def _get_column_rows(self, connection, table_name, schema, db_name):
|
|
154
160
|
# get columns and strip whitespace
|
|
161
|
+
schema = format_schema_name(schema=schema)
|
|
155
162
|
table_columns = _get_table_columns( # pylint: disable=protected-access
|
|
156
163
|
self, connection, table_name, schema, db_name
|
|
157
164
|
)
|
|
@@ -386,6 +393,7 @@ def get_table_type(self, connection, database, schema, table):
|
|
|
386
393
|
database_name=database, schema_name=schema, table_name=table
|
|
387
394
|
)
|
|
388
395
|
else:
|
|
396
|
+
schema = format_schema_name(schema=schema)
|
|
389
397
|
query = f"DESCRIBE TABLE EXTENDED {schema}.{table}"
|
|
390
398
|
rows = get_table_comment_result(
|
|
391
399
|
self,
|
|
@@ -753,6 +761,7 @@ class DatabricksSource(ExternalTableLineageMixin, CommonDbSourceService, MultiDB
|
|
|
753
761
|
) -> str:
|
|
754
762
|
description = None
|
|
755
763
|
try:
|
|
764
|
+
schema_name = format_schema_name(schema=schema_name)
|
|
756
765
|
query = DATABRICKS_GET_TABLE_COMMENTS.format(
|
|
757
766
|
database_name=self.context.get().database,
|
|
758
767
|
schema_name=schema_name,
|
|
@@ -807,7 +816,9 @@ class DatabricksSource(ExternalTableLineageMixin, CommonDbSourceService, MultiDB
|
|
|
807
816
|
try:
|
|
808
817
|
query = DATABRICKS_GET_TABLE_COMMENTS.format(
|
|
809
818
|
database_name=self.context.get().database,
|
|
810
|
-
schema_name=
|
|
819
|
+
schema_name=format_schema_name(
|
|
820
|
+
schema=self.context.get().database_schema
|
|
821
|
+
),
|
|
811
822
|
table_name=table_name,
|
|
812
823
|
)
|
|
813
824
|
result = self.inspector.dialect.get_table_comment_result(
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from metadata.data_quality.interface.sqlalchemy.databricks.test_suite_interface import (
|
|
2
|
+
DatabricksTestSuiteInterface,
|
|
3
|
+
)
|
|
4
|
+
from metadata.ingestion.source.database.databricks.lineage import (
|
|
5
|
+
DatabricksLineageSource,
|
|
6
|
+
)
|
|
7
|
+
from metadata.ingestion.source.database.databricks.metadata import DatabricksSource
|
|
8
|
+
from metadata.ingestion.source.database.databricks.usage import DatabricksUsageSource
|
|
9
|
+
from metadata.profiler.interface.sqlalchemy.databricks.profiler_interface import (
|
|
10
|
+
DatabricksProfilerInterface,
|
|
11
|
+
)
|
|
12
|
+
from metadata.utils.service_spec.default import DefaultDatabaseSpec
|
|
13
|
+
|
|
14
|
+
ServiceSpec = DefaultDatabaseSpec(
|
|
15
|
+
metadata_source_class=DatabricksSource,
|
|
16
|
+
lineage_source_class=DatabricksLineageSource,
|
|
17
|
+
usage_source_class=DatabricksUsageSource,
|
|
18
|
+
profiler_class=DatabricksProfilerInterface,
|
|
19
|
+
test_suite_class=DatabricksTestSuiteInterface,
|
|
20
|
+
)
|
|
@@ -26,9 +26,6 @@ from metadata.utils.constants import DEFAULT_DATABASE
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class DatalakeAzureBlobClient(DatalakeBaseClient):
|
|
29
|
-
def __init__(self, client: BlobServiceClient):
|
|
30
|
-
self._client = client
|
|
31
|
-
|
|
32
29
|
@classmethod
|
|
33
30
|
def from_config(cls, config: AzureConfig) -> "DatalakeAzureBlobClient":
|
|
34
31
|
try:
|
|
@@ -13,10 +13,19 @@
|
|
|
13
13
|
Datalake Base Client
|
|
14
14
|
"""
|
|
15
15
|
from abc import ABC, abstractmethod
|
|
16
|
-
from typing import Callable, Iterable, Optional
|
|
16
|
+
from typing import Any, Callable, Iterable, Optional
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class DatalakeBaseClient(ABC):
|
|
20
|
+
"""Base DL client implementation"""
|
|
21
|
+
|
|
22
|
+
def __init__(self, client: Any, **kwargs):
|
|
23
|
+
self._client = client
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def client(self) -> Any:
|
|
27
|
+
return self._client
|
|
28
|
+
|
|
20
29
|
@classmethod
|
|
21
30
|
@abstractmethod
|
|
22
31
|
def from_config(cls, config) -> "DatalakeBaseClient":
|
|
@@ -33,9 +33,11 @@ from metadata.utils.credentials import GOOGLE_CREDENTIALS, set_google_credential
|
|
|
33
33
|
|
|
34
34
|
class DatalakeGcsClient(DatalakeBaseClient):
|
|
35
35
|
def __init__(
|
|
36
|
-
self,
|
|
36
|
+
self,
|
|
37
|
+
client: storage.Client,
|
|
38
|
+
temp_credentials_file_path_list: List[str],
|
|
37
39
|
):
|
|
38
|
-
|
|
40
|
+
super().__init__(client=client)
|
|
39
41
|
self._temp_credentials_file_path_list = temp_credentials_file_path_list
|
|
40
42
|
|
|
41
43
|
@property
|
|
@@ -49,8 +51,10 @@ class DatalakeGcsClient(DatalakeBaseClient):
|
|
|
49
51
|
if hasattr(config.securityConfig, "gcpConfig") and isinstance(
|
|
50
52
|
config.securityConfig.gcpConfig.projectId, MultipleProjectId
|
|
51
53
|
):
|
|
52
|
-
gcs_config.securityConfig.gcpConfig.projectId =
|
|
53
|
-
|
|
54
|
+
gcs_config.securityConfig.gcpConfig.projectId = (
|
|
55
|
+
SingleProjectId.model_validate(
|
|
56
|
+
gcs_config.securityConfig.gcpConfig.projectId.root[0]
|
|
57
|
+
)
|
|
54
58
|
)
|
|
55
59
|
|
|
56
60
|
if not gcs_config.securityConfig:
|
|
@@ -89,8 +93,8 @@ class DatalakeGcsClient(DatalakeBaseClient):
|
|
|
89
93
|
gcs_config = deepcopy(config)
|
|
90
94
|
|
|
91
95
|
if hasattr(gcs_config.securityConfig, "gcpConfig"):
|
|
92
|
-
gcs_config.securityConfig.gcpConfig.projectId =
|
|
93
|
-
database_name
|
|
96
|
+
gcs_config.securityConfig.gcpConfig.projectId = (
|
|
97
|
+
SingleProjectId.model_validate(database_name)
|
|
94
98
|
)
|
|
95
99
|
|
|
96
100
|
self._client = self.get_gcs_client(gcs_config)
|
|
@@ -25,9 +25,6 @@ from metadata.utils.s3_utils import list_s3_objects
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class DatalakeS3Client(DatalakeBaseClient):
|
|
28
|
-
def __init__(self, client):
|
|
29
|
-
self._client = client
|
|
30
|
-
|
|
31
28
|
@classmethod
|
|
32
29
|
def from_config(cls, config: S3Config) -> "DatalakeS3Client":
|
|
33
30
|
if not config.securityConfig:
|
|
@@ -14,18 +14,16 @@ DataLake connector to fetch metadata from a files stored s3, gcs and Hdfs
|
|
|
14
14
|
"""
|
|
15
15
|
import json
|
|
16
16
|
import traceback
|
|
17
|
-
from typing import Any, Iterable, Optional, Tuple
|
|
17
|
+
from typing import Any, Iterable, Optional, Tuple
|
|
18
18
|
|
|
19
19
|
from metadata.generated.schema.api.data.createDatabase import CreateDatabaseRequest
|
|
20
20
|
from metadata.generated.schema.api.data.createDatabaseSchema import (
|
|
21
21
|
CreateDatabaseSchemaRequest,
|
|
22
22
|
)
|
|
23
|
-
from metadata.generated.schema.api.data.createQuery import CreateQueryRequest
|
|
24
23
|
from metadata.generated.schema.api.data.createStoredProcedure import (
|
|
25
24
|
CreateStoredProcedureRequest,
|
|
26
25
|
)
|
|
27
26
|
from metadata.generated.schema.api.data.createTable import CreateTableRequest
|
|
28
|
-
from metadata.generated.schema.api.lineage.addLineage import AddLineageRequest
|
|
29
27
|
from metadata.generated.schema.entity.data.database import Database
|
|
30
28
|
from metadata.generated.schema.entity.data.databaseSchema import DatabaseSchema
|
|
31
29
|
from metadata.generated.schema.entity.data.table import Table, TableType
|
|
@@ -240,7 +238,7 @@ class DatalakeSource(DatabaseServiceSource):
|
|
|
240
238
|
verbose=False,
|
|
241
239
|
)
|
|
242
240
|
content = json.loads(metadata_config_response)
|
|
243
|
-
metadata_entry = StorageContainerConfig.
|
|
241
|
+
metadata_entry = StorageContainerConfig.model_validate(content)
|
|
244
242
|
except ReadException:
|
|
245
243
|
metadata_entry = None
|
|
246
244
|
if self.source_config.includeTables:
|
|
@@ -319,9 +317,6 @@ class DatalakeSource(DatabaseServiceSource):
|
|
|
319
317
|
)
|
|
320
318
|
)
|
|
321
319
|
|
|
322
|
-
def yield_view_lineage(self) -> Iterable[Either[AddLineageRequest]]:
|
|
323
|
-
yield from []
|
|
324
|
-
|
|
325
320
|
def yield_tag(
|
|
326
321
|
self, schema_name: str
|
|
327
322
|
) -> Iterable[Either[OMetaTagAndClassification]]:
|
|
@@ -338,12 +333,6 @@ class DatalakeSource(DatabaseServiceSource):
|
|
|
338
333
|
def get_stored_procedure_queries(self) -> Iterable[QueryByProcedure]:
|
|
339
334
|
"""Not Implemented"""
|
|
340
335
|
|
|
341
|
-
def yield_procedure_lineage_and_queries(
|
|
342
|
-
self,
|
|
343
|
-
) -> Iterable[Either[Union[AddLineageRequest, CreateQueryRequest]]]:
|
|
344
|
-
"""Not Implemented"""
|
|
345
|
-
yield from []
|
|
346
|
-
|
|
347
336
|
def standardize_table_name(
|
|
348
337
|
self, schema: str, table: str # pylint: disable=unused-argument
|
|
349
338
|
) -> str:
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from metadata.data_quality.interface.pandas.pandas_test_suite_interface import (
|
|
2
|
+
PandasTestSuiteInterface,
|
|
3
|
+
)
|
|
4
|
+
from metadata.ingestion.source.database.datalake.metadata import DatalakeSource
|
|
5
|
+
from metadata.profiler.interface.pandas.profiler_interface import (
|
|
6
|
+
PandasProfilerInterface,
|
|
7
|
+
)
|
|
8
|
+
from metadata.sampler.pandas.sampler import DatalakeSampler
|
|
9
|
+
from metadata.utils.service_spec.default import DefaultDatabaseSpec
|
|
10
|
+
|
|
11
|
+
ServiceSpec = DefaultDatabaseSpec(
|
|
12
|
+
metadata_source_class=DatalakeSource,
|
|
13
|
+
profiler_class=PandasProfilerInterface,
|
|
14
|
+
test_suite_class=PandasTestSuiteInterface,
|
|
15
|
+
sampler_class=DatalakeSampler,
|
|
16
|
+
)
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"""
|
|
13
13
|
Source connection handler
|
|
14
14
|
"""
|
|
15
|
+
from pathlib import Path
|
|
15
16
|
from typing import Optional
|
|
16
17
|
|
|
17
18
|
from sqlalchemy.engine import Engine
|
|
@@ -32,13 +33,25 @@ from metadata.ingestion.connections.builders import (
|
|
|
32
33
|
)
|
|
33
34
|
from metadata.ingestion.connections.test_connections import test_connection_db_common
|
|
34
35
|
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
35
|
-
from metadata.utils.constants import THREE_MIN
|
|
36
|
+
from metadata.utils.constants import THREE_MIN, UTF_8
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
def get_connection(connection: Db2Connection) -> Engine:
|
|
39
40
|
"""
|
|
40
41
|
Create connection
|
|
41
42
|
"""
|
|
43
|
+
# prepare license
|
|
44
|
+
# pylint: disable=import-outside-toplevel
|
|
45
|
+
if connection.license and connection.licenseFileName:
|
|
46
|
+
import clidriver
|
|
47
|
+
|
|
48
|
+
with open(
|
|
49
|
+
Path(clidriver.__path__[0], "license", connection.licenseFileName),
|
|
50
|
+
"w",
|
|
51
|
+
encoding=UTF_8,
|
|
52
|
+
) as file:
|
|
53
|
+
file.write(connection.license)
|
|
54
|
+
|
|
42
55
|
return create_generic_db_connection(
|
|
43
56
|
connection=connection,
|
|
44
57
|
get_connection_url_fn=get_connection_url_common,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright 2021 Collate
|
|
2
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
8
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
# See the License for the specific language governing permissions and
|
|
10
|
+
# limitations under the License.
|
|
11
|
+
"""
|
|
12
|
+
Db2 lineage module
|
|
13
|
+
"""
|
|
14
|
+
from typing import Optional
|
|
15
|
+
|
|
16
|
+
from metadata.generated.schema.entity.services.connections.database.db2Connection import (
|
|
17
|
+
Db2Connection,
|
|
18
|
+
)
|
|
19
|
+
from metadata.generated.schema.metadataIngestion.workflow import (
|
|
20
|
+
Source as WorkflowSource,
|
|
21
|
+
)
|
|
22
|
+
from metadata.ingestion.api.steps import InvalidSourceException
|
|
23
|
+
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
24
|
+
from metadata.ingestion.source.database.lineage_source import LineageSource
|
|
25
|
+
from metadata.utils.logger import ingestion_logger
|
|
26
|
+
|
|
27
|
+
logger = ingestion_logger()
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class Db2LineageSource(LineageSource):
|
|
31
|
+
"""
|
|
32
|
+
Db2 lineage source implements view lineage
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
@classmethod
|
|
36
|
+
def create(
|
|
37
|
+
cls, config_dict, metadata: OpenMetadata, pipeline_name: Optional[str] = None
|
|
38
|
+
):
|
|
39
|
+
"""Create class instance"""
|
|
40
|
+
config: WorkflowSource = WorkflowSource.model_validate(config_dict)
|
|
41
|
+
connection: Db2Connection = config.serviceConnection.root.config
|
|
42
|
+
if not isinstance(connection, Db2Connection):
|
|
43
|
+
raise InvalidSourceException(
|
|
44
|
+
f"Expected Db2Connection, but got {connection}"
|
|
45
|
+
)
|
|
46
|
+
return cls(config, metadata)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from metadata.ingestion.source.database.db2.metadata import Db2Source
|
|
2
|
+
from metadata.profiler.interface.sqlalchemy.db2.profiler_interface import (
|
|
3
|
+
DB2ProfilerInterface,
|
|
4
|
+
)
|
|
5
|
+
from metadata.utils.service_spec.default import DefaultDatabaseSpec
|
|
6
|
+
|
|
7
|
+
ServiceSpec = DefaultDatabaseSpec(
|
|
8
|
+
metadata_source_class=Db2Source, profiler_class=DB2ProfilerInterface
|
|
9
|
+
)
|
|
@@ -22,6 +22,14 @@ REQUIRED_MANIFEST_KEYS = ["name", "schema", "resource_type"]
|
|
|
22
22
|
# Based on https://schemas.getdbt.com/dbt/catalog/v1.json
|
|
23
23
|
REQUIRED_CATALOG_KEYS = ["name", "type", "index"]
|
|
24
24
|
|
|
25
|
+
REQUIRED_CONSTRAINT_KEYS = [
|
|
26
|
+
"type",
|
|
27
|
+
"name",
|
|
28
|
+
"expression",
|
|
29
|
+
"warn_unenforced",
|
|
30
|
+
"warn_unsupported",
|
|
31
|
+
]
|
|
32
|
+
|
|
25
33
|
REQUIRED_RESULTS_KEYS = {
|
|
26
34
|
"status",
|
|
27
35
|
"timing",
|
|
@@ -82,6 +90,7 @@ NONE_KEYWORDS_LIST = ["none", "null"]
|
|
|
82
90
|
DBT_CATALOG_FILE_NAME = "catalog.json"
|
|
83
91
|
DBT_MANIFEST_FILE_NAME = "manifest.json"
|
|
84
92
|
DBT_RUN_RESULTS_FILE_NAME = "run_results"
|
|
93
|
+
DBT_SOURCES_FILE_NAME = "sources.json"
|
|
85
94
|
|
|
86
95
|
|
|
87
96
|
class SkipResourceTypeEnum(Enum):
|
|
@@ -91,6 +100,7 @@ class SkipResourceTypeEnum(Enum):
|
|
|
91
100
|
|
|
92
101
|
ANALYSIS = "analysis"
|
|
93
102
|
TEST = "test"
|
|
103
|
+
SOURCE = "source"
|
|
94
104
|
|
|
95
105
|
|
|
96
106
|
class CompiledQueriesEnum(Enum):
|
|
@@ -127,6 +137,7 @@ class DbtTestFailureEnum(Enum):
|
|
|
127
137
|
|
|
128
138
|
FAILURE = "failure"
|
|
129
139
|
FAIL = "fail"
|
|
140
|
+
ERROR = "error"
|
|
130
141
|
|
|
131
142
|
|
|
132
143
|
class DbtCommonEnum(Enum):
|
|
@@ -137,6 +148,7 @@ class DbtCommonEnum(Enum):
|
|
|
137
148
|
OWNER = "owner"
|
|
138
149
|
NODES = "nodes"
|
|
139
150
|
SOURCES = "sources"
|
|
151
|
+
SOURCES_FILE = "sources_file"
|
|
140
152
|
SOURCE = "source"
|
|
141
153
|
RESOURCETYPE = "resource_type"
|
|
142
154
|
MANIFEST_NODE = "manifest_node"
|
|
@@ -43,6 +43,7 @@ from metadata.ingestion.source.database.dbt.constants import (
|
|
|
43
43
|
DBT_CATALOG_FILE_NAME,
|
|
44
44
|
DBT_MANIFEST_FILE_NAME,
|
|
45
45
|
DBT_RUN_RESULTS_FILE_NAME,
|
|
46
|
+
DBT_SOURCES_FILE_NAME,
|
|
46
47
|
)
|
|
47
48
|
from metadata.ingestion.source.database.dbt.models import DbtFiles
|
|
48
49
|
from metadata.readers.file.config_source_factory import get_reader
|
|
@@ -85,6 +86,7 @@ def _(config: DbtLocalConfig):
|
|
|
85
86
|
config.dbtManifestFilePath,
|
|
86
87
|
config.dbtCatalogFilePath,
|
|
87
88
|
config.dbtRunResultsFilePath,
|
|
89
|
+
config.dbtSourcesFilePath,
|
|
88
90
|
]
|
|
89
91
|
yield from download_dbt_files(
|
|
90
92
|
blob_grouped_by_directory=blob_grouped_by_directory,
|
|
@@ -123,12 +125,22 @@ def _(config: DbtHttpConfig):
|
|
|
123
125
|
dbt_catalog = requests.get( # pylint: disable=missing-timeout
|
|
124
126
|
config.dbtCatalogHttpPath
|
|
125
127
|
)
|
|
128
|
+
|
|
129
|
+
dbt_sources = None
|
|
130
|
+
if config.dbtSourcesHttpPath:
|
|
131
|
+
logger.debug(
|
|
132
|
+
f"Requesting [dbtSourcesHttpPath] to: {config.dbtSourcesHttpPath}"
|
|
133
|
+
)
|
|
134
|
+
dbt_sources = requests.get( # pylint: disable=missing-timeout
|
|
135
|
+
config.dbtSourcesHttpPath
|
|
136
|
+
)
|
|
126
137
|
if not dbt_manifest:
|
|
127
138
|
raise DBTConfigException("Manifest file not found in file server")
|
|
128
139
|
yield DbtFiles(
|
|
129
140
|
dbt_catalog=dbt_catalog.json() if dbt_catalog else None,
|
|
130
141
|
dbt_manifest=dbt_manifest.json(),
|
|
131
142
|
dbt_run_results=[dbt_run_results.json()] if dbt_run_results else None,
|
|
143
|
+
dbt_sources=dbt_sources.json() if dbt_sources else None,
|
|
132
144
|
)
|
|
133
145
|
except DBTConfigException as exc:
|
|
134
146
|
raise exc
|
|
@@ -164,7 +176,11 @@ def _(config: DbtCloudConfig): # pylint: disable=too-many-locals
|
|
|
164
176
|
logger.debug(
|
|
165
177
|
"Requesting [dbt_catalog], [dbt_manifest] and [dbt_run_results] data"
|
|
166
178
|
)
|
|
167
|
-
params_data = {
|
|
179
|
+
params_data = {
|
|
180
|
+
"order_by": "-finished_at",
|
|
181
|
+
"limit": "1",
|
|
182
|
+
"status__in": "[10,20]",
|
|
183
|
+
}
|
|
168
184
|
if project_id:
|
|
169
185
|
params_data["project_id"] = project_id
|
|
170
186
|
|
|
@@ -182,7 +198,7 @@ def _(config: DbtCloudConfig): # pylint: disable=too-many-locals
|
|
|
182
198
|
last_run = runs_data[0]
|
|
183
199
|
run_id = last_run["id"]
|
|
184
200
|
logger.info(
|
|
185
|
-
f"Retrieved last
|
|
201
|
+
f"Retrieved last completed run [{str(run_id)}]: "
|
|
186
202
|
f"Finished {str(last_run['finished_at_humanized'])} (duration: {str(last_run['duration_humanized'])})"
|
|
187
203
|
)
|
|
188
204
|
try:
|
|
@@ -243,6 +259,7 @@ def get_blobs_grouped_by_dir(blobs: List[str]) -> Dict[str, List[str]]:
|
|
|
243
259
|
return blob_grouped_by_directory
|
|
244
260
|
|
|
245
261
|
|
|
262
|
+
# pylint: disable=too-many-locals, too-many-branches
|
|
246
263
|
def download_dbt_files(
|
|
247
264
|
blob_grouped_by_directory: Dict, config, client, bucket_name: Optional[str]
|
|
248
265
|
) -> Iterable[DbtFiles]:
|
|
@@ -255,6 +272,7 @@ def download_dbt_files(
|
|
|
255
272
|
) in blob_grouped_by_directory.items():
|
|
256
273
|
dbt_catalog = None
|
|
257
274
|
dbt_manifest = None
|
|
275
|
+
dbt_sources = None
|
|
258
276
|
dbt_run_results = []
|
|
259
277
|
kwargs = {}
|
|
260
278
|
if bucket_name:
|
|
@@ -285,12 +303,16 @@ def download_dbt_files(
|
|
|
285
303
|
logger.warning(
|
|
286
304
|
f"{DBT_RUN_RESULTS_FILE_NAME} not found in {key}: {exc}"
|
|
287
305
|
)
|
|
306
|
+
if DBT_SOURCES_FILE_NAME == blob_file_name.lower():
|
|
307
|
+
logger.debug(f"{DBT_SOURCES_FILE_NAME} found in {key}")
|
|
308
|
+
dbt_sources = reader.read(path=blob, **kwargs)
|
|
288
309
|
if not dbt_manifest:
|
|
289
310
|
raise DBTConfigException(f"Manifest file not found at: {key}")
|
|
290
311
|
yield DbtFiles(
|
|
291
312
|
dbt_catalog=json.loads(dbt_catalog) if dbt_catalog else None,
|
|
292
313
|
dbt_manifest=json.loads(dbt_manifest),
|
|
293
314
|
dbt_run_results=dbt_run_results if dbt_run_results else None,
|
|
315
|
+
dbt_sources=json.loads(dbt_sources) if dbt_sources else None,
|
|
294
316
|
)
|
|
295
317
|
except DBTConfigException as exc:
|
|
296
318
|
logger.warning(exc)
|
|
@@ -15,7 +15,12 @@ DBT service Topology.
|
|
|
15
15
|
from abc import ABC, abstractmethod
|
|
16
16
|
from typing import Iterable, List
|
|
17
17
|
|
|
18
|
-
from dbt_artifacts_parser.parser import
|
|
18
|
+
from dbt_artifacts_parser.parser import (
|
|
19
|
+
parse_catalog,
|
|
20
|
+
parse_manifest,
|
|
21
|
+
parse_run_results,
|
|
22
|
+
parse_sources,
|
|
23
|
+
)
|
|
19
24
|
from pydantic import Field
|
|
20
25
|
from typing_extensions import Annotated
|
|
21
26
|
|
|
@@ -38,6 +43,7 @@ from metadata.ingestion.models.topology import (
|
|
|
38
43
|
)
|
|
39
44
|
from metadata.ingestion.source.database.database_service import DataModelLink
|
|
40
45
|
from metadata.ingestion.source.database.dbt.constants import (
|
|
46
|
+
REQUIRED_CONSTRAINT_KEYS,
|
|
41
47
|
REQUIRED_NODE_KEYS,
|
|
42
48
|
REQUIRED_RESULTS_KEYS,
|
|
43
49
|
)
|
|
@@ -182,6 +188,20 @@ class DbtServiceSource(TopologyRunnerMixin, Source, ABC):
|
|
|
182
188
|
]
|
|
183
189
|
for key in keys_to_delete:
|
|
184
190
|
del value[key]
|
|
191
|
+
if value.get("columns"):
|
|
192
|
+
for col_name, value in value[
|
|
193
|
+
"columns"
|
|
194
|
+
].items(): # pylint: disable=unused-variable
|
|
195
|
+
if value.get("constraints"):
|
|
196
|
+
keys_to_delete = [
|
|
197
|
+
key
|
|
198
|
+
for key in value
|
|
199
|
+
if key.lower() not in REQUIRED_CONSTRAINT_KEYS
|
|
200
|
+
]
|
|
201
|
+
for key in keys_to_delete:
|
|
202
|
+
del value[key]
|
|
203
|
+
else:
|
|
204
|
+
value["constraints"] = None
|
|
185
205
|
|
|
186
206
|
def remove_run_result_non_required_keys(self, run_results: List[dict]):
|
|
187
207
|
"""
|
|
@@ -209,11 +229,15 @@ class DbtServiceSource(TopologyRunnerMixin, Source, ABC):
|
|
|
209
229
|
self.remove_run_result_non_required_keys(
|
|
210
230
|
run_results=self.context.get().dbt_file.dbt_run_results
|
|
211
231
|
)
|
|
232
|
+
|
|
212
233
|
dbt_objects = DbtObjects(
|
|
213
234
|
dbt_catalog=parse_catalog(self.context.get().dbt_file.dbt_catalog)
|
|
214
235
|
if self.context.get().dbt_file.dbt_catalog
|
|
215
236
|
else None,
|
|
216
237
|
dbt_manifest=parse_manifest(self.context.get().dbt_file.dbt_manifest),
|
|
238
|
+
dbt_sources=parse_sources(self.context.get().dbt_file.dbt_sources)
|
|
239
|
+
if self.context.get().dbt_file.dbt_sources
|
|
240
|
+
else None,
|
|
217
241
|
dbt_run_results=[
|
|
218
242
|
parse_run_results(run_result_file)
|
|
219
243
|
for run_result_file in self.context.get().dbt_file.dbt_run_results
|
|
@@ -44,6 +44,20 @@ def create_test_case_parameter_definitions(dbt_test):
|
|
|
44
44
|
}
|
|
45
45
|
]
|
|
46
46
|
return test_case_param_definition
|
|
47
|
+
if hasattr(dbt_test, "freshness"):
|
|
48
|
+
test_case_param_definition = [
|
|
49
|
+
{
|
|
50
|
+
"name": "warn_after",
|
|
51
|
+
"displayName": "warn_after",
|
|
52
|
+
"required": False,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "error_after",
|
|
56
|
+
"displayName": "error_after",
|
|
57
|
+
"required": False,
|
|
58
|
+
},
|
|
59
|
+
]
|
|
60
|
+
return test_case_param_definition
|
|
47
61
|
except Exception as err: # pylint: disable=broad-except
|
|
48
62
|
logger.debug(traceback.format_exc())
|
|
49
63
|
logger.error(
|
|
@@ -67,6 +81,21 @@ def create_test_case_parameter_values(dbt_test):
|
|
|
67
81
|
{"name": manifest_node.test_metadata.name, "value": dbt_test_values}
|
|
68
82
|
]
|
|
69
83
|
return test_case_param_values
|
|
84
|
+
if hasattr(manifest_node, "freshness"):
|
|
85
|
+
warn_after = manifest_node.freshness.warn_after
|
|
86
|
+
error_after = manifest_node.freshness.error_after
|
|
87
|
+
|
|
88
|
+
test_case_param_values = [
|
|
89
|
+
{
|
|
90
|
+
"name": "error_after",
|
|
91
|
+
"value": f"{error_after.count} {error_after.period.value}",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "warn_after",
|
|
95
|
+
"value": f"{warn_after.count} {warn_after.period.value}",
|
|
96
|
+
},
|
|
97
|
+
]
|
|
98
|
+
return test_case_param_values
|
|
70
99
|
except Exception as err: # pylint: disable=broad-except
|
|
71
100
|
logger.debug(traceback.format_exc())
|
|
72
101
|
logger.error(
|