openmetadata-ingestion 1.4.6.0__py3-none-any.whl → 1.5.0.0rc1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openmetadata-ingestion might be problematic. Click here for more details.
- _openmetadata_testutils/data/dvdrental.zip +0 -0
- _openmetadata_testutils/helpers/assumption.py +118 -0
- _openmetadata_testutils/helpers/docker.py +38 -0
- _openmetadata_testutils/helpers/markers.py +5 -0
- _openmetadata_testutils/ometa.py +23 -0
- _openmetadata_testutils/postgres/conftest.py +70 -0
- _openmetadata_testutils/pydantic/test_utils.py +78 -0
- airflow_provider_openmetadata/lineage/callback.py +3 -3
- airflow_provider_openmetadata/lineage/config/loader.py +1 -1
- airflow_provider_openmetadata/lineage/runner.py +5 -5
- airflow_provider_openmetadata/lineage/status.py +2 -2
- metadata/automations/runner.py +1 -1
- metadata/cli/app.py +1 -2
- metadata/cli/dataquality.py +8 -7
- metadata/cli/ingest.py +8 -7
- metadata/cli/lineage.py +10 -5
- metadata/cli/profile.py +8 -7
- metadata/cli/usage.py +6 -7
- metadata/clients/aws_client.py +4 -4
- metadata/clients/azure_client.py +1 -1
- metadata/clients/domo_client.py +11 -17
- metadata/cmd.py +16 -20
- metadata/config/common.py +3 -4
- metadata/data_quality/api/models.py +2 -2
- metadata/data_quality/builders/i_validator_builder.py +100 -0
- metadata/{data_insight/producer/producer_interface.py → data_quality/builders/pandas_validator_builder.py} +12 -12
- metadata/data_quality/{validations/validator.py → builders/sqa_validator_builder.py} +7 -8
- metadata/data_quality/interface/pandas/pandas_test_suite_interface.py +9 -42
- metadata/data_quality/interface/sqlalchemy/sqa_test_suite_interface.py +7 -40
- metadata/data_quality/interface/test_suite_interface.py +84 -2
- metadata/data_quality/processor/test_case_runner.py +76 -40
- metadata/data_quality/runner/base_test_suite_source.py +1 -1
- metadata/data_quality/runner/core.py +2 -2
- metadata/data_quality/source/test_suite.py +17 -15
- metadata/data_quality/validations/base_test_handler.py +25 -5
- metadata/data_quality/validations/column/base/columnValueLengthsToBeBetween.py +2 -0
- metadata/data_quality/validations/column/base/columnValueMaxToBeBetween.py +2 -0
- metadata/data_quality/validations/column/base/columnValueMeanToBeBetween.py +2 -0
- metadata/data_quality/validations/column/base/columnValueMedianToBeBetween.py +2 -0
- metadata/data_quality/validations/column/base/columnValueMinToBeBetween.py +2 -0
- metadata/data_quality/validations/column/base/columnValueStdDevToBeBetween.py +2 -0
- metadata/data_quality/validations/column/base/columnValuesSumToBeBetween.py +2 -0
- metadata/data_quality/validations/column/base/columnValuesToBeBetween.py +24 -14
- metadata/data_quality/validations/column/base/columnValuesToBeInSet.py +13 -1
- metadata/data_quality/validations/column/base/columnValuesToBeNotInSet.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValueLengthsToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValueMaxToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValueMeanToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValueMedianToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValueMinToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValueStdDevToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesMissingCount.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesSumToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesToBeBetween.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesToBeInSet.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesToBeNotInSet.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesToBeNotNull.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesToBeUnique.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesToMatchRegex.py +1 -1
- metadata/data_quality/validations/column/pandas/columnValuesToNotMatchRegex.py +1 -1
- 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/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 +1 -1
- 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 +21 -0
- metadata/data_quality/validations/runtime_param_setter/param_setter.py +42 -0
- metadata/data_quality/validations/runtime_param_setter/param_setter_factory.py +54 -0
- metadata/data_quality/validations/runtime_param_setter/table_diff_params_setter.py +190 -0
- metadata/data_quality/validations/table/base/tableRowCountToBeBetween.py +4 -13
- metadata/data_quality/validations/table/pandas/tableRowInsertedCountToBeBetween.py +2 -2
- metadata/data_quality/validations/table/sqlalchemy/tableDiff.py +402 -0
- metadata/examples/workflows/alationsink.yaml +34 -0
- metadata/examples/workflows/bigquery_profiler.yaml +1 -1
- metadata/examples/workflows/dbtcloud.yaml +26 -0
- metadata/examples/workflows/deltalake.yaml +6 -5
- metadata/examples/workflows/flink.yaml +33 -0
- metadata/examples/workflows/saperp.yaml +24 -0
- metadata/examples/workflows/synapse.yaml +24 -0
- metadata/generated/antlr/EntityLinkLexer.py +279 -249
- metadata/generated/schema/analytics/__init__.py +1 -1
- metadata/generated/schema/analytics/basic.py +19 -16
- metadata/generated/schema/analytics/reportData.py +26 -18
- metadata/generated/schema/analytics/reportDataType/__init__.py +1 -1
- metadata/generated/schema/analytics/reportDataType/aggregatedCostAnalysisReportData.py +64 -43
- metadata/generated/schema/analytics/reportDataType/entityReportData.py +35 -24
- metadata/generated/schema/analytics/reportDataType/rawCostAnalysisReportData.py +18 -11
- metadata/generated/schema/analytics/reportDataType/webAnalyticEntityViewReportData.py +24 -16
- metadata/generated/schema/analytics/reportDataType/webAnalyticUserActivityReportData.py +23 -12
- metadata/generated/schema/analytics/webAnalyticEvent.py +75 -42
- metadata/generated/schema/analytics/webAnalyticEventData.py +17 -12
- metadata/generated/schema/analytics/webAnalyticEventType/__init__.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventType/customEvent.py +24 -16
- metadata/generated/schema/analytics/webAnalyticEventType/pageViewEvent.py +31 -21
- metadata/generated/schema/api/__init__.py +1 -1
- metadata/generated/schema/api/addGlossaryToAssetsRequest.py +28 -18
- metadata/generated/schema/api/analytics/__init__.py +1 -1
- metadata/generated/schema/api/analytics/createWebAnalyticEvent.py +33 -20
- metadata/generated/schema/api/automations/__init__.py +1 -1
- metadata/generated/schema/api/automations/createWorkflow.py +46 -27
- metadata/generated/schema/api/bulkAssets.py +14 -8
- metadata/generated/schema/api/classification/__init__.py +1 -1
- metadata/generated/schema/api/classification/createClassification.py +28 -15
- metadata/generated/schema/api/classification/createTag.py +43 -24
- metadata/generated/schema/api/classification/loadTags.py +11 -6
- metadata/generated/schema/api/createBot.py +30 -14
- metadata/generated/schema/api/createEventPublisherJob.py +42 -26
- metadata/generated/schema/api/createType.py +33 -21
- metadata/generated/schema/api/data/__init__.py +1 -1
- metadata/generated/schema/api/data/createAPICollection.py +97 -0
- metadata/generated/schema/api/data/createAPIEndpoint.py +107 -0
- metadata/generated/schema/api/data/createChart.py +71 -39
- metadata/generated/schema/api/data/createContainer.py +105 -68
- metadata/generated/schema/api/data/createCustomProperty.py +22 -14
- metadata/generated/schema/api/data/createDashboard.py +95 -58
- metadata/generated/schema/api/data/createDashboardDataModel.py +88 -51
- metadata/generated/schema/api/data/createDatabase.py +85 -53
- metadata/generated/schema/api/data/createDatabaseSchema.py +81 -50
- metadata/generated/schema/api/data/createGlossary.py +51 -34
- metadata/generated/schema/api/data/createGlossaryTerm.py +75 -48
- metadata/generated/schema/api/data/createMlModel.py +105 -68
- metadata/generated/schema/api/data/createPipeline.py +95 -58
- metadata/generated/schema/api/data/createQuery.py +85 -54
- metadata/generated/schema/api/data/createSearchIndex.py +76 -49
- metadata/generated/schema/api/data/createStoredProcedure.py +70 -46
- metadata/generated/schema/api/data/createTable.py +87 -58
- metadata/generated/schema/api/data/createTableProfile.py +16 -11
- metadata/generated/schema/api/data/createTopic.py +120 -75
- metadata/generated/schema/api/data/loadGlossary.py +12 -8
- metadata/generated/schema/api/data/restoreEntity.py +11 -7
- metadata/generated/schema/api/dataInsight/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/createDataInsightChart.py +41 -26
- metadata/generated/schema/api/dataInsight/custom/__init__.py +3 -0
- metadata/generated/schema/api/dataInsight/custom/createDataInsightCustomChart.py +53 -0
- metadata/generated/schema/api/dataInsight/kpi/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/kpi/createKpiRequest.py +49 -21
- metadata/generated/schema/api/docStore/__init__.py +1 -1
- metadata/generated/schema/api/docStore/createDocument.py +24 -12
- metadata/generated/schema/api/domains/__init__.py +1 -1
- metadata/generated/schema/api/domains/createDataProduct.py +50 -30
- metadata/generated/schema/api/domains/createDomain.py +38 -25
- metadata/generated/schema/api/feed/__init__.py +1 -1
- metadata/generated/schema/api/feed/closeTask.py +17 -10
- metadata/generated/schema/api/feed/createPost.py +16 -11
- metadata/generated/schema/api/feed/createSuggestion.py +56 -16
- metadata/generated/schema/api/feed/createThread.py +55 -34
- metadata/generated/schema/api/feed/resolveTask.py +21 -14
- metadata/generated/schema/api/feed/threadCount.py +29 -19
- metadata/generated/schema/api/lineage/__init__.py +1 -1
- metadata/generated/schema/api/lineage/addLineage.py +11 -6
- metadata/generated/schema/api/openMetadataServerVersion.py +18 -11
- metadata/generated/schema/api/policies/__init__.py +1 -1
- metadata/generated/schema/api/policies/createPolicy.py +38 -18
- metadata/generated/schema/api/services/__init__.py +1 -1
- metadata/generated/schema/api/services/createApiService.py +60 -0
- metadata/generated/schema/api/services/createDashboardService.py +42 -28
- metadata/generated/schema/api/services/createDatabaseService.py +42 -28
- metadata/generated/schema/api/services/createMessagingService.py +45 -29
- metadata/generated/schema/api/services/createMetadataService.py +34 -20
- metadata/generated/schema/api/services/createMlModelService.py +42 -28
- metadata/generated/schema/api/services/createPipelineService.py +50 -34
- metadata/generated/schema/api/services/createSearchService.py +45 -29
- metadata/generated/schema/api/services/createStorageService.py +45 -29
- metadata/generated/schema/api/services/ingestionPipelines/__init__.py +1 -1
- metadata/generated/schema/api/services/ingestionPipelines/createIngestionPipeline.py +45 -24
- metadata/generated/schema/api/setOwner.py +17 -8
- metadata/generated/schema/api/teams/__init__.py +1 -1
- metadata/generated/schema/api/teams/createPersona.py +32 -15
- metadata/generated/schema/api/teams/createRole.py +31 -16
- metadata/generated/schema/api/teams/createTeam.py +72 -46
- metadata/generated/schema/api/teams/createUser.py +75 -47
- metadata/generated/schema/api/tests/__init__.py +1 -1
- metadata/generated/schema/api/tests/createCustomMetric.py +38 -26
- metadata/generated/schema/api/tests/createLogicalTestCases.py +14 -10
- metadata/generated/schema/api/tests/createTestCase.py +46 -26
- metadata/generated/schema/api/tests/createTestCaseResolutionStatus.py +25 -17
- metadata/generated/schema/api/tests/createTestDefinition.py +29 -15
- metadata/generated/schema/api/tests/createTestSuite.py +50 -27
- metadata/generated/schema/api/voteRequest.py +12 -6
- metadata/generated/schema/auth/__init__.py +1 -1
- metadata/generated/schema/auth/basicAuth.py +9 -6
- metadata/generated/schema/auth/basicLoginRequest.py +10 -7
- metadata/generated/schema/auth/changePasswordRequest.py +18 -13
- metadata/generated/schema/auth/createPersonalToken.py +9 -6
- metadata/generated/schema/auth/emailRequest.py +9 -6
- metadata/generated/schema/auth/emailVerificationToken.py +17 -13
- metadata/generated/schema/auth/generateToken.py +7 -5
- metadata/generated/schema/auth/jwtAuth.py +15 -9
- metadata/generated/schema/auth/loginRequest.py +10 -7
- metadata/generated/schema/auth/logoutRequest.py +14 -9
- metadata/generated/schema/auth/passwordResetRequest.py +16 -12
- metadata/generated/schema/auth/passwordResetToken.py +27 -18
- metadata/generated/schema/auth/personalAccessToken.py +21 -16
- metadata/generated/schema/auth/refreshToken.py +21 -16
- metadata/generated/schema/auth/registrationRequest.py +13 -10
- metadata/generated/schema/auth/revokePersonalToken.py +11 -7
- metadata/generated/schema/auth/revokeToken.py +7 -5
- metadata/generated/schema/auth/serviceTokenEnum.py +1 -1
- metadata/generated/schema/auth/ssoAuth.py +24 -17
- metadata/generated/schema/auth/tokenRefreshRequest.py +11 -6
- metadata/generated/schema/configuration/__init__.py +1 -1
- metadata/generated/schema/configuration/appsPrivateConfiguration.py +23 -17
- metadata/generated/schema/configuration/authConfig.py +31 -22
- metadata/generated/schema/configuration/authenticationConfiguration.py +46 -33
- metadata/generated/schema/configuration/authorizerConfiguration.py +43 -37
- metadata/generated/schema/configuration/changeEventConfiguration.py +7 -5
- metadata/generated/schema/configuration/dataQualityConfiguration.py +10 -7
- metadata/generated/schema/configuration/elasticSearchConfiguration.py +52 -34
- metadata/generated/schema/configuration/eventHandlerConfiguration.py +10 -7
- metadata/generated/schema/configuration/fernetConfiguration.py +9 -6
- metadata/generated/schema/configuration/jwtTokenConfiguration.py +15 -12
- metadata/generated/schema/configuration/kafkaEventConfiguration.py +50 -36
- metadata/generated/schema/configuration/ldapConfiguration.py +72 -57
- metadata/generated/schema/configuration/ldapTrustStoreConfig/__init__.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/customTrustManagerConfig.py +23 -17
- metadata/generated/schema/configuration/ldapTrustStoreConfig/hostNameConfig.py +13 -8
- metadata/generated/schema/configuration/ldapTrustStoreConfig/jvmDefaultConfig.py +10 -7
- metadata/generated/schema/configuration/ldapTrustStoreConfig/trustAllConfig.py +11 -7
- metadata/generated/schema/configuration/ldapTrustStoreConfig/truststoreConfig.py +23 -16
- metadata/generated/schema/configuration/limitsConfiguration.py +30 -0
- metadata/generated/schema/configuration/loginConfiguration.py +21 -14
- metadata/generated/schema/configuration/logoConfiguration.py +16 -13
- metadata/generated/schema/configuration/pipelineServiceClientConfiguration.py +80 -49
- metadata/generated/schema/configuration/profilerConfiguration.py +18 -11
- metadata/generated/schema/configuration/slackAppConfiguration.py +15 -10
- metadata/generated/schema/configuration/taskNotificationConfiguration.py +11 -6
- metadata/generated/schema/configuration/testResultNotificationConfiguration.py +21 -14
- metadata/generated/schema/configuration/themeConfiguration.py +42 -23
- metadata/generated/schema/configuration/uiThemePreference.py +19 -12
- metadata/generated/schema/dataInsight/__init__.py +1 -1
- metadata/generated/schema/dataInsight/custom/__init__.py +3 -0
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChart.py +110 -0
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChartResult.py +21 -0
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChartResultList.py +25 -0
- metadata/generated/schema/dataInsight/custom/formulaHolder.py +24 -0
- metadata/generated/schema/dataInsight/custom/lineChart.py +55 -0
- metadata/generated/schema/dataInsight/custom/summaryCard.py +42 -0
- metadata/generated/schema/dataInsight/dataInsightChart.py +79 -48
- metadata/generated/schema/dataInsight/dataInsightChartResult.py +40 -31
- metadata/generated/schema/dataInsight/kpi/__init__.py +1 -1
- metadata/generated/schema/dataInsight/kpi/basic.py +43 -32
- metadata/generated/schema/dataInsight/kpi/kpi.py +81 -52
- metadata/generated/schema/dataInsight/type/__init__.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUnusedAssetsCount.py +19 -12
- metadata/generated/schema/dataInsight/type/aggregatedUnusedAssetsSize.py +19 -12
- metadata/generated/schema/dataInsight/type/aggregatedUsedVsUnusedAssetsCount.py +32 -19
- metadata/generated/schema/dataInsight/type/aggregatedUsedVsUnusedAssetsSize.py +32 -18
- metadata/generated/schema/dataInsight/type/dailyActiveUsers.py +16 -8
- metadata/generated/schema/dataInsight/type/mostActiveUsers.py +28 -19
- metadata/generated/schema/dataInsight/type/mostViewedEntities.py +18 -13
- metadata/generated/schema/dataInsight/type/pageViewsByEntities.py +17 -9
- metadata/generated/schema/dataInsight/type/percentageOfEntitiesWithDescriptionByType.py +35 -17
- metadata/generated/schema/dataInsight/type/percentageOfEntitiesWithOwnerByType.py +31 -17
- metadata/generated/schema/dataInsight/type/percentageOfServicesWithDescription.py +33 -17
- metadata/generated/schema/dataInsight/type/percentageOfServicesWithOwner.py +31 -17
- metadata/generated/schema/dataInsight/type/totalEntitiesByTier.py +26 -14
- metadata/generated/schema/dataInsight/type/totalEntitiesByType.py +27 -14
- metadata/generated/schema/dataInsight/type/unusedAssets.py +17 -9
- metadata/generated/schema/email/__init__.py +1 -1
- metadata/generated/schema/email/emailRequest.py +26 -18
- metadata/generated/schema/email/emailTemplate.py +25 -0
- metadata/generated/schema/email/emailTemplatePlaceholder.py +20 -0
- metadata/generated/schema/email/smtpSettings.py +34 -18
- metadata/generated/schema/email/templateValidationReponse.py +29 -0
- metadata/generated/schema/entity/__init__.py +1 -1
- metadata/generated/schema/entity/applications/__init__.py +1 -1
- metadata/generated/schema/entity/applications/app.py +164 -107
- metadata/generated/schema/entity/applications/appRunRecord.py +42 -30
- metadata/generated/schema/entity/applications/configuration/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/applicationConfig.py +24 -7
- 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 +28 -18
- metadata/generated/schema/entity/applications/configuration/external/automator/addDomainAction.py +22 -13
- metadata/generated/schema/entity/applications/configuration/external/automator/addOwnerAction.py +23 -14
- metadata/generated/schema/entity/applications/configuration/external/automator/addTagsAction.py +28 -18
- metadata/generated/schema/entity/applications/configuration/external/automator/addTierAction.py +20 -13
- metadata/generated/schema/entity/applications/configuration/external/automator/lineagePropagationAction.py +19 -12
- metadata/generated/schema/entity/applications/configuration/external/automator/mlTaggingAction.py +11 -7
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDescriptionAction.py +19 -12
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDomainAction.py +11 -7
- metadata/generated/schema/entity/applications/configuration/external/automator/removeOwnerAction.py +11 -7
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTagsAction.py +20 -13
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTierAction.py +11 -7
- metadata/generated/schema/entity/applications/configuration/external/automatorAppConfig.py +68 -39
- metadata/generated/schema/entity/applications/configuration/external/metaPilotAppConfig.py +39 -19
- metadata/generated/schema/entity/applications/configuration/internal/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsAppConfig.py +57 -6
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsReportAppConfig.py +17 -11
- metadata/generated/schema/entity/applications/configuration/internal/searchIndexingAppConfig.py +34 -24
- metadata/generated/schema/entity/applications/configuration/private/external/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/external/metaPilotAppPrivateConfig.py +19 -16
- metadata/generated/schema/entity/applications/createAppRequest.py +35 -23
- metadata/generated/schema/entity/applications/jobStatus.py +10 -6
- metadata/generated/schema/entity/applications/liveExecutionContext.py +15 -6
- metadata/generated/schema/entity/applications/marketplace/__init__.py +1 -1
- metadata/generated/schema/entity/applications/marketplace/appMarketPlaceDefinition.py +144 -89
- metadata/generated/schema/entity/applications/marketplace/createAppMarketPlaceDefinitionReq.py +95 -64
- metadata/generated/schema/entity/applications/scheduledExecutionContext.py +8 -3
- metadata/generated/schema/entity/automations/__init__.py +1 -1
- metadata/generated/schema/entity/automations/testServiceConnection.py +47 -29
- metadata/generated/schema/entity/automations/workflow.py +82 -48
- metadata/generated/schema/entity/bot.py +64 -37
- metadata/generated/schema/entity/classification/__init__.py +1 -1
- metadata/generated/schema/entity/classification/classification.py +90 -50
- metadata/generated/schema/entity/classification/tag.py +104 -53
- metadata/generated/schema/entity/data/__init__.py +1 -1
- metadata/generated/schema/entity/data/apiCollection.py +145 -0
- metadata/generated/schema/entity/data/apiEndpoint.py +173 -0
- metadata/generated/schema/entity/data/chart.py +120 -72
- metadata/generated/schema/entity/data/container.py +178 -116
- metadata/generated/schema/entity/data/dashboard.py +141 -89
- metadata/generated/schema/entity/data/dashboardDataModel.py +129 -77
- metadata/generated/schema/entity/data/database.py +167 -104
- metadata/generated/schema/entity/data/databaseSchema.py +157 -98
- metadata/generated/schema/entity/data/glossary.py +118 -64
- metadata/generated/schema/entity/data/glossaryTerm.py +173 -105
- metadata/generated/schema/entity/data/metrics.py +93 -55
- metadata/generated/schema/entity/data/mlmodel.py +213 -148
- metadata/generated/schema/entity/data/pipeline.py +227 -150
- metadata/generated/schema/entity/data/query.py +126 -80
- metadata/generated/schema/entity/data/report.py +90 -49
- metadata/generated/schema/entity/data/searchIndex.py +171 -114
- metadata/generated/schema/entity/data/storedProcedure.py +140 -86
- metadata/generated/schema/entity/data/table.py +636 -436
- metadata/generated/schema/entity/data/topic.py +175 -111
- metadata/generated/schema/entity/docStore/__init__.py +1 -1
- metadata/generated/schema/entity/docStore/document.py +52 -31
- metadata/generated/schema/entity/domains/__init__.py +1 -1
- metadata/generated/schema/entity/domains/dataProduct.py +72 -43
- metadata/generated/schema/entity/domains/domain.py +69 -45
- metadata/generated/schema/entity/events/__init__.py +1 -1
- metadata/generated/schema/entity/events/webhook.py +46 -25
- metadata/generated/schema/entity/feed/__init__.py +1 -1
- metadata/generated/schema/entity/feed/assets.py +7 -5
- metadata/generated/schema/entity/feed/customProperty.py +14 -7
- metadata/generated/schema/entity/feed/description.py +21 -13
- metadata/generated/schema/entity/feed/domain.py +15 -10
- metadata/generated/schema/entity/feed/entityInfo.py +14 -8
- metadata/generated/schema/entity/feed/owner.py +16 -11
- metadata/generated/schema/entity/feed/suggestion.py +112 -35
- metadata/generated/schema/entity/feed/tag.py +15 -10
- metadata/generated/schema/entity/feed/testCaseResult.py +19 -13
- metadata/generated/schema/entity/feed/thread.py +226 -148
- 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 +25 -12
- metadata/generated/schema/entity/policies/accessControl/resourcePermission.py +42 -28
- metadata/generated/schema/entity/policies/accessControl/rule.py +36 -23
- metadata/generated/schema/entity/policies/filters.py +14 -12
- metadata/generated/schema/entity/policies/policy.py +107 -67
- metadata/generated/schema/entity/services/__init__.py +1 -1
- metadata/generated/schema/entity/services/apiService.py +114 -0
- metadata/generated/schema/entity/services/connections/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/apiService/__init__.py +5 -0
- metadata/generated/schema/entity/services/connections/apiService/restConnection.py +38 -0
- metadata/generated/schema/entity/services/connections/common/__init__.py +1 -3
- metadata/generated/schema/entity/services/connections/common/sslCertPaths.py +21 -13
- metadata/generated/schema/entity/services/connections/common/sslCertValues.py +30 -19
- metadata/generated/schema/entity/services/connections/common/sslConfig.py +14 -8
- metadata/generated/schema/entity/services/connections/connectionBasicType.py +71 -55
- metadata/generated/schema/entity/services/connections/dashboard/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/customDashboardConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/dashboard/domoDashboardConnection.py +44 -30
- metadata/generated/schema/entity/services/connections/dashboard/lightdashConnection.py +50 -36
- metadata/generated/schema/entity/services/connections/dashboard/lookerConnection.py +45 -36
- metadata/generated/schema/entity/services/connections/dashboard/metabaseConnection.py +31 -24
- metadata/generated/schema/entity/services/connections/dashboard/modeConnection.py +35 -27
- metadata/generated/schema/entity/services/connections/dashboard/mstrConnection.py +35 -27
- metadata/generated/schema/entity/services/connections/dashboard/powerBIConnection.py +97 -63
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/azureConfig.py +25 -18
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/bucketDetails.py +23 -14
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/gcsConfig.py +25 -18
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/s3Config.py +25 -18
- metadata/generated/schema/entity/services/connections/dashboard/qlikCloudConnection.py +27 -19
- metadata/generated/schema/entity/services/connections/dashboard/qlikSenseConnection.py +53 -36
- metadata/generated/schema/entity/services/connections/dashboard/quickSightConnection.py +38 -23
- metadata/generated/schema/entity/services/connections/dashboard/redashConnection.py +30 -21
- metadata/generated/schema/entity/services/connections/dashboard/supersetConnection.py +30 -22
- metadata/generated/schema/entity/services/connections/dashboard/tableauConnection.py +46 -35
- metadata/generated/schema/entity/services/connections/database/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/athenaConnection.py +70 -52
- metadata/generated/schema/entity/services/connections/database/azureSQLConnection.py +131 -89
- metadata/generated/schema/entity/services/connections/database/bigQueryConnection.py +83 -56
- metadata/generated/schema/entity/services/connections/database/bigTableConnection.py +31 -22
- metadata/generated/schema/entity/services/connections/database/clickhouseConnection.py +109 -72
- metadata/generated/schema/entity/services/connections/database/common/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/azureConfig.py +11 -7
- metadata/generated/schema/entity/services/connections/database/common/basicAuth.py +10 -8
- metadata/generated/schema/entity/services/connections/database/common/iamAuthConfig.py +11 -7
- metadata/generated/schema/entity/services/connections/database/common/jwtAuth.py +10 -8
- metadata/generated/schema/entity/services/connections/database/couchbaseConnection.py +46 -32
- metadata/generated/schema/entity/services/connections/database/customDatabaseConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/database/databricksConnection.py +87 -60
- metadata/generated/schema/entity/services/connections/database/datalake/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/azureConfig.py +11 -7
- metadata/generated/schema/entity/services/connections/database/datalake/gcsConfig.py +11 -7
- metadata/generated/schema/entity/services/connections/database/datalake/s3Config.py +11 -7
- metadata/generated/schema/entity/services/connections/database/datalakeConnection.py +59 -43
- metadata/generated/schema/entity/services/connections/database/db2Connection.py +64 -48
- metadata/generated/schema/entity/services/connections/database/deltaLakeConnection.py +41 -85
- metadata/generated/schema/entity/services/connections/database/deltalake/__init__.py +3 -0
- metadata/generated/schema/entity/services/connections/database/deltalake/metastoreConfig.py +109 -0
- metadata/generated/schema/entity/services/connections/database/deltalake/storageConfig.py +42 -0
- metadata/generated/schema/entity/services/connections/database/domoDatabaseConnection.py +52 -33
- metadata/generated/schema/entity/services/connections/database/dorisConnection.py +73 -52
- metadata/generated/schema/entity/services/connections/database/druidConnection.py +66 -47
- metadata/generated/schema/entity/services/connections/database/dynamoDBConnection.py +38 -27
- metadata/generated/schema/entity/services/connections/database/glueConnection.py +34 -24
- metadata/generated/schema/entity/services/connections/database/greenplumConnection.py +85 -56
- metadata/generated/schema/entity/services/connections/database/hiveConnection.py +108 -75
- metadata/generated/schema/entity/services/connections/database/iceberg/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/dynamoDbCatalogConnection.py +11 -6
- metadata/generated/schema/entity/services/connections/database/iceberg/glueCatalogConnection.py +7 -5
- metadata/generated/schema/entity/services/connections/database/iceberg/hiveCatalogConnection.py +14 -9
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergCatalog.py +36 -25
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergFileSystem.py +7 -5
- metadata/generated/schema/entity/services/connections/database/iceberg/restCatalogConnection.py +67 -46
- metadata/generated/schema/entity/services/connections/database/icebergConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/database/impalaConnection.py +102 -67
- metadata/generated/schema/entity/services/connections/database/mariaDBConnection.py +75 -52
- metadata/generated/schema/entity/services/connections/database/mongoDBConnection.py +56 -38
- metadata/generated/schema/entity/services/connections/database/mssqlConnection.py +89 -60
- metadata/generated/schema/entity/services/connections/database/mysqlConnection.py +88 -60
- metadata/generated/schema/entity/services/connections/database/oracleConnection.py +105 -74
- metadata/generated/schema/entity/services/connections/database/pinotDBConnection.py +78 -54
- metadata/generated/schema/entity/services/connections/database/postgresConnection.py +97 -65
- metadata/generated/schema/entity/services/connections/database/prestoConnection.py +90 -61
- metadata/generated/schema/entity/services/connections/database/redshiftConnection.py +78 -55
- metadata/generated/schema/entity/services/connections/database/salesforceConnection.py +75 -47
- metadata/generated/schema/entity/services/connections/database/sapErpConnection.py +84 -0
- metadata/generated/schema/entity/services/connections/database/sapHana/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaHDBConnection.py +15 -9
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaSQLConnection.py +33 -24
- metadata/generated/schema/entity/services/connections/database/sapHanaConnection.py +53 -38
- metadata/generated/schema/entity/services/connections/database/sasConnection.py +45 -31
- metadata/generated/schema/entity/services/connections/database/singleStoreConnection.py +82 -54
- metadata/generated/schema/entity/services/connections/database/snowflakeConnection.py +121 -80
- metadata/generated/schema/entity/services/connections/database/sqliteConnection.py +82 -56
- metadata/generated/schema/entity/services/connections/database/synapseConnection.py +168 -0
- metadata/generated/schema/entity/services/connections/database/teradataConnection.py +91 -62
- metadata/generated/schema/entity/services/connections/database/trinoConnection.py +108 -72
- metadata/generated/schema/entity/services/connections/database/unityCatalogConnection.py +89 -60
- metadata/generated/schema/entity/services/connections/database/verticaConnection.py +71 -50
- metadata/generated/schema/entity/services/connections/messaging/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/customMessagingConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/messaging/kafkaConnection.py +101 -61
- metadata/generated/schema/entity/services/connections/messaging/kinesisConnection.py +18 -13
- metadata/generated/schema/entity/services/connections/messaging/pulsarConnection.py +15 -10
- metadata/generated/schema/entity/services/connections/messaging/redpandaConnection.py +85 -54
- 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 +117 -74
- metadata/generated/schema/entity/services/connections/metadata/alationSinkConnection.py +72 -0
- metadata/generated/schema/entity/services/connections/metadata/amundsenConnection.py +43 -28
- metadata/generated/schema/entity/services/connections/metadata/atlasConnection.py +40 -27
- metadata/generated/schema/entity/services/connections/metadata/metadataESConnection.py +50 -40
- metadata/generated/schema/entity/services/connections/metadata/openMetadataConnection.py +151 -92
- metadata/generated/schema/entity/services/connections/mlmodel/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/customMlModelConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/mlmodel/mlflowConnection.py +29 -20
- metadata/generated/schema/entity/services/connections/mlmodel/sageMakerConnection.py +20 -13
- metadata/generated/schema/entity/services/connections/mlmodel/sklearnConnection.py +15 -10
- metadata/generated/schema/entity/services/connections/pipeline/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/airbyteConnection.py +25 -18
- metadata/generated/schema/entity/services/connections/pipeline/airflowConnection.py +34 -26
- metadata/generated/schema/entity/services/connections/pipeline/backendConnection.py +11 -7
- metadata/generated/schema/entity/services/connections/pipeline/customPipelineConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/pipeline/dagsterConnection.py +29 -20
- metadata/generated/schema/entity/services/connections/pipeline/databricksPipelineConnection.py +37 -27
- metadata/generated/schema/entity/services/connections/pipeline/dbtCloudConnection.py +43 -0
- metadata/generated/schema/entity/services/connections/pipeline/domoPipelineConnection.py +44 -28
- metadata/generated/schema/entity/services/connections/pipeline/fivetranConnection.py +37 -27
- metadata/generated/schema/entity/services/connections/pipeline/flinkConnection.py +35 -0
- metadata/generated/schema/entity/services/connections/pipeline/gluePipelineConnection.py +18 -13
- metadata/generated/schema/entity/services/connections/pipeline/kafkaConnectConnection.py +62 -40
- metadata/generated/schema/entity/services/connections/pipeline/nifiConnection.py +71 -45
- metadata/generated/schema/entity/services/connections/pipeline/openLineageConnection.py +71 -41
- metadata/generated/schema/entity/services/connections/pipeline/sparkConnection.py +11 -7
- metadata/generated/schema/entity/services/connections/pipeline/splineConnection.py +28 -18
- metadata/generated/schema/entity/services/connections/search/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/customSearchConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/search/elasticSearch/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/apiAuth.py +22 -15
- metadata/generated/schema/entity/services/connections/search/elasticSearch/basicAuth.py +14 -11
- metadata/generated/schema/entity/services/connections/search/elasticSearchConnection.py +48 -31
- metadata/generated/schema/entity/services/connections/search/openSearchConnection.py +54 -35
- metadata/generated/schema/entity/services/connections/serviceConnection.py +38 -22
- metadata/generated/schema/entity/services/connections/storage/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/adlsConnection.py +27 -19
- metadata/generated/schema/entity/services/connections/storage/customStorageConnection.py +23 -15
- metadata/generated/schema/entity/services/connections/storage/gcsConnection.py +34 -20
- metadata/generated/schema/entity/services/connections/storage/s3Connection.py +32 -22
- metadata/generated/schema/entity/services/connections/testConnectionDefinition.py +96 -57
- metadata/generated/schema/entity/services/connections/testConnectionResult.py +40 -26
- metadata/generated/schema/entity/services/dashboardService.py +93 -62
- metadata/generated/schema/entity/services/databaseService.py +101 -63
- metadata/generated/schema/entity/services/ingestionPipelines/__init__.py +1 -1
- metadata/generated/schema/entity/services/ingestionPipelines/ingestionPipeline.py +198 -122
- metadata/generated/schema/entity/services/ingestionPipelines/pipelineServiceClientResponse.py +24 -13
- metadata/generated/schema/entity/services/ingestionPipelines/status.py +47 -37
- metadata/generated/schema/entity/services/messagingService.py +103 -69
- metadata/generated/schema/entity/services/metadataService.py +96 -56
- metadata/generated/schema/entity/services/mlmodelService.py +96 -63
- metadata/generated/schema/entity/services/pipelineService.py +102 -63
- metadata/generated/schema/entity/services/searchService.py +92 -62
- metadata/generated/schema/entity/services/serviceType.py +2 -1
- metadata/generated/schema/entity/services/storageService.py +93 -62
- metadata/generated/schema/entity/teams/__init__.py +1 -1
- metadata/generated/schema/entity/teams/persona.py +59 -35
- metadata/generated/schema/entity/teams/role.py +82 -51
- metadata/generated/schema/entity/teams/team.py +128 -82
- metadata/generated/schema/entity/teams/teamHierarchy.py +52 -35
- metadata/generated/schema/entity/teams/user.py +122 -81
- metadata/generated/schema/entity/type.py +94 -48
- metadata/generated/schema/entity/utils/__init__.py +1 -1
- metadata/generated/schema/entity/utils/entitiesCount.py +25 -18
- metadata/generated/schema/entity/utils/servicesCount.py +25 -22
- metadata/generated/schema/entity/utils/supersetApiConnection.py +19 -14
- metadata/generated/schema/events/__init__.py +1 -1
- metadata/generated/schema/events/alertMetrics.py +22 -14
- metadata/generated/schema/events/api/__init__.py +1 -1
- metadata/generated/schema/events/api/createEventSubscription.py +63 -35
- metadata/generated/schema/events/api/testEventSubscriptionDestination.py +27 -0
- metadata/generated/schema/events/emailAlertConfig.py +20 -12
- metadata/generated/schema/events/eventFilterRule.py +40 -24
- metadata/generated/schema/events/eventSubscription.py +220 -142
- metadata/generated/schema/events/eventSubscriptionOffset.py +12 -8
- metadata/generated/schema/events/failedEvent.py +25 -13
- metadata/generated/schema/events/filterResourceDescriptor.py +24 -14
- metadata/generated/schema/events/subscriptionResourceDescriptor.py +20 -11
- metadata/generated/schema/metadataIngestion/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/application.py +39 -25
- metadata/generated/schema/metadataIngestion/applicationPipeline.py +23 -16
- metadata/generated/schema/metadataIngestion/dashboardServiceMetadataPipeline.py +125 -67
- metadata/generated/schema/metadataIngestion/dataInsightPipeline.py +9 -6
- metadata/generated/schema/metadataIngestion/databaseServiceMetadataPipeline.py +182 -106
- metadata/generated/schema/metadataIngestion/databaseServiceProfilerPipeline.py +117 -73
- metadata/generated/schema/metadataIngestion/databaseServiceQueryLineagePipeline.py +75 -47
- metadata/generated/schema/metadataIngestion/databaseServiceQueryUsagePipeline.py +51 -32
- metadata/generated/schema/metadataIngestion/dbtPipeline.py +75 -51
- metadata/generated/schema/metadataIngestion/dbtconfig/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtAzureConfig.py +37 -25
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtBucketDetails.py +23 -14
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtCloudConfig.py +36 -27
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtGCSConfig.py +37 -25
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtHttpConfig.py +31 -20
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtLocalConfig.py +31 -20
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtS3Config.py +37 -25
- metadata/generated/schema/metadataIngestion/messagingServiceMetadataPipeline.py +45 -22
- metadata/generated/schema/metadataIngestion/metadataToElasticSearchPipeline.py +65 -43
- metadata/generated/schema/metadataIngestion/mlmodelServiceMetadataPipeline.py +35 -17
- metadata/generated/schema/metadataIngestion/pipelineServiceMetadataPipeline.py +99 -50
- metadata/generated/schema/metadataIngestion/searchServiceMetadataPipeline.py +51 -27
- metadata/generated/schema/metadataIngestion/storage/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/containerMetadataConfig.py +60 -33
- metadata/generated/schema/metadataIngestion/storage/manifestMetadataConfig.py +59 -38
- metadata/generated/schema/metadataIngestion/storage/storageBucketDetails.py +22 -14
- metadata/generated/schema/metadataIngestion/storage/storageMetadataADLSConfig.py +15 -10
- metadata/generated/schema/metadataIngestion/storage/storageMetadataGCSConfig.py +15 -10
- metadata/generated/schema/metadataIngestion/storage/storageMetadataHttpConfig.py +14 -9
- metadata/generated/schema/metadataIngestion/storage/storageMetadataLocalConfig.py +14 -9
- metadata/generated/schema/metadataIngestion/storage/storageMetadataS3Config.py +14 -10
- metadata/generated/schema/metadataIngestion/storageServiceMetadataPipeline.py +57 -28
- metadata/generated/schema/metadataIngestion/testSuitePipeline.py +32 -17
- metadata/generated/schema/metadataIngestion/workflow.py +114 -62
- 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 +10 -9
- metadata/generated/schema/security/client/azureSSOClientConfig.py +12 -11
- metadata/generated/schema/security/client/customOidcSSOClientConfig.py +11 -10
- metadata/generated/schema/security/client/googleSSOClientConfig.py +17 -12
- metadata/generated/schema/security/client/oidcClientConfig.py +45 -30
- metadata/generated/schema/security/client/oktaSSOClientConfig.py +14 -11
- metadata/generated/schema/security/client/openMetadataJWTClientConfig.py +9 -8
- metadata/generated/schema/security/client/samlSSOClientConfig.py +102 -67
- metadata/generated/schema/security/credentials/__init__.py +1 -1
- metadata/generated/schema/security/credentials/accessTokenAuth.py +17 -13
- metadata/generated/schema/security/credentials/apiAccessTokenAuth.py +10 -8
- metadata/generated/schema/security/credentials/awsCredentials.py +57 -38
- metadata/generated/schema/security/credentials/azureCredentials.py +47 -29
- metadata/generated/schema/security/credentials/basicAuth.py +13 -11
- metadata/generated/schema/security/credentials/bitbucketCredentials.py +22 -14
- metadata/generated/schema/security/credentials/gcpCredentials.py +66 -33
- metadata/generated/schema/security/credentials/gcpExternalAccount.py +55 -26
- metadata/generated/schema/security/credentials/gcpValues.py +70 -49
- metadata/generated/schema/security/credentials/gitCredentials.py +32 -25
- metadata/generated/schema/security/credentials/githubCredentials.py +13 -7
- metadata/generated/schema/security/sasl/__init__.py +3 -0
- metadata/generated/schema/security/sasl/saslClientConfig.py +40 -0
- 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 +39 -24
- metadata/generated/schema/security/secrets/secretsManagerProvider.py +2 -1
- metadata/generated/schema/security/securityConfiguration.py +15 -9
- metadata/generated/schema/security/ssl/__init__.py +1 -1
- metadata/generated/schema/security/ssl/validateSSLClientConfig.py +30 -20
- metadata/generated/schema/security/ssl/verifySSLConfig.py +16 -18
- metadata/generated/schema/settings/__init__.py +1 -1
- metadata/generated/schema/settings/settings.py +9 -5
- metadata/generated/schema/system/__init__.py +1 -1
- metadata/generated/schema/system/entityError.py +7 -5
- metadata/generated/schema/system/eventPublisherJob.py +54 -37
- metadata/generated/schema/system/indexingError.py +7 -5
- metadata/generated/schema/system/limitsResponse.py +20 -0
- metadata/generated/schema/system/ui/__init__.py +1 -1
- metadata/generated/schema/system/ui/knowledgePanel.py +12 -8
- metadata/generated/schema/system/ui/page.py +24 -18
- metadata/generated/schema/system/validationResponse.py +40 -28
- metadata/generated/schema/tests/__init__.py +1 -1
- metadata/generated/schema/tests/assigned.py +11 -7
- metadata/generated/schema/tests/basic.py +98 -55
- metadata/generated/schema/tests/customMetric.py +41 -29
- metadata/generated/schema/tests/dataQualityReport.py +40 -0
- metadata/generated/schema/tests/resolved.py +17 -13
- metadata/generated/schema/tests/testCase.py +137 -76
- metadata/generated/schema/tests/testCaseResolutionStatus.py +49 -33
- metadata/generated/schema/tests/testDefinition.py +129 -67
- metadata/generated/schema/tests/testSuite.py +137 -75
- metadata/generated/schema/type/__init__.py +1 -1
- metadata/generated/schema/type/apiSchema.py +27 -0
- metadata/generated/schema/type/auditLog.py +29 -20
- metadata/generated/schema/type/basic.py +177 -110
- metadata/generated/schema/type/bulkOperationResult.py +45 -30
- metadata/generated/schema/type/changeEvent.py +72 -40
- metadata/generated/schema/type/changeEventType.py +1 -1
- metadata/generated/schema/type/collectionDescriptor.py +24 -15
- metadata/generated/schema/type/csvDocumentation.py +11 -8
- metadata/generated/schema/type/csvErrorType.py +1 -1
- metadata/generated/schema/type/csvFile.py +25 -17
- metadata/generated/schema/type/csvImportResult.py +34 -21
- metadata/generated/schema/type/customProperties/__init__.py +1 -1
- metadata/generated/schema/type/customProperties/complexTypes.py +110 -64
- metadata/generated/schema/type/customProperties/enumConfig.py +7 -5
- metadata/generated/schema/type/customProperty.py +34 -25
- metadata/generated/schema/type/dailyCount.py +10 -7
- metadata/generated/schema/type/databaseConnectionConfig.py +69 -42
- metadata/generated/schema/type/entityHierarchy.py +35 -26
- metadata/generated/schema/type/entityHistory.py +71 -45
- metadata/generated/schema/type/entityLineage.py +89 -57
- metadata/generated/schema/type/entityReference.py +51 -30
- metadata/generated/schema/type/entityReferenceList.py +11 -8
- metadata/generated/schema/type/entityRelationship.py +68 -39
- metadata/generated/schema/type/entityUsage.py +15 -10
- metadata/generated/schema/type/filterPattern.py +21 -12
- metadata/generated/schema/type/function.py +30 -21
- metadata/generated/schema/type/include.py +1 -1
- metadata/generated/schema/type/jdbcConnection.py +24 -19
- metadata/generated/schema/type/lifeCycle.py +47 -26
- metadata/generated/schema/type/paging.py +32 -21
- metadata/generated/schema/type/profile.py +13 -11
- metadata/generated/schema/type/queryParserData.py +47 -32
- metadata/generated/schema/type/reaction.py +13 -8
- metadata/generated/schema/type/schedule.py +18 -11
- metadata/generated/schema/type/schema.py +64 -44
- metadata/generated/schema/type/tableQuery.py +53 -40
- metadata/generated/schema/type/tableUsageCount.py +46 -33
- metadata/generated/schema/type/tagLabel.py +36 -24
- metadata/generated/schema/type/usageDetails.py +40 -24
- metadata/generated/schema/type/usageRequest.py +10 -7
- metadata/generated/schema/type/votes.py +21 -12
- metadata/great_expectations/action.py +14 -12
- metadata/great_expectations/utils/ometa_config_handler.py +1 -1
- metadata/ingestion/api/common.py +3 -4
- metadata/ingestion/api/delete.py +1 -1
- metadata/ingestion/api/models.py +6 -8
- metadata/ingestion/api/parser.py +13 -17
- metadata/ingestion/api/status.py +35 -13
- metadata/ingestion/api/topology_runner.py +2 -1
- metadata/ingestion/bulksink/metadata_usage.py +17 -14
- metadata/ingestion/connections/builders.py +12 -12
- metadata/ingestion/connections/secrets.py +8 -6
- metadata/ingestion/connections/test_connections.py +7 -2
- metadata/ingestion/lineage/models.py +5 -4
- metadata/ingestion/lineage/sql_lineage.py +43 -13
- metadata/ingestion/models/custom_properties.py +9 -9
- metadata/ingestion/models/custom_pydantic.py +70 -44
- metadata/ingestion/models/lf_tags_model.py +3 -3
- metadata/ingestion/models/ometa_classification.py +1 -1
- metadata/ingestion/models/ometa_lineage.py +24 -0
- metadata/ingestion/models/patch_request.py +96 -56
- metadata/ingestion/models/table_metadata.py +2 -2
- metadata/ingestion/models/topology.py +18 -12
- metadata/ingestion/ometa/client.py +34 -8
- metadata/ingestion/ometa/client_utils.py +6 -7
- metadata/ingestion/ometa/mixins/custom_property_mixin.py +2 -4
- metadata/ingestion/ometa/mixins/dashboard_mixin.py +2 -2
- metadata/ingestion/ometa/mixins/data_insight_mixin.py +10 -6
- metadata/ingestion/ometa/mixins/ingestion_pipeline_mixin.py +4 -2
- metadata/ingestion/ometa/mixins/lineage_mixin.py +36 -15
- metadata/ingestion/ometa/mixins/mlmodel_mixin.py +2 -2
- metadata/ingestion/ometa/mixins/patch_mixin.py +32 -30
- metadata/ingestion/ometa/mixins/pipeline_mixin.py +3 -3
- metadata/ingestion/ometa/mixins/query_mixin.py +4 -4
- metadata/ingestion/ometa/mixins/role_policy_mixin.py +13 -13
- metadata/ingestion/ometa/mixins/search_index_mixin.py +5 -5
- metadata/ingestion/ometa/mixins/server_mixin.py +4 -5
- metadata/ingestion/ometa/mixins/service_mixin.py +2 -2
- metadata/ingestion/ometa/mixins/suggestions_mixin.py +2 -2
- metadata/ingestion/ometa/mixins/table_mixin.py +20 -20
- metadata/ingestion/ometa/mixins/tests_mixin.py +21 -18
- metadata/ingestion/ometa/mixins/topic_mixin.py +2 -2
- metadata/ingestion/ometa/mixins/user_mixin.py +44 -23
- metadata/ingestion/ometa/models.py +1 -1
- metadata/ingestion/ometa/ometa_api.py +6 -7
- metadata/ingestion/ometa/routes.py +18 -0
- metadata/ingestion/ometa/ttl_cache.py +47 -0
- metadata/ingestion/ometa/utils.py +3 -3
- metadata/ingestion/processor/query_parser.py +3 -3
- metadata/ingestion/sink/file.py +2 -2
- metadata/ingestion/sink/metadata_rest.py +59 -29
- metadata/ingestion/source/dashboard/dashboard_service.py +45 -45
- metadata/ingestion/source/dashboard/domodashboard/metadata.py +29 -17
- metadata/ingestion/source/dashboard/lightdash/client.py +1 -1
- metadata/ingestion/source/dashboard/lightdash/metadata.py +26 -14
- metadata/ingestion/source/dashboard/lightdash/models.py +11 -11
- metadata/ingestion/source/dashboard/looker/bulk_parser.py +3 -3
- metadata/ingestion/source/dashboard/looker/connection.py +1 -1
- metadata/ingestion/source/dashboard/looker/metadata.py +59 -39
- metadata/ingestion/source/dashboard/looker/parser.py +3 -3
- metadata/ingestion/source/dashboard/looker/utils.py +2 -2
- metadata/ingestion/source/dashboard/metabase/client.py +18 -2
- metadata/ingestion/source/dashboard/metabase/metadata.py +45 -14
- metadata/ingestion/source/dashboard/metabase/models.py +46 -28
- metadata/ingestion/source/dashboard/mode/client.py +1 -1
- metadata/ingestion/source/dashboard/mode/metadata.py +24 -14
- metadata/ingestion/source/dashboard/mstr/client.py +1 -1
- metadata/ingestion/source/dashboard/mstr/metadata.py +18 -11
- metadata/ingestion/source/dashboard/mstr/models.py +4 -4
- metadata/ingestion/source/dashboard/powerbi/client.py +2 -3
- metadata/ingestion/source/dashboard/powerbi/metadata.py +50 -30
- metadata/ingestion/source/dashboard/powerbi/models.py +25 -22
- metadata/ingestion/source/dashboard/qlikcloud/client.py +1 -1
- metadata/ingestion/source/dashboard/qlikcloud/metadata.py +28 -16
- metadata/ingestion/source/dashboard/qlikcloud/models.py +4 -4
- metadata/ingestion/source/dashboard/qliksense/client.py +3 -3
- metadata/ingestion/source/dashboard/qliksense/metadata.py +35 -19
- metadata/ingestion/source/dashboard/qliksense/models.py +8 -8
- metadata/ingestion/source/dashboard/quicksight/metadata.py +26 -18
- metadata/ingestion/source/dashboard/quicksight/models.py +16 -16
- metadata/ingestion/source/dashboard/redash/client.py +1 -1
- metadata/ingestion/source/dashboard/redash/metadata.py +31 -19
- metadata/ingestion/source/dashboard/superset/api_source.py +46 -18
- metadata/ingestion/source/dashboard/superset/client.py +2 -2
- metadata/ingestion/source/dashboard/superset/db_source.py +44 -18
- metadata/ingestion/source/dashboard/superset/metadata.py +2 -2
- metadata/ingestion/source/dashboard/superset/mixin.py +7 -13
- metadata/ingestion/source/dashboard/superset/models.py +68 -68
- metadata/ingestion/source/dashboard/tableau/connection.py +2 -2
- metadata/ingestion/source/dashboard/tableau/metadata.py +398 -94
- metadata/ingestion/source/dashboard/tableau/models.py +33 -35
- metadata/ingestion/source/dashboard/tableau/queries.py +14 -0
- metadata/ingestion/source/database/athena/connection.py +34 -5
- metadata/ingestion/source/database/athena/metadata.py +43 -168
- metadata/ingestion/source/database/athena/models.py +10 -10
- metadata/ingestion/source/database/athena/query_parser.py +2 -2
- metadata/ingestion/source/database/athena/utils.py +191 -0
- metadata/ingestion/source/database/azuresql/metadata.py +4 -4
- metadata/ingestion/source/database/azuresql/query_parser.py +2 -2
- metadata/ingestion/source/database/bigquery/connection.py +17 -5
- metadata/ingestion/source/database/bigquery/helper.py +1 -1
- metadata/ingestion/source/database/bigquery/metadata.py +86 -51
- metadata/ingestion/source/database/bigquery/query_parser.py +3 -3
- metadata/ingestion/source/database/bigtable/connection.py +2 -2
- metadata/ingestion/source/database/bigtable/metadata.py +2 -2
- metadata/ingestion/source/database/clickhouse/connection.py +3 -3
- metadata/ingestion/source/database/clickhouse/metadata.py +11 -8
- metadata/ingestion/source/database/clickhouse/query_parser.py +4 -4
- metadata/ingestion/source/database/column_type_parser.py +17 -10
- metadata/ingestion/source/database/common_db_source.py +106 -48
- metadata/ingestion/source/database/common_nosql_source.py +22 -17
- metadata/ingestion/source/database/couchbase/connection.py +1 -1
- metadata/ingestion/source/database/couchbase/metadata.py +3 -3
- metadata/ingestion/source/database/database_service.py +29 -16
- metadata/ingestion/source/database/databricks/connection.py +1 -1
- metadata/ingestion/source/database/databricks/lineage.py +2 -1
- metadata/ingestion/source/database/databricks/metadata.py +26 -7
- metadata/ingestion/source/database/databricks/queries.py +2 -0
- metadata/ingestion/source/database/databricks/query_parser.py +2 -2
- metadata/ingestion/source/database/databricks/usage.py +2 -1
- metadata/ingestion/source/database/datalake/clients/azure_blob.py +72 -0
- metadata/ingestion/source/database/datalake/clients/base.py +47 -0
- metadata/ingestion/source/database/datalake/clients/gcs.py +132 -0
- metadata/ingestion/source/database/datalake/clients/s3.py +79 -0
- metadata/ingestion/source/database/datalake/connection.py +12 -70
- metadata/ingestion/source/database/datalake/metadata.py +75 -219
- metadata/ingestion/source/database/db2/metadata.py +5 -12
- metadata/ingestion/source/database/dbt/dbt_config.py +3 -2
- metadata/ingestion/source/database/dbt/dbt_service.py +15 -6
- metadata/ingestion/source/database/dbt/metadata.py +121 -83
- metadata/ingestion/source/database/dbt/models.py +9 -9
- metadata/ingestion/source/database/deltalake/clients/base.py +82 -0
- metadata/ingestion/source/database/deltalake/clients/pyspark.py +304 -0
- metadata/ingestion/source/database/deltalake/clients/s3.py +200 -0
- metadata/ingestion/source/database/deltalake/connection.py +56 -84
- metadata/ingestion/source/database/deltalake/metadata.py +67 -193
- metadata/ingestion/source/database/domodatabase/metadata.py +83 -38
- metadata/ingestion/source/database/domodatabase/models.py +6 -6
- metadata/ingestion/source/database/doris/metadata.py +3 -3
- metadata/ingestion/source/database/druid/metadata.py +2 -2
- metadata/ingestion/source/database/dynamodb/metadata.py +5 -5
- metadata/ingestion/source/database/dynamodb/models.py +2 -2
- metadata/ingestion/source/database/extended_sample_data.py +41 -41
- metadata/ingestion/source/database/external_table_lineage_mixin.py +58 -3
- metadata/ingestion/source/database/glue/metadata.py +23 -18
- metadata/ingestion/source/database/glue/models.py +6 -6
- metadata/ingestion/source/database/greenplum/metadata.py +4 -4
- metadata/ingestion/source/database/hive/connection.py +2 -2
- metadata/ingestion/source/database/hive/metadata.py +2 -2
- metadata/ingestion/source/database/iceberg/catalog/hive.py +1 -1
- metadata/ingestion/source/database/iceberg/catalog/rest.py +1 -1
- metadata/ingestion/source/database/iceberg/fs/__init__.py +1 -1
- metadata/ingestion/source/database/iceberg/fs/s3.py +1 -1
- metadata/ingestion/source/database/iceberg/helper.py +4 -4
- metadata/ingestion/source/database/iceberg/metadata.py +28 -22
- metadata/ingestion/source/database/iceberg/models.py +6 -6
- metadata/ingestion/source/database/impala/connection.py +3 -3
- metadata/ingestion/source/database/impala/metadata.py +2 -2
- metadata/ingestion/source/database/incremental_metadata_extraction.py +1 -1
- metadata/ingestion/source/database/life_cycle_query_mixin.py +12 -8
- metadata/ingestion/source/database/lineage_source.py +25 -13
- metadata/ingestion/source/database/mariadb/metadata.py +2 -2
- metadata/ingestion/source/database/mongodb/connection.py +1 -1
- metadata/ingestion/source/database/mongodb/metadata.py +2 -2
- metadata/ingestion/source/database/mssql/constants.py +23 -0
- metadata/ingestion/source/database/mssql/lineage.py +29 -0
- metadata/ingestion/source/database/mssql/metadata.py +30 -10
- metadata/ingestion/source/database/mssql/queries.py +2 -0
- metadata/ingestion/source/database/mssql/query_parser.py +2 -2
- metadata/ingestion/source/database/mssql/utils.py +16 -1
- metadata/ingestion/source/database/mysql/metadata.py +2 -2
- metadata/ingestion/source/database/oracle/metadata.py +16 -13
- metadata/ingestion/source/database/oracle/models.py +1 -1
- metadata/ingestion/source/database/oracle/query_parser.py +2 -2
- metadata/ingestion/source/database/pinotdb/metadata.py +2 -2
- metadata/ingestion/source/database/postgres/lineage.py +2 -1
- metadata/ingestion/source/database/postgres/metadata.py +28 -6
- metadata/ingestion/source/database/postgres/pgspider/lineage.py +2 -2
- metadata/ingestion/source/database/postgres/queries.py +7 -0
- metadata/ingestion/source/database/postgres/query_parser.py +4 -4
- metadata/ingestion/source/database/postgres/usage.py +9 -2
- metadata/ingestion/source/database/presto/connection.py +2 -2
- metadata/ingestion/source/database/presto/metadata.py +2 -2
- metadata/ingestion/source/database/query/lineage.py +1 -1
- metadata/ingestion/source/database/query/usage.py +5 -3
- metadata/ingestion/source/database/query_parser_source.py +1 -1
- metadata/ingestion/source/database/redshift/metadata.py +7 -7
- metadata/ingestion/source/database/redshift/models.py +1 -1
- metadata/ingestion/source/database/redshift/queries.py +26 -2
- metadata/ingestion/source/database/redshift/query_parser.py +2 -2
- metadata/ingestion/source/database/salesforce/connection.py +1 -3
- metadata/ingestion/source/database/salesforce/metadata.py +22 -17
- metadata/ingestion/source/database/sample_data.py +198 -98
- metadata/ingestion/source/database/sample_usage.py +5 -7
- metadata/ingestion/source/database/saperp/__init__.py +0 -0
- metadata/ingestion/source/database/saperp/client.py +170 -0
- metadata/ingestion/source/database/saperp/connection.py +50 -0
- metadata/ingestion/source/database/saperp/constants.py +27 -0
- metadata/ingestion/source/database/saperp/metadata.py +322 -0
- metadata/ingestion/source/database/saperp/models.py +100 -0
- metadata/ingestion/source/database/saphana/metadata.py +2 -2
- metadata/ingestion/source/database/sas/client.py +2 -2
- metadata/ingestion/source/database/sas/metadata.py +35 -44
- metadata/ingestion/source/database/singlestore/metadata.py +2 -2
- metadata/ingestion/source/database/snowflake/connection.py +3 -3
- metadata/ingestion/source/database/snowflake/metadata.py +33 -12
- metadata/ingestion/source/database/snowflake/models.py +7 -7
- metadata/ingestion/source/database/snowflake/query_parser.py +2 -2
- metadata/ingestion/source/database/sql_column_handler.py +4 -3
- metadata/ingestion/source/database/sqlite/metadata.py +2 -2
- metadata/ingestion/source/database/stored_procedures_mixin.py +10 -11
- metadata/ingestion/source/database/teradata/metadata.py +4 -4
- metadata/ingestion/source/database/trino/connection.py +5 -7
- metadata/ingestion/source/database/trino/metadata.py +2 -2
- metadata/ingestion/source/database/trino/query_parser.py +2 -2
- metadata/ingestion/source/database/unitycatalog/lineage.py +7 -7
- metadata/ingestion/source/database/unitycatalog/metadata.py +25 -21
- metadata/ingestion/source/database/unitycatalog/models.py +16 -16
- metadata/ingestion/source/database/unitycatalog/query_parser.py +2 -2
- metadata/ingestion/source/database/usage_source.py +51 -34
- metadata/ingestion/source/database/vertica/metadata.py +3 -3
- metadata/ingestion/source/database/vertica/query_parser.py +4 -4
- metadata/ingestion/source/messaging/common_broker_source.py +18 -4
- metadata/ingestion/source/messaging/kafka/connection.py +1 -1
- metadata/ingestion/source/messaging/kafka/metadata.py +7 -9
- metadata/ingestion/source/messaging/kinesis/metadata.py +10 -5
- metadata/ingestion/source/messaging/kinesis/models.py +3 -5
- metadata/ingestion/source/messaging/messaging_service.py +12 -7
- metadata/ingestion/source/messaging/redpanda/metadata.py +2 -2
- metadata/ingestion/source/metadata/alationsink/__init__.py +0 -0
- metadata/ingestion/source/metadata/alationsink/client.py +213 -0
- metadata/ingestion/source/metadata/alationsink/connection.py +53 -0
- metadata/ingestion/source/metadata/alationsink/constants.py +60 -0
- metadata/ingestion/source/metadata/alationsink/metadata.py +397 -0
- metadata/ingestion/source/metadata/alationsink/models.py +148 -0
- metadata/ingestion/source/metadata/amundsen/connection.py +1 -1
- metadata/ingestion/source/metadata/amundsen/metadata.py +14 -10
- metadata/ingestion/source/metadata/atlas/client.py +1 -1
- metadata/ingestion/source/metadata/atlas/metadata.py +11 -12
- metadata/ingestion/source/mlmodel/mlflow/metadata.py +12 -6
- metadata/ingestion/source/mlmodel/mlmodel_service.py +13 -6
- metadata/ingestion/source/mlmodel/sagemaker/metadata.py +34 -21
- metadata/ingestion/source/pipeline/airbyte/client.py +1 -1
- metadata/ingestion/source/pipeline/airbyte/metadata.py +15 -11
- metadata/ingestion/source/pipeline/airflow/lineage_parser.py +3 -4
- metadata/ingestion/source/pipeline/airflow/metadata.py +28 -17
- metadata/ingestion/source/pipeline/airflow/models.py +21 -24
- metadata/ingestion/source/pipeline/dagster/client.py +3 -3
- metadata/ingestion/source/pipeline/dagster/metadata.py +19 -8
- metadata/ingestion/source/pipeline/dagster/models.py +14 -14
- metadata/ingestion/source/pipeline/databrickspipeline/metadata.py +120 -126
- metadata/ingestion/source/pipeline/databrickspipeline/models.py +72 -0
- metadata/ingestion/source/pipeline/dbtcloud/__init__.py +0 -0
- metadata/ingestion/source/pipeline/dbtcloud/client.py +118 -0
- metadata/ingestion/source/pipeline/dbtcloud/connection.py +60 -0
- metadata/ingestion/source/pipeline/dbtcloud/metadata.py +322 -0
- metadata/ingestion/source/pipeline/dbtcloud/models.py +72 -0
- metadata/ingestion/source/pipeline/dbtcloud/queries.py +34 -0
- metadata/ingestion/source/pipeline/domopipeline/metadata.py +20 -11
- metadata/ingestion/source/pipeline/fivetran/client.py +19 -6
- metadata/ingestion/source/pipeline/fivetran/metadata.py +124 -50
- metadata/ingestion/source/pipeline/fivetran/models.py +20 -0
- metadata/ingestion/source/pipeline/flink/client.py +53 -0
- metadata/ingestion/source/pipeline/flink/connection.py +52 -0
- metadata/ingestion/source/pipeline/flink/metadata.py +188 -0
- metadata/ingestion/source/pipeline/flink/models.py +44 -0
- metadata/ingestion/source/pipeline/gluepipeline/metadata.py +23 -11
- metadata/ingestion/source/pipeline/kafkaconnect/metadata.py +7 -8
- metadata/ingestion/source/pipeline/nifi/metadata.py +17 -8
- metadata/ingestion/source/pipeline/openlineage/connection.py +12 -3
- metadata/ingestion/source/pipeline/openlineage/metadata.py +3 -27
- metadata/ingestion/source/pipeline/pipeline_service.py +52 -8
- metadata/ingestion/source/pipeline/spline/client.py +1 -1
- metadata/ingestion/source/pipeline/spline/metadata.py +3 -3
- metadata/ingestion/source/pipeline/spline/models.py +12 -12
- metadata/ingestion/source/search/elasticsearch/connection.py +2 -2
- metadata/ingestion/source/search/elasticsearch/metadata.py +5 -4
- metadata/ingestion/source/search/search_service.py +13 -6
- metadata/ingestion/source/storage/gcs/client.py +63 -0
- metadata/ingestion/source/storage/gcs/connection.py +159 -0
- metadata/ingestion/source/storage/gcs/metadata.py +461 -0
- metadata/ingestion/source/storage/gcs/models.py +86 -0
- metadata/ingestion/source/storage/s3/metadata.py +268 -18
- metadata/ingestion/source/storage/s3/models.py +30 -11
- metadata/ingestion/source/storage/storage_service.py +43 -7
- metadata/ingestion/stage/table_usage.py +3 -3
- metadata/mixins/pandas/pandas_mixin.py +2 -2
- metadata/mixins/sqalchemy/sqa_mixin.py +1 -1
- metadata/parsers/avro_parser.py +12 -10
- metadata/parsers/json_schema_parser.py +4 -4
- metadata/parsers/protobuf_parser.py +4 -5
- metadata/pii/processor.py +4 -6
- metadata/profiler/adaptors/dynamodb.py +2 -2
- metadata/profiler/adaptors/mongodb.py +5 -17
- metadata/profiler/api/models.py +9 -9
- metadata/profiler/interface/nosql/profiler_interface.py +5 -8
- metadata/profiler/interface/pandas/profiler_interface.py +8 -10
- metadata/profiler/interface/profiler_interface.py +3 -3
- metadata/profiler/interface/profiler_interface_factory.py +46 -51
- metadata/profiler/interface/sqlalchemy/databricks/profiler_interface.py +28 -17
- metadata/profiler/interface/sqlalchemy/profiler_interface.py +3 -5
- metadata/profiler/metrics/static/mean.py +9 -0
- metadata/profiler/metrics/system/queries/snowflake.py +1 -1
- metadata/profiler/metrics/window/percentille_mixin.py +1 -1
- metadata/profiler/orm/converter/base.py +21 -13
- metadata/profiler/orm/converter/common.py +3 -4
- metadata/profiler/orm/functions/datetime.py +1 -1
- metadata/profiler/orm/functions/sum.py +7 -0
- metadata/profiler/orm/functions/table_metric_computer.py +4 -5
- metadata/profiler/orm/registry.py +5 -0
- metadata/profiler/orm/types/custom_hex_byte_string.py +5 -3
- metadata/profiler/orm/types/undetermined_type.py +38 -0
- metadata/profiler/processor/core.py +19 -13
- metadata/profiler/processor/processor.py +4 -4
- metadata/profiler/processor/sample_data_handler.py +5 -5
- metadata/profiler/processor/sampler/nosql/sampler.py +9 -4
- metadata/profiler/processor/sampler/sampler_factory.py +27 -6
- metadata/profiler/processor/sampler/sqlalchemy/sampler.py +33 -62
- metadata/profiler/processor/sampler/sqlalchemy/snowflake/sampler.py +60 -0
- metadata/profiler/source/base/profiler_source.py +11 -14
- metadata/profiler/source/bigquery/profiler_source.py +2 -2
- metadata/profiler/source/bigquery/type_mapper.py +2 -2
- metadata/profiler/source/metadata.py +14 -16
- metadata/profiler/source/metadata_ext.py +3 -3
- metadata/readers/dataframe/avro.py +1 -3
- metadata/readers/dataframe/models.py +29 -12
- metadata/readers/dataframe/parquet.py +3 -3
- metadata/readers/dataframe/reader_factory.py +6 -0
- metadata/readers/file/api_reader.py +1 -1
- metadata/readers/file/bitbucket.py +4 -4
- metadata/readers/file/credentials.py +5 -5
- metadata/readers/file/github.py +6 -6
- metadata/utils/class_helper.py +3 -5
- metadata/utils/credentials.py +2 -2
- metadata/utils/datalake/datalake_utils.py +4 -2
- metadata/utils/entity_link.py +8 -0
- metadata/utils/execution_time_tracker.py +2 -2
- metadata/utils/filters.py +25 -17
- metadata/utils/fqn.py +59 -14
- metadata/utils/helpers.py +12 -12
- metadata/utils/importer.py +3 -2
- metadata/utils/life_cycle_utils.py +3 -3
- metadata/utils/logger.py +9 -24
- metadata/utils/lru_cache.py +3 -0
- metadata/utils/metadata_service_helper.py +3 -1
- metadata/utils/secrets/gcp_secrets_manager.py +128 -0
- metadata/utils/secrets/secrets_manager_factory.py +3 -0
- metadata/utils/source_hash.py +1 -1
- metadata/utils/ssl_manager.py +20 -26
- metadata/utils/ssl_registry.py +5 -1
- metadata/utils/storage_metadata_config.py +6 -5
- metadata/utils/tag_utils.py +21 -13
- metadata/utils/time_utils.py +45 -5
- metadata/workflow/application.py +4 -4
- metadata/workflow/application_output_handler.py +6 -19
- metadata/workflow/base.py +42 -5
- metadata/workflow/data_quality.py +5 -5
- metadata/workflow/ingestion.py +4 -6
- metadata/workflow/metadata.py +4 -4
- metadata/workflow/output_handler.py +35 -214
- metadata/workflow/profiler.py +5 -5
- metadata/workflow/usage.py +8 -6
- metadata/workflow/workflow_init_error_handler.py +154 -0
- metadata/workflow/workflow_output_handler.py +189 -98
- metadata/workflow/workflow_status_mixin.py +20 -11
- {openmetadata_ingestion-1.4.6.0.dist-info → openmetadata_ingestion-1.5.0.0rc1.dist-info}/METADATA +379 -311
- openmetadata_ingestion-1.5.0.0rc1.dist-info/RECORD +1592 -0
- {openmetadata_ingestion-1.4.6.0.dist-info → openmetadata_ingestion-1.5.0.0rc1.dist-info}/top_level.txt +1 -0
- metadata/cli/insight.py +0 -51
- metadata/data_insight/processor/kpi/kpi_runner.py +0 -156
- metadata/data_insight/processor/kpi/run_result_registry.py +0 -162
- metadata/data_insight/processor/reports/cost_analysis_report_data_processor.py +0 -253
- metadata/data_insight/processor/reports/data_processor.py +0 -72
- metadata/data_insight/processor/reports/entity_report_data_processor.py +0 -262
- metadata/data_insight/processor/reports/web_analytic_report_data_processor.py +0 -384
- metadata/data_insight/producer/cost_analysis_producer.py +0 -126
- metadata/data_insight/producer/entity_producer.py +0 -63
- metadata/data_insight/producer/producer_factory.py +0 -53
- metadata/data_insight/producer/web_analytics_producer.py +0 -84
- metadata/data_insight/source/metadata.py +0 -175
- metadata/workflow/data_insight.py +0 -78
- openmetadata_ingestion-1.4.6.0.dist-info/RECORD +0 -1509
- {metadata/cli → _openmetadata_testutils}/__init__.py +0 -0
- {metadata/data_insight/processor → _openmetadata_testutils/helpers}/__init__.py +0 -0
- {metadata/data_insight/processor/kpi → _openmetadata_testutils/postgres}/__init__.py +0 -0
- {metadata/data_insight/processor/reports → _openmetadata_testutils/pydantic}/__init__.py +0 -0
- /metadata/{data_insight/producer → ingestion/source/database/datalake/clients}/__init__.py +0 -0
- /metadata/{data_insight/source → ingestion/source/database/deltalake/clients}/__init__.py +0 -0
- {openmetadata_ingestion-1.4.6.0.dist-info → openmetadata_ingestion-1.5.0.0rc1.dist-info}/LICENSE +0 -0
- {openmetadata_ingestion-1.4.6.0.dist-info → openmetadata_ingestion-1.5.0.0rc1.dist-info}/WHEEL +0 -0
- {openmetadata_ingestion-1.4.6.0.dist-info → openmetadata_ingestion-1.5.0.0rc1.dist-info}/entry_points.txt +0 -0
|
@@ -73,9 +73,17 @@ from metadata.generated.schema.security.credentials.bitbucketCredentials import
|
|
|
73
73
|
from metadata.generated.schema.security.credentials.githubCredentials import (
|
|
74
74
|
GitHubCredentials,
|
|
75
75
|
)
|
|
76
|
+
from metadata.generated.schema.type.basic import (
|
|
77
|
+
EntityName,
|
|
78
|
+
FullyQualifiedEntityName,
|
|
79
|
+
Markdown,
|
|
80
|
+
SourceUrl,
|
|
81
|
+
Uuid,
|
|
82
|
+
)
|
|
76
83
|
from metadata.generated.schema.type.entityLineage import EntitiesEdge, LineageDetails
|
|
77
84
|
from metadata.generated.schema.type.entityLineage import Source as LineageSource
|
|
78
85
|
from metadata.generated.schema.type.entityReference import EntityReference
|
|
86
|
+
from metadata.generated.schema.type.entityReferenceList import EntityReferenceList
|
|
79
87
|
from metadata.generated.schema.type.usageRequest import UsageRequest
|
|
80
88
|
from metadata.ingestion.api.models import Either
|
|
81
89
|
from metadata.ingestion.api.steps import InvalidSourceException
|
|
@@ -180,8 +188,8 @@ class LookerSource(DashboardServiceSource):
|
|
|
180
188
|
metadata: OpenMetadata,
|
|
181
189
|
pipeline_name: Optional[str] = None,
|
|
182
190
|
) -> "LookerSource":
|
|
183
|
-
config = WorkflowSource.
|
|
184
|
-
connection: LookerConnection = config.serviceConnection.
|
|
191
|
+
config = WorkflowSource.model_validate(config_dict)
|
|
192
|
+
connection: LookerConnection = config.serviceConnection.root.config
|
|
185
193
|
if not isinstance(connection, LookerConnection):
|
|
186
194
|
raise InvalidSourceException(
|
|
187
195
|
f"Expected LookerConnection, but got {connection}"
|
|
@@ -198,8 +206,10 @@ class LookerSource(DashboardServiceSource):
|
|
|
198
206
|
]
|
|
199
207
|
]
|
|
200
208
|
) -> "LookMLRepo":
|
|
201
|
-
repo_name =
|
|
202
|
-
|
|
209
|
+
repo_name = (
|
|
210
|
+
f"{credentials.repositoryOwner.root}/{credentials.repositoryName.root}"
|
|
211
|
+
)
|
|
212
|
+
repo_path = f"{REPO_TMP_LOCAL_PATH}/{credentials.repositoryName.root}"
|
|
203
213
|
_clone_repo(
|
|
204
214
|
repo_name,
|
|
205
215
|
repo_path,
|
|
@@ -223,7 +233,7 @@ class LookerSource(DashboardServiceSource):
|
|
|
223
233
|
if not os.path.isfile(file_path):
|
|
224
234
|
return None
|
|
225
235
|
with open(file_path, "r", encoding="utf-8") as fle:
|
|
226
|
-
manifest = LookMLManifest.
|
|
236
|
+
manifest = LookMLManifest.model_validate(lkml.load(fle))
|
|
227
237
|
if manifest and manifest.remote_dependency:
|
|
228
238
|
remote_name = manifest.remote_dependency["name"]
|
|
229
239
|
remote_git_url = manifest.remote_dependency["url"]
|
|
@@ -398,9 +408,11 @@ class LookerSource(DashboardServiceSource):
|
|
|
398
408
|
self.status.filter(datamodel_name, "Data model filtered out.")
|
|
399
409
|
else:
|
|
400
410
|
explore_datamodel = CreateDashboardDataModelRequest(
|
|
401
|
-
name=datamodel_name,
|
|
411
|
+
name=EntityName(datamodel_name),
|
|
402
412
|
displayName=model.name,
|
|
403
|
-
description=model.description
|
|
413
|
+
description=Markdown(model.description)
|
|
414
|
+
if model.description
|
|
415
|
+
else None,
|
|
404
416
|
service=self.context.get().dashboard_service,
|
|
405
417
|
dataModelType=DataModelType.LookMlExplore.value,
|
|
406
418
|
serviceType=DashboardServiceType.Looker.value,
|
|
@@ -419,7 +431,7 @@ class LookerSource(DashboardServiceSource):
|
|
|
419
431
|
# Maybe use the project_name as key too?
|
|
420
432
|
# Save the explores for when we create the lineage with the dashboards and views
|
|
421
433
|
self._explores_cache[
|
|
422
|
-
explore_datamodel.name.
|
|
434
|
+
explore_datamodel.name.root
|
|
423
435
|
] = self.context.get().dataModel # This is the newly created explore
|
|
424
436
|
|
|
425
437
|
# We can get VIEWs from the JOINs to know the dependencies
|
|
@@ -496,9 +508,13 @@ class LookerSource(DashboardServiceSource):
|
|
|
496
508
|
|
|
497
509
|
if view:
|
|
498
510
|
data_model_request = CreateDashboardDataModelRequest(
|
|
499
|
-
name=
|
|
511
|
+
name=EntityName(
|
|
512
|
+
build_datamodel_name(explore.model_name, view.name)
|
|
513
|
+
),
|
|
500
514
|
displayName=view.name,
|
|
501
|
-
description=view.description
|
|
515
|
+
description=Markdown(view.description)
|
|
516
|
+
if view.description
|
|
517
|
+
else None,
|
|
502
518
|
service=self.context.get().dashboard_service,
|
|
503
519
|
dataModelType=DataModelType.LookMlView.value,
|
|
504
520
|
serviceType=DashboardServiceType.Looker.value,
|
|
@@ -623,7 +639,7 @@ class LookerSource(DashboardServiceSource):
|
|
|
623
639
|
|
|
624
640
|
def get_owner_ref(
|
|
625
641
|
self, dashboard_details: LookerDashboard
|
|
626
|
-
) -> Optional[
|
|
642
|
+
) -> Optional[EntityReferenceList]:
|
|
627
643
|
"""Get dashboard owner
|
|
628
644
|
|
|
629
645
|
Store the visited users in the _owners_ref cache, even if we found them
|
|
@@ -654,24 +670,30 @@ class LookerSource(DashboardServiceSource):
|
|
|
654
670
|
Method to Get Dashboard Entity
|
|
655
671
|
"""
|
|
656
672
|
dashboard_request = CreateDashboardRequest(
|
|
657
|
-
name=clean_dashboard_name(dashboard_details.id),
|
|
673
|
+
name=EntityName(clean_dashboard_name(dashboard_details.id)),
|
|
658
674
|
displayName=dashboard_details.title,
|
|
659
|
-
description=dashboard_details.description
|
|
675
|
+
description=Markdown(dashboard_details.description)
|
|
676
|
+
if dashboard_details.description
|
|
677
|
+
else None,
|
|
660
678
|
charts=[
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
679
|
+
FullyQualifiedEntityName(
|
|
680
|
+
fqn.build(
|
|
681
|
+
self.metadata,
|
|
682
|
+
entity_type=Chart,
|
|
683
|
+
service_name=self.context.get().dashboard_service,
|
|
684
|
+
chart_name=chart,
|
|
685
|
+
)
|
|
666
686
|
)
|
|
667
687
|
for chart in self.context.get().charts or []
|
|
668
688
|
],
|
|
669
689
|
# Dashboards are created from the UI directly. They are not linked to a project
|
|
670
690
|
# like LookML assets, but rather just organised in folders.
|
|
671
691
|
project=self.get_project_name(dashboard_details),
|
|
672
|
-
sourceUrl=
|
|
692
|
+
sourceUrl=SourceUrl(
|
|
693
|
+
f"{clean_uri(self.service_connection.hostPort)}/dashboards/{dashboard_details.id}"
|
|
694
|
+
),
|
|
673
695
|
service=self.context.get().dashboard_service,
|
|
674
|
-
|
|
696
|
+
owners=self.get_owner_ref(dashboard_details=dashboard_details),
|
|
675
697
|
)
|
|
676
698
|
yield Either(right=dashboard_request)
|
|
677
699
|
self.register_record(dashboard_request=dashboard_request)
|
|
@@ -774,11 +796,11 @@ class LookerSource(DashboardServiceSource):
|
|
|
774
796
|
right=AddLineageRequest(
|
|
775
797
|
edge=EntitiesEdge(
|
|
776
798
|
fromEntity=EntityReference(
|
|
777
|
-
id=cached_explore.id.
|
|
799
|
+
id=Uuid(cached_explore.id.root),
|
|
778
800
|
type="dashboardDataModel",
|
|
779
801
|
),
|
|
780
802
|
toEntity=EntityReference(
|
|
781
|
-
id=dashboard_entity.id.
|
|
803
|
+
id=Uuid(dashboard_entity.id.root),
|
|
782
804
|
type="dashboard",
|
|
783
805
|
),
|
|
784
806
|
lineageDetails=LineageDetails(
|
|
@@ -833,15 +855,10 @@ class LookerSource(DashboardServiceSource):
|
|
|
833
855
|
)
|
|
834
856
|
|
|
835
857
|
if from_entity:
|
|
836
|
-
if from_entity.id.
|
|
837
|
-
self._added_lineage[from_entity.id.
|
|
838
|
-
if
|
|
839
|
-
to_entity.id.
|
|
840
|
-
not in self._added_lineage[from_entity.id.__root__]
|
|
841
|
-
):
|
|
842
|
-
self._added_lineage[from_entity.id.__root__].append(
|
|
843
|
-
to_entity.id.__root__
|
|
844
|
-
)
|
|
858
|
+
if from_entity.id.root not in self._added_lineage:
|
|
859
|
+
self._added_lineage[from_entity.id.root] = []
|
|
860
|
+
if to_entity.id.root not in self._added_lineage[from_entity.id.root]:
|
|
861
|
+
self._added_lineage[from_entity.id.root].append(to_entity.id.root)
|
|
845
862
|
return self._get_add_lineage_request(
|
|
846
863
|
to_entity=to_entity, from_entity=from_entity
|
|
847
864
|
)
|
|
@@ -867,15 +884,18 @@ class LookerSource(DashboardServiceSource):
|
|
|
867
884
|
logger.debug(f"Found chart {chart} without id. Skipping.")
|
|
868
885
|
continue
|
|
869
886
|
|
|
887
|
+
description = self.build_chart_description(chart)
|
|
870
888
|
yield Either(
|
|
871
889
|
right=CreateChartRequest(
|
|
872
|
-
name=chart.id,
|
|
890
|
+
name=EntityName(chart.id),
|
|
873
891
|
displayName=chart.title or chart.id,
|
|
874
|
-
description=
|
|
892
|
+
description=Markdown(description) if description else None,
|
|
875
893
|
chartType=get_standard_chart_type(chart.type).value,
|
|
876
|
-
sourceUrl=chart.query.share_url
|
|
894
|
+
sourceUrl=SourceUrl(chart.query.share_url)
|
|
877
895
|
if chart.query is not None
|
|
878
|
-
else
|
|
896
|
+
else SourceUrl(
|
|
897
|
+
f"{clean_uri(self.service_connection.hostPort)}/merge?mid={chart.merge_result_id}"
|
|
898
|
+
),
|
|
879
899
|
service=self.context.get().dashboard_service,
|
|
880
900
|
)
|
|
881
901
|
)
|
|
@@ -968,7 +988,7 @@ class LookerSource(DashboardServiceSource):
|
|
|
968
988
|
|
|
969
989
|
if not dashboard.usageSummary:
|
|
970
990
|
logger.info(
|
|
971
|
-
f"Yielding fresh usage for {dashboard.fullyQualifiedName.
|
|
991
|
+
f"Yielding fresh usage for {dashboard.fullyQualifiedName.root}"
|
|
972
992
|
)
|
|
973
993
|
yield Either(
|
|
974
994
|
right=DashboardUsage(
|
|
@@ -978,7 +998,7 @@ class LookerSource(DashboardServiceSource):
|
|
|
978
998
|
)
|
|
979
999
|
|
|
980
1000
|
elif (
|
|
981
|
-
str(dashboard.usageSummary.date.
|
|
1001
|
+
str(dashboard.usageSummary.date.root) != self.today
|
|
982
1002
|
or not dashboard.usageSummary.dailyStats.count
|
|
983
1003
|
):
|
|
984
1004
|
latest_usage = dashboard.usageSummary.dailyStats.count
|
|
@@ -990,7 +1010,7 @@ class LookerSource(DashboardServiceSource):
|
|
|
990
1010
|
)
|
|
991
1011
|
|
|
992
1012
|
logger.info(
|
|
993
|
-
f"Yielding new usage for {dashboard.fullyQualifiedName.
|
|
1013
|
+
f"Yielding new usage for {dashboard.fullyQualifiedName.root}"
|
|
994
1014
|
)
|
|
995
1015
|
yield Either(
|
|
996
1016
|
right=DashboardUsage(
|
|
@@ -1006,7 +1026,7 @@ class LookerSource(DashboardServiceSource):
|
|
|
1006
1026
|
f"Latest usage {dashboard.usageSummary} vs. today {self.today}. Nothing to compute."
|
|
1007
1027
|
)
|
|
1008
1028
|
logger.info(
|
|
1009
|
-
f"Usage already informed for {dashboard.fullyQualifiedName.
|
|
1029
|
+
f"Usage already informed for {dashboard.fullyQualifiedName.root}"
|
|
1010
1030
|
)
|
|
1011
1031
|
|
|
1012
1032
|
except Exception as exc:
|
|
@@ -115,7 +115,7 @@ class LkmlParser:
|
|
|
115
115
|
Processing of a single path
|
|
116
116
|
"""
|
|
117
117
|
file = self._read_file(path)
|
|
118
|
-
lkml_file = LkmlFile.
|
|
118
|
+
lkml_file = LkmlFile.model_validate(lkml.load(file))
|
|
119
119
|
self.parsed_files[path] = file
|
|
120
120
|
|
|
121
121
|
# Cache everything
|
|
@@ -211,6 +211,6 @@ class LkmlParser:
|
|
|
211
211
|
Customize string repr for logs
|
|
212
212
|
"""
|
|
213
213
|
return (
|
|
214
|
-
f"Parser at [{self.reader.credentials.repositoryOwner.
|
|
215
|
-
f"{self.reader.credentials.repositoryName.
|
|
214
|
+
f"Parser at [{self.reader.credentials.repositoryOwner.root}/"
|
|
215
|
+
f"{self.reader.credentials.repositoryName.root}]"
|
|
216
216
|
)
|
|
@@ -56,9 +56,9 @@ def _clone_repo(
|
|
|
56
56
|
url = None
|
|
57
57
|
allow_unsafe_protocols = False
|
|
58
58
|
if isinstance(credential, GitHubCredentials):
|
|
59
|
-
url = f"https://x-oauth-basic:{credential.token.
|
|
59
|
+
url = f"https://x-oauth-basic:{credential.token.root.get_secret_value()}@github.com/{repo_name}.git"
|
|
60
60
|
elif isinstance(credential, BitBucketCredentials):
|
|
61
|
-
url = f"https://x-token-auth:{credential.token.
|
|
61
|
+
url = f"https://x-token-auth:{credential.token.root.get_secret_value()}@bitbucket.org/{repo_name}.git"
|
|
62
62
|
allow_unsafe_protocols = True
|
|
63
63
|
|
|
64
64
|
assert url is not None
|
|
@@ -30,6 +30,7 @@ from metadata.ingestion.source.dashboard.metabase.models import (
|
|
|
30
30
|
MetabaseDashboardList,
|
|
31
31
|
MetabaseDatabase,
|
|
32
32
|
MetabaseTable,
|
|
33
|
+
MetabaseUser,
|
|
33
34
|
)
|
|
34
35
|
from metadata.utils.constants import AUTHORIZATION_HEADER, NO_ACCESS_TOKEN
|
|
35
36
|
from metadata.utils.logger import ingestion_logger
|
|
@@ -55,7 +56,7 @@ class MetabaseClient:
|
|
|
55
56
|
if self.config.password:
|
|
56
57
|
params[PASSWORD_HEADER] = self.config.password.get_secret_value()
|
|
57
58
|
self.resp = requests.post(
|
|
58
|
-
f"{self.config.hostPort}
|
|
59
|
+
f"{self.config.hostPort}{API_VERSION}/session/",
|
|
59
60
|
data=json.dumps(params),
|
|
60
61
|
headers=SESSION_HEADERS,
|
|
61
62
|
timeout=DEFAULT_TIMEOUT,
|
|
@@ -77,7 +78,7 @@ class MetabaseClient:
|
|
|
77
78
|
self.config = config
|
|
78
79
|
session_token = self._get_metabase_session()
|
|
79
80
|
client_config: ClientConfig = ClientConfig(
|
|
80
|
-
base_url=self.config.hostPort,
|
|
81
|
+
base_url=str(self.config.hostPort)[:-1], # remove trailing slash
|
|
81
82
|
api_version=API_VERSION,
|
|
82
83
|
auth_header=AUTHORIZATION_HEADER,
|
|
83
84
|
auth_token=lambda: (NO_ACCESS_TOKEN, 0),
|
|
@@ -194,3 +195,18 @@ class MetabaseClient:
|
|
|
194
195
|
logger.debug(traceback.format_exc())
|
|
195
196
|
logger.warning(f"Failed to fetch the table with id: {table_id}")
|
|
196
197
|
return None
|
|
198
|
+
|
|
199
|
+
def get_user_details(self, user_id: str) -> Optional[MetabaseUser]:
|
|
200
|
+
"""
|
|
201
|
+
Get User using user ID
|
|
202
|
+
"""
|
|
203
|
+
if not user_id:
|
|
204
|
+
return None # don't call api if table_id is None
|
|
205
|
+
try:
|
|
206
|
+
resp_table = self.client.get(f"/user/{user_id}")
|
|
207
|
+
if resp_table:
|
|
208
|
+
return MetabaseUser(**resp_table)
|
|
209
|
+
except Exception:
|
|
210
|
+
logger.debug(traceback.format_exc())
|
|
211
|
+
logger.warning(f"Failed to fetch the user with id: {user_id}")
|
|
212
|
+
return None
|
|
@@ -33,6 +33,13 @@ from metadata.generated.schema.entity.services.ingestionPipelines.status import
|
|
|
33
33
|
from metadata.generated.schema.metadataIngestion.workflow import (
|
|
34
34
|
Source as WorkflowSource,
|
|
35
35
|
)
|
|
36
|
+
from metadata.generated.schema.type.basic import (
|
|
37
|
+
EntityName,
|
|
38
|
+
FullyQualifiedEntityName,
|
|
39
|
+
Markdown,
|
|
40
|
+
SourceUrl,
|
|
41
|
+
)
|
|
42
|
+
from metadata.generated.schema.type.entityReferenceList import EntityReferenceList
|
|
36
43
|
from metadata.ingestion.api.models import Either
|
|
37
44
|
from metadata.ingestion.api.steps import InvalidSourceException
|
|
38
45
|
from metadata.ingestion.lineage.models import ConnectionTypeDialectMapper
|
|
@@ -70,8 +77,8 @@ class MetabaseSource(DashboardServiceSource):
|
|
|
70
77
|
def create(
|
|
71
78
|
cls, config_dict, metadata: OpenMetadata, pipeline_name: Optional[str] = None
|
|
72
79
|
):
|
|
73
|
-
config = WorkflowSource.
|
|
74
|
-
connection: MetabaseConnection = config.serviceConnection.
|
|
80
|
+
config = WorkflowSource.model_validate(config_dict)
|
|
81
|
+
connection: MetabaseConnection = config.serviceConnection.root.config
|
|
75
82
|
if not isinstance(connection, MetabaseConnection):
|
|
76
83
|
raise InvalidSourceException(
|
|
77
84
|
f"Expected MetabaseConnection, but got {connection}"
|
|
@@ -102,7 +109,9 @@ class MetabaseSource(DashboardServiceSource):
|
|
|
102
109
|
"""
|
|
103
110
|
return dashboard.name
|
|
104
111
|
|
|
105
|
-
def get_dashboard_details(
|
|
112
|
+
def get_dashboard_details(
|
|
113
|
+
self, dashboard: MetabaseDashboard
|
|
114
|
+
) -> Optional[MetabaseDashboardDetails]:
|
|
106
115
|
"""
|
|
107
116
|
Get Dashboard Details
|
|
108
117
|
"""
|
|
@@ -130,6 +139,24 @@ class MetabaseSource(DashboardServiceSource):
|
|
|
130
139
|
)
|
|
131
140
|
return None
|
|
132
141
|
|
|
142
|
+
def get_owner_ref(
|
|
143
|
+
self, dashboard_details: MetabaseDashboardDetails
|
|
144
|
+
) -> Optional[EntityReferenceList]:
|
|
145
|
+
"""
|
|
146
|
+
Get dashboard owner from email
|
|
147
|
+
"""
|
|
148
|
+
try:
|
|
149
|
+
if dashboard_details.creator_id:
|
|
150
|
+
owner_details = self.client.get_user_details(
|
|
151
|
+
dashboard_details.creator_id
|
|
152
|
+
)
|
|
153
|
+
if owner_details and owner_details.email:
|
|
154
|
+
return self.metadata.get_reference_by_email(owner_details.email)
|
|
155
|
+
except Exception as err:
|
|
156
|
+
logger.debug(traceback.format_exc())
|
|
157
|
+
logger.warning(f"Could not fetch owner data due to {err}")
|
|
158
|
+
return None
|
|
159
|
+
|
|
133
160
|
def yield_dashboard(
|
|
134
161
|
self, dashboard_details: MetabaseDashboardDetails
|
|
135
162
|
) -> Iterable[Either[CreateDashboardRequest]]:
|
|
@@ -142,22 +169,26 @@ class MetabaseSource(DashboardServiceSource):
|
|
|
142
169
|
f"{replace_special_with(raw=dashboard_details.name.lower(), replacement='-')}"
|
|
143
170
|
)
|
|
144
171
|
dashboard_request = CreateDashboardRequest(
|
|
145
|
-
name=dashboard_details.id,
|
|
146
|
-
sourceUrl=dashboard_url,
|
|
172
|
+
name=EntityName(str(dashboard_details.id)),
|
|
173
|
+
sourceUrl=SourceUrl(dashboard_url),
|
|
147
174
|
displayName=dashboard_details.name,
|
|
148
|
-
description=dashboard_details.description
|
|
175
|
+
description=Markdown(dashboard_details.description)
|
|
176
|
+
if dashboard_details.description
|
|
177
|
+
else None,
|
|
149
178
|
project=self.context.get().project_name,
|
|
150
179
|
charts=[
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
180
|
+
FullyQualifiedEntityName(
|
|
181
|
+
fqn.build(
|
|
182
|
+
self.metadata,
|
|
183
|
+
entity_type=Chart,
|
|
184
|
+
service_name=self.context.get().dashboard_service,
|
|
185
|
+
chart_name=chart,
|
|
186
|
+
)
|
|
156
187
|
)
|
|
157
188
|
for chart in self.context.get().charts or []
|
|
158
189
|
],
|
|
159
190
|
service=self.context.get().dashboard_service,
|
|
160
|
-
|
|
191
|
+
owners=self.get_owner_ref(dashboard_details=dashboard_details),
|
|
161
192
|
)
|
|
162
193
|
yield Either(right=dashboard_request)
|
|
163
194
|
self.register_record(dashboard_request=dashboard_request)
|
|
@@ -197,11 +228,11 @@ class MetabaseSource(DashboardServiceSource):
|
|
|
197
228
|
continue
|
|
198
229
|
yield Either(
|
|
199
230
|
right=CreateChartRequest(
|
|
200
|
-
name=chart_details.id,
|
|
231
|
+
name=EntityName(chart_details.id),
|
|
201
232
|
displayName=chart_details.name,
|
|
202
233
|
description=chart_details.description,
|
|
203
234
|
chartType=get_standard_chart_type(chart_details.display).value,
|
|
204
|
-
sourceUrl=chart_url,
|
|
235
|
+
sourceUrl=SourceUrl(chart_url),
|
|
205
236
|
service=self.context.get().dashboard_service,
|
|
206
237
|
)
|
|
207
238
|
)
|
|
@@ -13,7 +13,24 @@ Metabase Models
|
|
|
13
13
|
"""
|
|
14
14
|
from typing import List, Optional
|
|
15
15
|
|
|
16
|
-
from pydantic import BaseModel, Field
|
|
16
|
+
from pydantic import BaseModel, BeforeValidator, Field
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
MetabaseStrId = Annotated[str, BeforeValidator(lambda x: str(x))]
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class MetabaseUser(BaseModel):
|
|
23
|
+
"""
|
|
24
|
+
Metabase user model
|
|
25
|
+
"""
|
|
26
|
+
|
|
27
|
+
id: MetabaseStrId
|
|
28
|
+
first_name: Optional[str] = None
|
|
29
|
+
last_name: Optional[str] = None
|
|
30
|
+
common_name: Optional[str] = None
|
|
31
|
+
email: Optional[str] = None
|
|
32
|
+
is_superuser: Optional[bool] = False
|
|
33
|
+
last_edit_timestamp: Optional[str] = Field(None, alias="timestamp")
|
|
17
34
|
|
|
18
35
|
|
|
19
36
|
class MetabaseDashboard(BaseModel):
|
|
@@ -21,10 +38,10 @@ class MetabaseDashboard(BaseModel):
|
|
|
21
38
|
Metabase dashboard model
|
|
22
39
|
"""
|
|
23
40
|
|
|
24
|
-
description: Optional[str]
|
|
41
|
+
description: Optional[str] = None
|
|
25
42
|
name: str
|
|
26
|
-
id:
|
|
27
|
-
collection_id: Optional[
|
|
43
|
+
id: MetabaseStrId
|
|
44
|
+
collection_id: Optional[MetabaseStrId] = None
|
|
28
45
|
|
|
29
46
|
|
|
30
47
|
class MetabaseCollection(BaseModel):
|
|
@@ -33,24 +50,24 @@ class MetabaseCollection(BaseModel):
|
|
|
33
50
|
"""
|
|
34
51
|
|
|
35
52
|
name: str
|
|
36
|
-
id:
|
|
53
|
+
id: MetabaseStrId
|
|
37
54
|
|
|
38
55
|
|
|
39
56
|
class MetabaseDashboardList(BaseModel):
|
|
40
|
-
data:
|
|
57
|
+
data: List[MetabaseDashboard] = []
|
|
41
58
|
|
|
42
59
|
|
|
43
60
|
class MetabaseCollectionList(BaseModel):
|
|
44
|
-
collections:
|
|
61
|
+
collections: List[MetabaseCollection] = []
|
|
45
62
|
|
|
46
63
|
|
|
47
64
|
class Native(BaseModel):
|
|
48
|
-
query: Optional[str]
|
|
65
|
+
query: Optional[str] = None
|
|
49
66
|
|
|
50
67
|
|
|
51
68
|
class DatasetQuery(BaseModel):
|
|
52
|
-
type: Optional[str]
|
|
53
|
-
native: Optional[Native]
|
|
69
|
+
type: Optional[str] = None
|
|
70
|
+
native: Optional[Native] = None
|
|
54
71
|
|
|
55
72
|
|
|
56
73
|
class MetabaseChart(BaseModel):
|
|
@@ -58,13 +75,13 @@ class MetabaseChart(BaseModel):
|
|
|
58
75
|
Metabase card model
|
|
59
76
|
"""
|
|
60
77
|
|
|
61
|
-
description: Optional[str]
|
|
62
|
-
table_id: Optional[
|
|
63
|
-
database_id: Optional[
|
|
64
|
-
name: Optional[str]
|
|
65
|
-
dataset_query: Optional[DatasetQuery]
|
|
66
|
-
id: Optional[
|
|
67
|
-
display: Optional[str]
|
|
78
|
+
description: Optional[str] = None
|
|
79
|
+
table_id: Optional[MetabaseStrId] = None
|
|
80
|
+
database_id: Optional[MetabaseStrId] = None
|
|
81
|
+
name: Optional[str] = None
|
|
82
|
+
dataset_query: Optional[DatasetQuery] = None
|
|
83
|
+
id: Optional[MetabaseStrId] = None
|
|
84
|
+
display: Optional[str] = None
|
|
68
85
|
|
|
69
86
|
|
|
70
87
|
class DashCard(BaseModel):
|
|
@@ -76,15 +93,16 @@ class MetabaseDashboardDetails(BaseModel):
|
|
|
76
93
|
Metabase dashboard details model
|
|
77
94
|
"""
|
|
78
95
|
|
|
79
|
-
description: Optional[str]
|
|
96
|
+
description: Optional[str] = None
|
|
80
97
|
dashcards: List[DashCard]
|
|
81
|
-
name: Optional[str]
|
|
82
|
-
id:
|
|
83
|
-
|
|
98
|
+
name: Optional[str] = None
|
|
99
|
+
id: MetabaseStrId
|
|
100
|
+
creator_id: Optional[MetabaseStrId] = None
|
|
101
|
+
collection_id: Optional[MetabaseStrId] = None
|
|
84
102
|
|
|
85
103
|
|
|
86
104
|
class MetabaseDatabaseDetails(BaseModel):
|
|
87
|
-
db: Optional[str]
|
|
105
|
+
db: Optional[str] = None
|
|
88
106
|
|
|
89
107
|
|
|
90
108
|
class MetabaseDatabase(BaseModel):
|
|
@@ -92,12 +110,12 @@ class MetabaseDatabase(BaseModel):
|
|
|
92
110
|
Metabase database model
|
|
93
111
|
"""
|
|
94
112
|
|
|
95
|
-
details: Optional[MetabaseDatabaseDetails]
|
|
113
|
+
details: Optional[MetabaseDatabaseDetails] = None
|
|
96
114
|
|
|
97
115
|
|
|
98
116
|
class MetabaseTable(BaseModel):
|
|
99
|
-
table_schema: Optional[str] = Field(
|
|
100
|
-
db: Optional[MetabaseDatabase]
|
|
101
|
-
name: Optional[str]
|
|
102
|
-
id: Optional[
|
|
103
|
-
display_name: Optional[str]
|
|
117
|
+
table_schema: Optional[str] = Field(None, alias="schema")
|
|
118
|
+
db: Optional[MetabaseDatabase] = None
|
|
119
|
+
name: Optional[str] = None
|
|
120
|
+
id: Optional[MetabaseStrId] = None
|
|
121
|
+
display_name: Optional[str] = None
|
|
@@ -29,6 +29,12 @@ from metadata.generated.schema.entity.services.ingestionPipelines.status import
|
|
|
29
29
|
from metadata.generated.schema.metadataIngestion.workflow import (
|
|
30
30
|
Source as WorkflowSource,
|
|
31
31
|
)
|
|
32
|
+
from metadata.generated.schema.type.basic import (
|
|
33
|
+
EntityName,
|
|
34
|
+
FullyQualifiedEntityName,
|
|
35
|
+
Markdown,
|
|
36
|
+
SourceUrl,
|
|
37
|
+
)
|
|
32
38
|
from metadata.ingestion.api.models import Either
|
|
33
39
|
from metadata.ingestion.api.steps import InvalidSourceException
|
|
34
40
|
from metadata.ingestion.lineage.parser import LineageParser
|
|
@@ -55,15 +61,15 @@ class ModeSource(DashboardServiceSource):
|
|
|
55
61
|
metadata: OpenMetadata,
|
|
56
62
|
):
|
|
57
63
|
super().__init__(config, metadata)
|
|
58
|
-
self.workspace_name = config.serviceConnection.
|
|
64
|
+
self.workspace_name = config.serviceConnection.root.config.workspaceName
|
|
59
65
|
self.data_sources = self.client.get_all_data_sources(self.workspace_name)
|
|
60
66
|
|
|
61
67
|
@classmethod
|
|
62
68
|
def create(
|
|
63
69
|
cls, config_dict, metadata: OpenMetadata, pipeline_name: Optional[str] = None
|
|
64
70
|
):
|
|
65
|
-
config = WorkflowSource.
|
|
66
|
-
connection: ModeConnection = config.serviceConnection.
|
|
71
|
+
config = WorkflowSource.model_validate(config_dict)
|
|
72
|
+
connection: ModeConnection = config.serviceConnection.root.config
|
|
67
73
|
if not isinstance(connection, ModeConnection):
|
|
68
74
|
raise InvalidSourceException(
|
|
69
75
|
f"Expected ModeConnection, but got {connection}"
|
|
@@ -97,21 +103,25 @@ class ModeSource(DashboardServiceSource):
|
|
|
97
103
|
dashboard_path = dashboard_details[client.LINKS][client.SHARE][client.HREF]
|
|
98
104
|
dashboard_url = f"{clean_uri(self.service_connection.hostPort)}{dashboard_path}"
|
|
99
105
|
dashboard_request = CreateDashboardRequest(
|
|
100
|
-
name=dashboard_details.get(client.TOKEN),
|
|
101
|
-
sourceUrl=dashboard_url,
|
|
106
|
+
name=EntityName(dashboard_details.get(client.TOKEN)),
|
|
107
|
+
sourceUrl=SourceUrl(dashboard_url),
|
|
102
108
|
displayName=dashboard_details.get(client.NAME),
|
|
103
|
-
description=dashboard_details.get(client.DESCRIPTION)
|
|
109
|
+
description=Markdown(dashboard_details.get(client.DESCRIPTION))
|
|
110
|
+
if dashboard_details.get(client.DESCRIPTION)
|
|
111
|
+
else None,
|
|
104
112
|
charts=[
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
113
|
+
FullyQualifiedEntityName(
|
|
114
|
+
fqn.build(
|
|
115
|
+
self.metadata,
|
|
116
|
+
entity_type=Chart,
|
|
117
|
+
service_name=self.context.get().dashboard_service,
|
|
118
|
+
chart_name=chart,
|
|
119
|
+
)
|
|
110
120
|
)
|
|
111
121
|
for chart in self.context.get().charts or []
|
|
112
122
|
],
|
|
113
123
|
service=self.context.get().dashboard_service,
|
|
114
|
-
|
|
124
|
+
owners=self.get_owner_ref(dashboard_details=dashboard_details),
|
|
115
125
|
)
|
|
116
126
|
yield Either(right=dashboard_request)
|
|
117
127
|
self.register_record(dashboard_request=dashboard_request)
|
|
@@ -201,10 +211,10 @@ class ModeSource(DashboardServiceSource):
|
|
|
201
211
|
)
|
|
202
212
|
yield Either(
|
|
203
213
|
right=CreateChartRequest(
|
|
204
|
-
name=chart.get(client.TOKEN),
|
|
214
|
+
name=EntityName(chart.get(client.TOKEN)),
|
|
205
215
|
displayName=chart_name,
|
|
206
216
|
chartType=ChartType.Other,
|
|
207
|
-
sourceUrl=chart_url,
|
|
217
|
+
sourceUrl=SourceUrl(chart_url),
|
|
208
218
|
service=self.context.get().dashboard_service,
|
|
209
219
|
)
|
|
210
220
|
)
|
|
@@ -167,7 +167,7 @@ class MSTRClient:
|
|
|
167
167
|
dashboards = []
|
|
168
168
|
for result in results:
|
|
169
169
|
dashboards.append(
|
|
170
|
-
MstrDashboard(projectName=project_name, **result.
|
|
170
|
+
MstrDashboard(projectName=project_name, **result.model_dump())
|
|
171
171
|
)
|
|
172
172
|
|
|
173
173
|
dashboards_list = MstrDashboardList(dashboards=dashboards)
|