openmetadata-ingestion 1.6.7.0__py3-none-any.whl → 1.7.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.
- metadata/automations/execute_runner.py +49 -0
- metadata/automations/extended_runner.py +13 -0
- metadata/automations/runner.py +34 -35
- metadata/data_quality/validations/table/base/tableCustomSQLQuery.py +11 -1
- metadata/examples/workflows/cassandra.yaml +35 -0
- metadata/examples/workflows/cockroach.yaml +24 -0
- metadata/examples/workflows/nifi.yaml +51 -0
- metadata/examples/workflows/opensearch.yaml +20 -0
- metadata/generated/schema/analytics/__init__.py +1 -1
- metadata/generated/schema/analytics/basic.py +1 -1
- metadata/generated/schema/analytics/reportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/__init__.py +1 -1
- metadata/generated/schema/analytics/reportDataType/aggregatedCostAnalysisReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/entityReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/rawCostAnalysisReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/webAnalyticEntityViewReportData.py +1 -1
- metadata/generated/schema/analytics/reportDataType/webAnalyticUserActivityReportData.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEvent.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventData.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventType/__init__.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventType/customEvent.py +1 -1
- metadata/generated/schema/analytics/webAnalyticEventType/pageViewEvent.py +1 -1
- metadata/generated/schema/api/__init__.py +1 -1
- metadata/generated/schema/api/addGlossaryToAssetsRequest.py +1 -1
- metadata/generated/schema/api/addTagToAssetsRequest.py +1 -1
- metadata/generated/schema/api/analytics/__init__.py +1 -1
- metadata/generated/schema/api/analytics/createWebAnalyticEvent.py +1 -1
- metadata/generated/schema/api/automations/__init__.py +1 -1
- metadata/generated/schema/api/automations/createWorkflow.py +14 -4
- metadata/generated/schema/api/bulkAssets.py +1 -1
- metadata/generated/schema/api/classification/__init__.py +1 -1
- metadata/generated/schema/api/classification/createClassification.py +2 -2
- metadata/generated/schema/api/classification/createTag.py +2 -2
- metadata/generated/schema/api/classification/loadTags.py +1 -1
- metadata/generated/schema/api/createBot.py +1 -1
- metadata/generated/schema/api/createEventPublisherJob.py +1 -1
- metadata/generated/schema/api/createType.py +1 -1
- metadata/generated/schema/api/data/__init__.py +1 -1
- metadata/generated/schema/api/data/createAPICollection.py +1 -1
- metadata/generated/schema/api/data/createAPIEndpoint.py +1 -1
- metadata/generated/schema/api/data/createChart.py +1 -1
- metadata/generated/schema/api/data/createContainer.py +1 -1
- metadata/generated/schema/api/data/createCustomProperty.py +1 -1
- metadata/generated/schema/api/data/createDashboard.py +1 -1
- metadata/generated/schema/api/data/createDashboardDataModel.py +1 -1
- metadata/generated/schema/api/data/createDatabase.py +1 -1
- metadata/generated/schema/api/data/createDatabaseSchema.py +1 -1
- metadata/generated/schema/api/data/createGlossary.py +1 -1
- metadata/generated/schema/api/data/createGlossaryTerm.py +1 -1
- metadata/generated/schema/api/data/createMetric.py +1 -1
- metadata/generated/schema/api/data/createMlModel.py +1 -1
- metadata/generated/schema/api/data/createPipeline.py +5 -1
- metadata/generated/schema/api/data/createQuery.py +1 -1
- metadata/generated/schema/api/data/createQueryCostRecord.py +35 -0
- metadata/generated/schema/api/data/createSearchIndex.py +1 -1
- metadata/generated/schema/api/data/createStoredProcedure.py +1 -1
- metadata/generated/schema/api/data/createTable.py +1 -1
- metadata/generated/schema/api/data/createTableProfile.py +1 -1
- metadata/generated/schema/api/data/createTopic.py +1 -1
- metadata/generated/schema/api/data/loadGlossary.py +1 -1
- metadata/generated/schema/api/data/restoreEntity.py +1 -1
- metadata/generated/schema/api/dataInsight/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/createDataInsightChart.py +1 -1
- metadata/generated/schema/api/dataInsight/custom/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/custom/createDataInsightCustomChart.py +1 -1
- metadata/generated/schema/api/dataInsight/kpi/__init__.py +1 -1
- metadata/generated/schema/api/dataInsight/kpi/createKpiRequest.py +1 -1
- metadata/generated/schema/api/docStore/__init__.py +1 -1
- metadata/generated/schema/api/docStore/createDocument.py +1 -1
- metadata/generated/schema/api/domains/__init__.py +1 -1
- metadata/generated/schema/api/domains/createDataProduct.py +1 -1
- metadata/generated/schema/api/domains/createDomain.py +8 -1
- metadata/generated/schema/api/feed/__init__.py +1 -1
- metadata/generated/schema/api/feed/closeTask.py +1 -1
- metadata/generated/schema/api/feed/createPost.py +1 -1
- metadata/generated/schema/api/feed/createSuggestion.py +1 -1
- metadata/generated/schema/api/feed/createThread.py +1 -1
- metadata/generated/schema/api/feed/resolveTask.py +1 -1
- metadata/generated/schema/api/feed/threadCount.py +25 -1
- metadata/generated/schema/api/governance/__init__.py +1 -1
- metadata/generated/schema/api/governance/createWorkflowDefinition.py +1 -1
- metadata/generated/schema/api/governance/createWorkflowInstanceState.py +1 -1
- metadata/generated/schema/api/lineage/__init__.py +1 -1
- metadata/generated/schema/api/lineage/addLineage.py +1 -1
- metadata/generated/schema/api/lineage/esLineageData.py +85 -0
- metadata/generated/schema/api/lineage/lineageDirection.py +12 -0
- metadata/generated/schema/api/lineage/nodeInformation.py +19 -0
- metadata/generated/schema/api/lineage/searchLineageRequest.py +45 -0
- metadata/generated/schema/api/lineage/searchLineageResult.py +46 -0
- metadata/generated/schema/api/openMetadataServerVersion.py +1 -1
- metadata/generated/schema/api/policies/__init__.py +1 -1
- metadata/generated/schema/api/policies/createPolicy.py +1 -1
- metadata/generated/schema/api/search/__init__.py +3 -0
- metadata/generated/schema/api/search/previewSearchRequest.py +47 -0
- metadata/generated/schema/api/services/__init__.py +1 -1
- metadata/generated/schema/api/services/createApiService.py +9 -2
- metadata/generated/schema/api/services/createDashboardService.py +9 -2
- metadata/generated/schema/api/services/createDatabaseService.py +9 -2
- metadata/generated/schema/api/services/createMessagingService.py +9 -2
- metadata/generated/schema/api/services/createMetadataService.py +9 -2
- metadata/generated/schema/api/services/createMlModelService.py +9 -2
- metadata/generated/schema/api/services/createPipelineService.py +9 -2
- metadata/generated/schema/api/services/createSearchService.py +9 -2
- metadata/generated/schema/api/services/createStorageService.py +9 -2
- metadata/generated/schema/api/services/ingestionPipelines/__init__.py +1 -1
- metadata/generated/schema/api/services/ingestionPipelines/createIngestionPipeline.py +1 -1
- metadata/generated/schema/api/setOwner.py +1 -1
- metadata/generated/schema/api/teams/__init__.py +1 -1
- metadata/generated/schema/api/teams/createPersona.py +1 -1
- metadata/generated/schema/api/teams/createRole.py +1 -1
- metadata/generated/schema/api/teams/createTeam.py +1 -1
- metadata/generated/schema/api/teams/createUser.py +1 -1
- metadata/generated/schema/api/tests/__init__.py +1 -1
- metadata/generated/schema/api/tests/createCustomMetric.py +1 -1
- metadata/generated/schema/api/tests/createLogicalTestCases.py +1 -1
- metadata/generated/schema/api/tests/createTestCase.py +1 -1
- metadata/generated/schema/api/tests/createTestCaseResolutionStatus.py +1 -1
- metadata/generated/schema/api/tests/createTestCaseResult.py +1 -1
- metadata/generated/schema/api/tests/createTestDefinition.py +1 -1
- metadata/generated/schema/api/tests/createTestSuite.py +1 -1
- metadata/generated/schema/api/voteRequest.py +1 -1
- metadata/generated/schema/auth/__init__.py +1 -1
- metadata/generated/schema/auth/basicAuth.py +1 -1
- metadata/generated/schema/auth/basicLoginRequest.py +1 -1
- metadata/generated/schema/auth/changePasswordRequest.py +1 -1
- metadata/generated/schema/auth/createPersonalToken.py +1 -1
- metadata/generated/schema/auth/emailRequest.py +1 -1
- metadata/generated/schema/auth/emailVerificationToken.py +1 -1
- metadata/generated/schema/auth/generateToken.py +1 -1
- metadata/generated/schema/auth/jwtAuth.py +1 -1
- metadata/generated/schema/auth/loginRequest.py +1 -1
- metadata/generated/schema/auth/logoutRequest.py +1 -1
- metadata/generated/schema/auth/passwordResetRequest.py +1 -1
- metadata/generated/schema/auth/passwordResetToken.py +1 -1
- metadata/generated/schema/auth/personalAccessToken.py +1 -1
- metadata/generated/schema/auth/refreshToken.py +1 -1
- metadata/generated/schema/auth/registrationRequest.py +1 -1
- metadata/generated/schema/auth/revokePersonalToken.py +1 -1
- metadata/generated/schema/auth/revokeToken.py +1 -1
- metadata/generated/schema/auth/serviceTokenEnum.py +1 -1
- metadata/generated/schema/auth/ssoAuth.py +1 -1
- metadata/generated/schema/auth/tokenRefreshRequest.py +1 -1
- metadata/generated/schema/configuration/__init__.py +1 -1
- metadata/generated/schema/configuration/appsPrivateConfiguration.py +1 -1
- metadata/generated/schema/configuration/assetCertificationSettings.py +1 -1
- metadata/generated/schema/configuration/authConfig.py +1 -1
- metadata/generated/schema/configuration/authenticationConfiguration.py +1 -1
- metadata/generated/schema/configuration/authorizerConfiguration.py +4 -1
- metadata/generated/schema/configuration/changeEventConfiguration.py +1 -1
- metadata/generated/schema/configuration/dataQualityConfiguration.py +1 -1
- metadata/generated/schema/configuration/elasticSearchConfiguration.py +55 -1
- metadata/generated/schema/configuration/eventHandlerConfiguration.py +1 -1
- metadata/generated/schema/configuration/fernetConfiguration.py +1 -1
- metadata/generated/schema/configuration/jwtTokenConfiguration.py +1 -1
- metadata/generated/schema/configuration/kafkaEventConfiguration.py +1 -1
- metadata/generated/schema/configuration/ldapConfiguration.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/__init__.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/customTrustManagerConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/hostNameConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/jvmDefaultConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/trustAllConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/truststoreConfig.py +1 -1
- metadata/generated/schema/configuration/limitsConfiguration.py +1 -1
- metadata/generated/schema/configuration/lineageSettings.py +1 -1
- metadata/generated/schema/configuration/loginConfiguration.py +1 -1
- metadata/generated/schema/configuration/logoConfiguration.py +1 -1
- metadata/generated/schema/configuration/openMetadataBaseUrlConfiguration.py +21 -0
- metadata/generated/schema/configuration/pipelineServiceClientConfiguration.py +1 -1
- metadata/generated/schema/configuration/profilerConfiguration.py +1 -1
- metadata/generated/schema/configuration/searchSettings.py +428 -4
- metadata/generated/schema/configuration/slackAppConfiguration.py +1 -1
- metadata/generated/schema/configuration/taskNotificationConfiguration.py +1 -1
- metadata/generated/schema/configuration/testResultNotificationConfiguration.py +1 -1
- metadata/generated/schema/configuration/themeConfiguration.py +1 -1
- metadata/generated/schema/configuration/uiThemePreference.py +1 -1
- metadata/generated/schema/configuration/workflowSettings.py +8 -1
- metadata/generated/schema/dataInsight/__init__.py +1 -1
- metadata/generated/schema/dataInsight/custom/__init__.py +1 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChart.py +1 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChartResult.py +1 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChartResultList.py +1 -1
- metadata/generated/schema/dataInsight/custom/formulaHolder.py +1 -1
- metadata/generated/schema/dataInsight/custom/lineChart.py +15 -1
- metadata/generated/schema/dataInsight/custom/summaryCard.py +1 -1
- metadata/generated/schema/dataInsight/dataInsightChart.py +1 -1
- metadata/generated/schema/dataInsight/dataInsightChartResult.py +1 -1
- metadata/generated/schema/dataInsight/kpi/__init__.py +1 -1
- metadata/generated/schema/dataInsight/kpi/basic.py +1 -1
- metadata/generated/schema/dataInsight/kpi/kpi.py +1 -1
- metadata/generated/schema/dataInsight/type/__init__.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUnusedAssetsCount.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUnusedAssetsSize.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUsedVsUnusedAssetsCount.py +1 -1
- metadata/generated/schema/dataInsight/type/aggregatedUsedVsUnusedAssetsSize.py +1 -1
- metadata/generated/schema/dataInsight/type/dailyActiveUsers.py +1 -1
- metadata/generated/schema/dataInsight/type/mostActiveUsers.py +1 -1
- metadata/generated/schema/dataInsight/type/mostViewedEntities.py +1 -1
- metadata/generated/schema/dataInsight/type/pageViewsByEntities.py +1 -1
- metadata/generated/schema/dataInsight/type/unusedAssets.py +1 -1
- metadata/generated/schema/email/__init__.py +1 -1
- metadata/generated/schema/email/emailRequest.py +1 -1
- metadata/generated/schema/email/emailTemplate.py +1 -1
- metadata/generated/schema/email/emailTemplatePlaceholder.py +1 -1
- metadata/generated/schema/email/smtpSettings.py +1 -2
- metadata/generated/schema/email/templateValidationReponse.py +1 -1
- metadata/generated/schema/entity/__init__.py +1 -1
- metadata/generated/schema/entity/applications/__init__.py +1 -1
- metadata/generated/schema/entity/applications/app.py +14 -1
- metadata/generated/schema/entity/applications/appExtension.py +1 -1
- metadata/generated/schema/entity/applications/appRunRecord.py +23 -4
- metadata/generated/schema/entity/applications/configuration/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/applicationConfig.py +9 -3
- 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/addCustomProperties.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addDataProductAction.py +41 -0
- metadata/generated/schema/entity/applications/configuration/external/automator/addDescriptionAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addDomainAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addOwnerAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTagsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTestCaseAction.py +71 -0
- metadata/generated/schema/entity/applications/configuration/external/automator/addTierAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/lineagePropagationAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/mlTaggingAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeCustomPropertiesAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDataProductAction.py +33 -0
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDescriptionAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDomainAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeOwnerAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTagsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTestCaseAction.py +45 -0
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTierAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automatorAppConfig.py +13 -1
- metadata/generated/schema/entity/applications/configuration/external/collateAIAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/slackAppTokenConfiguration.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/collateAIQualityAgentAppConfig.py +46 -0
- metadata/generated/schema/entity/applications/configuration/internal/collateAITierAgentAppConfig.py +46 -0
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsAppConfig.py +109 -2
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsReportAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dataRetentionConfiguration.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dayOneExperienceAppConfig.py +48 -0
- metadata/generated/schema/entity/applications/configuration/internal/searchIndexingAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/__init__.py +3 -0
- metadata/generated/schema/entity/applications/configuration/private/external/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/external/collateAIAppPrivateConfig.py +3 -22
- metadata/generated/schema/entity/applications/configuration/private/internal/__init__.py +3 -0
- metadata/generated/schema/entity/applications/configuration/private/internal/collateAITierAgentAppPrivateConfig.py +24 -0
- metadata/generated/schema/entity/applications/configuration/private/limits.py +33 -0
- metadata/generated/schema/entity/applications/createAppRequest.py +1 -1
- metadata/generated/schema/entity/applications/jobStatus.py +1 -1
- metadata/generated/schema/entity/applications/liveExecutionContext.py +1 -1
- metadata/generated/schema/entity/applications/marketplace/__init__.py +1 -1
- metadata/generated/schema/entity/applications/marketplace/appMarketPlaceDefinition.py +13 -1
- metadata/generated/schema/entity/applications/marketplace/createAppMarketPlaceDefinitionReq.py +13 -1
- metadata/generated/schema/entity/applications/scheduledExecutionContext.py +1 -1
- metadata/generated/schema/entity/automations/__init__.py +1 -1
- metadata/generated/schema/entity/automations/testServiceConnection.py +1 -1
- metadata/generated/schema/entity/automations/workflow.py +15 -4
- metadata/generated/schema/entity/bot.py +1 -1
- metadata/generated/schema/entity/classification/__init__.py +1 -1
- metadata/generated/schema/entity/classification/classification.py +1 -1
- metadata/generated/schema/entity/classification/tag.py +1 -1
- metadata/generated/schema/entity/data/__init__.py +1 -1
- metadata/generated/schema/entity/data/apiCollection.py +1 -1
- metadata/generated/schema/entity/data/apiEndpoint.py +1 -1
- metadata/generated/schema/entity/data/chart.py +1 -1
- metadata/generated/schema/entity/data/container.py +1 -1
- metadata/generated/schema/entity/data/dashboard.py +1 -1
- metadata/generated/schema/entity/data/dashboardDataModel.py +1 -1
- metadata/generated/schema/entity/data/database.py +5 -1
- metadata/generated/schema/entity/data/databaseSchema.py +7 -5
- metadata/generated/schema/entity/data/glossary.py +1 -1
- metadata/generated/schema/entity/data/glossaryTerm.py +1 -1
- metadata/generated/schema/entity/data/metric.py +1 -1
- metadata/generated/schema/entity/data/mlmodel.py +1 -1
- metadata/generated/schema/entity/data/pipeline.py +14 -1
- metadata/generated/schema/entity/data/query.py +1 -1
- metadata/generated/schema/entity/data/queryCostRecord.py +47 -0
- metadata/generated/schema/entity/data/queryCostSearchResult.py +56 -0
- metadata/generated/schema/entity/data/report.py +1 -1
- metadata/generated/schema/entity/data/searchIndex.py +1 -1
- metadata/generated/schema/entity/data/storedProcedure.py +3 -1
- metadata/generated/schema/entity/data/table.py +8 -1
- metadata/generated/schema/entity/data/topic.py +1 -1
- metadata/generated/schema/entity/docStore/__init__.py +1 -1
- metadata/generated/schema/entity/docStore/document.py +1 -1
- metadata/generated/schema/entity/domains/__init__.py +1 -1
- metadata/generated/schema/entity/domains/dataProduct.py +1 -1
- metadata/generated/schema/entity/domains/domain.py +8 -1
- metadata/generated/schema/entity/events/__init__.py +1 -1
- metadata/generated/schema/entity/events/webhook.py +1 -1
- metadata/generated/schema/entity/feed/__init__.py +1 -1
- metadata/generated/schema/entity/feed/assets.py +1 -1
- metadata/generated/schema/entity/feed/customProperty.py +1 -1
- metadata/generated/schema/entity/feed/description.py +1 -1
- metadata/generated/schema/entity/feed/domain.py +1 -1
- metadata/generated/schema/entity/feed/entityInfo.py +1 -1
- metadata/generated/schema/entity/feed/owner.py +1 -1
- metadata/generated/schema/entity/feed/suggestion.py +1 -1
- metadata/generated/schema/entity/feed/tag.py +1 -1
- metadata/generated/schema/entity/feed/testCaseResult.py +1 -1
- metadata/generated/schema/entity/feed/thread.py +1 -1
- metadata/generated/schema/entity/policies/__init__.py +1 -1
- metadata/generated/schema/entity/policies/accessControl/__init__.py +1 -1
- metadata/generated/schema/entity/policies/accessControl/resourceDescriptor.py +1 -1
- metadata/generated/schema/entity/policies/accessControl/resourcePermission.py +1 -1
- metadata/generated/schema/entity/policies/accessControl/rule.py +1 -1
- metadata/generated/schema/entity/policies/filters.py +1 -1
- metadata/generated/schema/entity/policies/policy.py +1 -1
- metadata/generated/schema/entity/services/__init__.py +1 -1
- metadata/generated/schema/entity/services/apiService.py +8 -1
- metadata/generated/schema/entity/services/connections/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/api/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/api/restConnection.py +11 -1
- metadata/generated/schema/entity/services/connections/common/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/common/sslCertPaths.py +1 -1
- metadata/generated/schema/entity/services/connections/common/sslCertValues.py +1 -1
- metadata/generated/schema/entity/services/connections/common/sslConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/connectionBasicType.py +7 -1
- metadata/generated/schema/entity/services/connections/dashboard/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/customDashboardConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/domoDashboardConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/lightdashConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/lookerConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/metabaseConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/microStrategyConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/modeConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerBIConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerBIReportServerConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/bucketDetails.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/gcsConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/s3Config.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/qlikCloudConnection.py +50 -2
- metadata/generated/schema/entity/services/connections/dashboard/qlikSenseConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/quickSightConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/redashConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/sigmaConnection.py +35 -1
- metadata/generated/schema/entity/services/connections/dashboard/supersetConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/dashboard/tableauConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/database/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/athenaConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/azureSQLConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/bigQueryConnection.py +36 -1
- metadata/generated/schema/entity/services/connections/database/bigTableConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/cassandra/__init__.py +3 -0
- metadata/generated/schema/entity/services/connections/database/cassandra/cloudConfig.py +61 -0
- metadata/generated/schema/entity/services/connections/database/cassandraConnection.py +106 -0
- metadata/generated/schema/entity/services/connections/database/clickhouseConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/cockroachConnection.py +136 -0
- metadata/generated/schema/entity/services/connections/database/common/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/iamAuthConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/jwtAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/noConfigAuthenticationTypes.py +1 -1
- metadata/generated/schema/entity/services/connections/database/couchbaseConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/customDatabaseConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/databricksConnection.py +37 -2
- metadata/generated/schema/entity/services/connections/database/datalake/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/gcsConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/s3Config.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalakeConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/db2Connection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/deltaLakeConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/metastoreConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/storageConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/domoDatabaseConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/dorisConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/druidConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/dynamoDBConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/exasolConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/glueConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/greenplumConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/hiveConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/dynamoDbCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/glueCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/hiveCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergCatalog.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergFileSystem.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/restCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/icebergConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/impalaConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/mariaDBConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/mongoDBConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/mssqlConnection.py +42 -2
- metadata/generated/schema/entity/services/connections/database/mysqlConnection.py +32 -2
- metadata/generated/schema/entity/services/connections/database/oracleConnection.py +32 -2
- metadata/generated/schema/entity/services/connections/database/pinotDBConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/postgresConnection.py +37 -2
- metadata/generated/schema/entity/services/connections/database/prestoConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/redshiftConnection.py +41 -2
- metadata/generated/schema/entity/services/connections/database/salesforceConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/sapErpConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaHDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaSQLConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHanaConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/sasConnection.py +27 -1
- metadata/generated/schema/entity/services/connections/database/singleStoreConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/snowflakeConnection.py +58 -3
- metadata/generated/schema/entity/services/connections/database/sqliteConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/synapseConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/teradataConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/trinoConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/database/unityCatalogConnection.py +37 -2
- metadata/generated/schema/entity/services/connections/database/verticaConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/messaging/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/customMessagingConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/messaging/kafkaConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/messaging/kinesisConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/messaging/pulsarConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/messaging/redpandaConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/messaging/saslMechanismType.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/alationConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/metadata/alationSinkConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/metadata/amundsenConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/metadata/atlasConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/metadata/metadataESConnection.py +26 -1
- metadata/generated/schema/entity/services/connections/metadata/openMetadataConnection.py +26 -2
- metadata/generated/schema/entity/services/connections/mlmodel/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/customMlModelConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/mlmodel/mlflowConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/mlmodel/sageMakerConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/mlmodel/sklearnConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/mlmodel/vertexaiConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/airbyteConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/airflowConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/backendConnection.py +11 -1
- metadata/generated/schema/entity/services/connections/pipeline/customPipelineConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/dagsterConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/databricksPipelineConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/datafactoryConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/dbtCloudConnection.py +11 -1
- metadata/generated/schema/entity/services/connections/pipeline/domoPipelineConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/fivetranConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/flinkConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/gluePipelineConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/kafkaConnectConnection.py +11 -1
- metadata/generated/schema/entity/services/connections/pipeline/matillion/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/matillion/matillionETL.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/matillionConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/nifi/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/nifi/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/nifi/clientCertificateAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/nifiConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/openLineageConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/sparkConnection.py +11 -1
- metadata/generated/schema/entity/services/connections/pipeline/splineConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/pipeline/stitchConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/search/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/customSearchConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/apiAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearchConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/search/openSearchConnection.py +37 -29
- metadata/generated/schema/entity/services/connections/serviceConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/adlsConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/storage/customStorageConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/storage/gcsConnection.py +10 -1
- metadata/generated/schema/entity/services/connections/storage/s3Connection.py +10 -1
- metadata/generated/schema/entity/services/connections/testConnectionDefinition.py +1 -1
- metadata/generated/schema/entity/services/connections/testConnectionResult.py +1 -1
- metadata/generated/schema/entity/services/dashboardService.py +8 -1
- metadata/generated/schema/entity/services/databaseService.py +14 -1
- metadata/generated/schema/entity/services/ingestionPipelines/__init__.py +1 -1
- metadata/generated/schema/entity/services/ingestionPipelines/ingestionPipeline.py +8 -1
- metadata/generated/schema/entity/services/ingestionPipelines/pipelineServiceClientResponse.py +1 -1
- metadata/generated/schema/entity/services/ingestionPipelines/reverseIngestionResponse.py +47 -0
- metadata/generated/schema/entity/services/ingestionPipelines/status.py +1 -1
- metadata/generated/schema/entity/services/messagingService.py +8 -1
- metadata/generated/schema/entity/services/metadataService.py +8 -1
- metadata/generated/schema/entity/services/mlmodelService.py +8 -1
- metadata/generated/schema/entity/services/pipelineService.py +8 -1
- metadata/generated/schema/entity/services/searchService.py +9 -2
- metadata/generated/schema/entity/services/serviceType.py +1 -1
- metadata/generated/schema/entity/services/storageService.py +8 -1
- metadata/generated/schema/entity/teams/__init__.py +1 -1
- metadata/generated/schema/entity/teams/persona.py +5 -1
- metadata/generated/schema/entity/teams/role.py +1 -1
- metadata/generated/schema/entity/teams/team.py +1 -1
- metadata/generated/schema/entity/teams/teamHierarchy.py +1 -1
- metadata/generated/schema/entity/teams/user.py +5 -1
- metadata/generated/schema/entity/type.py +1 -1
- metadata/generated/schema/entity/utils/__init__.py +1 -1
- metadata/generated/schema/entity/utils/entitiesCount.py +1 -1
- metadata/generated/schema/entity/utils/servicesCount.py +1 -1
- metadata/generated/schema/entity/utils/supersetApiConnection.py +1 -1
- metadata/generated/schema/events/__init__.py +1 -1
- metadata/generated/schema/events/alertMetrics.py +1 -1
- metadata/generated/schema/events/api/__init__.py +1 -1
- metadata/generated/schema/events/api/createEventSubscription.py +9 -1
- metadata/generated/schema/events/api/eventSubscriptionDiagnosticInfo.py +1 -1
- metadata/generated/schema/events/api/eventsRecord.py +1 -1
- metadata/generated/schema/events/api/testEventSubscriptionDestination.py +1 -1
- metadata/generated/schema/events/api/typedEvent.py +1 -1
- metadata/generated/schema/events/emailAlertConfig.py +1 -1
- metadata/generated/schema/events/eventFilterRule.py +1 -1
- metadata/generated/schema/events/eventSubscription.py +9 -2
- metadata/generated/schema/events/eventSubscriptionOffset.py +1 -1
- metadata/generated/schema/events/failedEvent.py +1 -1
- metadata/generated/schema/events/failedEventResponse.py +1 -1
- metadata/generated/schema/events/filterResourceDescriptor.py +1 -1
- metadata/generated/schema/events/statusContext.py +1 -1
- metadata/generated/schema/events/subscriptionResourceDescriptor.py +1 -1
- metadata/generated/schema/events/subscriptionStatus.py +1 -1
- metadata/generated/schema/events/testDestinationStatus.py +1 -1
- metadata/generated/schema/governance/workflows/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/edge.py +2 -2
- metadata/generated/schema/governance/workflows/elements/nodeSubType.py +4 -1
- metadata/generated/schema/governance/workflows/elements/nodeType.py +2 -1
- metadata/generated/schema/governance/workflows/elements/nodes/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/checkEntityAttributesTask.py +28 -8
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/createAndRunIngestionPipelineTask.py +86 -0
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/runAppTask.py +73 -0
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/setEntityCertificationTask.py +27 -6
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/setGlossaryTermStatusTask.py +28 -7
- metadata/generated/schema/governance/workflows/elements/nodes/endEvent/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/endEvent/endEvent.py +9 -4
- metadata/generated/schema/governance/workflows/elements/nodes/gateway/__init__.py +3 -0
- metadata/generated/schema/governance/workflows/elements/nodes/gateway/parallelGateway.py +30 -0
- metadata/generated/schema/governance/workflows/elements/nodes/startEvent/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/startEvent/startEvent.py +9 -4
- metadata/generated/schema/governance/workflows/elements/nodes/userTask/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/userTask/userApprovalTask.py +24 -7
- metadata/generated/schema/governance/workflows/elements/triggers/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/triggers/eventBasedEntityTrigger.py +8 -4
- metadata/generated/schema/governance/workflows/elements/triggers/noOpTrigger.py +20 -0
- metadata/generated/schema/governance/workflows/elements/triggers/periodicBatchEntityTrigger.py +18 -5
- metadata/generated/schema/governance/workflows/workflowDefinition.py +30 -7
- metadata/generated/schema/governance/workflows/workflowInstance.py +11 -8
- metadata/generated/schema/governance/workflows/workflowInstanceState.py +4 -8
- metadata/generated/schema/jobs/__init__.py +1 -1
- metadata/generated/schema/jobs/backgroundJob.py +1 -1
- metadata/generated/schema/jobs/enumCleanupArgs.py +1 -1
- metadata/generated/schema/metadataIngestion/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/apiServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/application.py +1 -1
- metadata/generated/schema/metadataIngestion/applicationPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dashboardServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dataInsightPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/databaseServiceAutoClassificationPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/databaseServiceMetadataPipeline.py +4 -4
- metadata/generated/schema/metadataIngestion/databaseServiceProfilerPipeline.py +5 -1
- metadata/generated/schema/metadataIngestion/databaseServiceQueryLineagePipeline.py +18 -2
- metadata/generated/schema/metadataIngestion/databaseServiceQueryUsagePipeline.py +9 -1
- metadata/generated/schema/metadataIngestion/dbtPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtAzureConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtBucketDetails.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtCloudConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtGCSConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtHttpConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtLocalConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtS3Config.py +1 -1
- metadata/generated/schema/metadataIngestion/messagingServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/metadataToElasticSearchPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/mlmodelServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/pipelineServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/reverseIngestionPipeline.py +64 -0
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/__init__.py +3 -0
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/descriptionConfig.py +24 -0
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/ownerConfig.py +28 -0
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/tagsConfig.py +28 -0
- metadata/generated/schema/metadataIngestion/searchServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/containerMetadataConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/manifestMetadataConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageBucketDetails.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataADLSConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataGCSConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataHttpConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataLocalConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/storage/storageMetadataS3Config.py +1 -1
- metadata/generated/schema/metadataIngestion/storageServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/testSuitePipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/workflow.py +3 -1
- metadata/generated/schema/monitoring/__init__.py +1 -1
- metadata/generated/schema/monitoring/eventMonitorProvider.py +1 -1
- metadata/generated/schema/search/__init__.py +3 -0
- metadata/generated/schema/search/searchRequest.py +106 -0
- metadata/generated/schema/security/__init__.py +1 -1
- metadata/generated/schema/security/client/__init__.py +1 -1
- metadata/generated/schema/security/client/auth0SSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/azureSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/customOidcSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/googleSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/oidcClientConfig.py +1 -1
- metadata/generated/schema/security/client/oktaSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/openMetadataJWTClientConfig.py +1 -1
- metadata/generated/schema/security/client/samlSSOClientConfig.py +1 -1
- metadata/generated/schema/security/credentials/__init__.py +1 -1
- metadata/generated/schema/security/credentials/accessTokenAuth.py +1 -1
- metadata/generated/schema/security/credentials/apiAccessTokenAuth.py +1 -1
- metadata/generated/schema/security/credentials/awsCredentials.py +1 -1
- metadata/generated/schema/security/credentials/azureCredentials.py +1 -1
- metadata/generated/schema/security/credentials/basicAuth.py +1 -1
- metadata/generated/schema/security/credentials/bitbucketCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gcpCredentials.py +42 -22
- metadata/generated/schema/security/credentials/gcpExternalAccount.py +2 -2
- metadata/generated/schema/security/credentials/gcpValues.py +1 -1
- metadata/generated/schema/security/credentials/gitCredentials.py +1 -1
- metadata/generated/schema/security/credentials/githubCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gitlabCredentials.py +1 -1
- metadata/generated/schema/security/sasl/__init__.py +1 -1
- metadata/generated/schema/security/sasl/saslClientConfig.py +1 -1
- metadata/generated/schema/security/secrets/__init__.py +1 -1
- metadata/generated/schema/security/secrets/secretsManagerClientLoader.py +1 -1
- metadata/generated/schema/security/secrets/secretsManagerConfiguration.py +1 -1
- metadata/generated/schema/security/secrets/secretsManagerProvider.py +1 -1
- metadata/generated/schema/security/securityConfiguration.py +1 -1
- metadata/generated/schema/security/ssl/__init__.py +1 -1
- metadata/generated/schema/security/ssl/validateSSLClientConfig.py +1 -1
- metadata/generated/schema/security/ssl/verifySSLConfig.py +1 -1
- metadata/generated/schema/settings/__init__.py +1 -1
- metadata/generated/schema/settings/settings.py +4 -1
- metadata/generated/schema/system/__init__.py +1 -1
- metadata/generated/schema/system/entityError.py +1 -1
- metadata/generated/schema/system/eventPublisherJob.py +1 -1
- metadata/generated/schema/system/indexingError.py +1 -1
- metadata/generated/schema/system/limitsResponse.py +1 -1
- metadata/generated/schema/system/ui/__init__.py +1 -1
- metadata/generated/schema/system/ui/knowledgePanel.py +1 -1
- metadata/generated/schema/system/ui/navigationItem.py +38 -0
- metadata/generated/schema/system/ui/page.py +23 -15
- metadata/generated/schema/system/ui/tab.py +36 -0
- metadata/generated/schema/system/ui/uiCustomization.py +45 -0
- metadata/generated/schema/system/validationResponse.py +1 -1
- metadata/generated/schema/tests/__init__.py +1 -1
- metadata/generated/schema/tests/assigned.py +1 -1
- metadata/generated/schema/tests/basic.py +1 -1
- metadata/generated/schema/tests/customMetric.py +1 -1
- metadata/generated/schema/tests/dataQualityReport.py +1 -1
- metadata/generated/schema/tests/resolved.py +1 -1
- metadata/generated/schema/tests/testCase.py +4 -1
- metadata/generated/schema/tests/testCaseResolutionStatus.py +1 -1
- metadata/generated/schema/tests/testDefinition.py +1 -1
- metadata/generated/schema/tests/testSuite.py +1 -1
- metadata/generated/schema/type/__init__.py +1 -1
- metadata/generated/schema/type/apiSchema.py +1 -1
- metadata/generated/schema/type/assetCertification.py +1 -1
- metadata/generated/schema/type/auditLog.py +1 -1
- metadata/generated/schema/type/basic.py +1 -1
- metadata/generated/schema/type/bulkOperationResult.py +1 -1
- metadata/generated/schema/type/changeEvent.py +1 -1
- metadata/generated/schema/type/changeEventType.py +1 -1
- metadata/generated/schema/type/changeSummaryMap.py +37 -0
- metadata/generated/schema/type/collectionDescriptor.py +1 -1
- metadata/generated/schema/type/csvDocumentation.py +1 -1
- metadata/generated/schema/type/csvErrorType.py +1 -1
- metadata/generated/schema/type/csvFile.py +1 -1
- metadata/generated/schema/type/csvImportResult.py +1 -1
- metadata/generated/schema/type/customProperties/__init__.py +1 -1
- metadata/generated/schema/type/customProperties/complexTypes.py +1 -1
- metadata/generated/schema/type/customProperties/enumConfig.py +1 -1
- metadata/generated/schema/type/customProperties/tableConfig.py +1 -1
- metadata/generated/schema/type/customProperty.py +1 -1
- metadata/generated/schema/type/dailyCount.py +1 -1
- metadata/generated/schema/type/databaseConnectionConfig.py +1 -1
- metadata/generated/schema/type/entityHierarchy.py +1 -1
- metadata/generated/schema/type/entityHistory.py +6 -3
- metadata/generated/schema/type/entityLineage.py +27 -1
- metadata/generated/schema/type/entityReference.py +1 -1
- metadata/generated/schema/type/entityReferenceList.py +1 -1
- metadata/generated/schema/type/entityRelationship.py +1 -1
- metadata/generated/schema/type/entityUsage.py +1 -1
- metadata/generated/schema/type/filterPattern.py +1 -1
- metadata/generated/schema/type/function.py +1 -1
- metadata/generated/schema/type/include.py +1 -1
- metadata/generated/schema/type/jdbcConnection.py +1 -1
- metadata/generated/schema/type/lifeCycle.py +1 -1
- metadata/generated/schema/type/paging.py +1 -1
- metadata/generated/schema/type/profile.py +1 -1
- metadata/generated/schema/type/queryParserData.py +4 -1
- metadata/generated/schema/type/reaction.py +1 -1
- metadata/generated/schema/type/schedule.py +1 -1
- metadata/generated/schema/type/schema.py +1 -1
- metadata/generated/schema/type/tableQuery.py +4 -1
- metadata/generated/schema/type/tableUsageCount.py +18 -1
- metadata/generated/schema/type/tagLabel.py +1 -1
- metadata/generated/schema/type/usageDetails.py +1 -1
- metadata/generated/schema/type/usageRequest.py +1 -1
- metadata/generated/schema/type/votes.py +1 -1
- metadata/ingestion/api/topology_runner.py +3 -3
- metadata/ingestion/bulksink/metadata_usage.py +27 -6
- metadata/ingestion/lineage/masker.py +13 -2
- metadata/ingestion/models/custom_pydantic.py +44 -6
- metadata/ingestion/ometa/client.py +20 -0
- metadata/ingestion/ometa/mixins/domain_mixin.py +80 -0
- metadata/ingestion/ometa/mixins/es_mixin.py +42 -2
- metadata/ingestion/ometa/mixins/lineage_mixin.py +7 -7
- metadata/ingestion/ometa/mixins/patch_mixin.py +15 -5
- metadata/ingestion/ometa/mixins/pipeline_mixin.py +18 -0
- metadata/ingestion/ometa/mixins/query_mixin.py +43 -0
- metadata/ingestion/ometa/ometa_api.py +28 -3
- metadata/ingestion/ometa/routes.py +7 -0
- metadata/ingestion/ometa/utils.py +13 -0
- metadata/ingestion/processor/query_parser.py +1 -0
- metadata/ingestion/sink/metadata_rest.py +21 -1
- metadata/ingestion/source/dashboard/dashboard_service.py +9 -1
- metadata/ingestion/source/dashboard/domodashboard/metadata.py +3 -1
- metadata/ingestion/source/dashboard/lightdash/metadata.py +1 -1
- metadata/ingestion/source/dashboard/looker/metadata.py +8 -2
- metadata/ingestion/source/dashboard/metabase/client.py +65 -6
- metadata/ingestion/source/dashboard/metabase/metadata.py +88 -37
- metadata/ingestion/source/dashboard/metabase/models.py +2 -1
- metadata/ingestion/source/dashboard/microstrategy/metadata.py +3 -1
- metadata/ingestion/source/dashboard/mode/metadata.py +16 -9
- metadata/ingestion/source/dashboard/powerbi/client.py +89 -1
- metadata/ingestion/source/dashboard/powerbi/metadata.py +270 -258
- metadata/ingestion/source/dashboard/powerbi/models.py +25 -0
- metadata/ingestion/source/dashboard/qlikcloud/client.py +25 -2
- metadata/ingestion/source/dashboard/qlikcloud/metadata.py +69 -15
- metadata/ingestion/source/dashboard/qlikcloud/models.py +44 -1
- metadata/ingestion/source/dashboard/qliksense/metadata.py +26 -18
- metadata/ingestion/source/dashboard/quicksight/metadata.py +32 -29
- metadata/ingestion/source/dashboard/redash/metadata.py +12 -10
- metadata/ingestion/source/dashboard/sigma/metadata.py +12 -14
- metadata/ingestion/source/dashboard/superset/api_source.py +25 -26
- metadata/ingestion/source/dashboard/superset/db_source.py +22 -20
- metadata/ingestion/source/dashboard/superset/mixin.py +207 -53
- metadata/ingestion/source/dashboard/superset/models.py +3 -0
- metadata/ingestion/source/dashboard/superset/queries.py +7 -4
- metadata/ingestion/source/dashboard/superset/utils.py +36 -0
- metadata/ingestion/source/dashboard/tableau/client.py +56 -1
- metadata/ingestion/source/dashboard/tableau/metadata.py +243 -128
- metadata/ingestion/source/database/bigquery/helper.py +9 -1
- metadata/ingestion/source/database/bigquery/metadata.py +82 -10
- metadata/ingestion/source/database/bigquery/queries.py +2 -1
- metadata/ingestion/source/database/bigquery/query_parser.py +1 -0
- metadata/ingestion/source/database/bigtable/metadata.py +11 -3
- metadata/ingestion/source/database/cassandra/__init__.py +0 -0
- metadata/ingestion/source/database/cassandra/connection.py +138 -0
- metadata/ingestion/source/database/cassandra/helpers.py +100 -0
- metadata/ingestion/source/database/cassandra/metadata.py +138 -0
- metadata/ingestion/source/database/cassandra/queries.py +45 -0
- metadata/ingestion/source/database/cassandra/service_spec.py +10 -0
- metadata/ingestion/source/database/cockroach/__init__.py +0 -0
- metadata/ingestion/source/database/cockroach/connection.py +71 -0
- metadata/ingestion/source/database/cockroach/metadata.py +206 -0
- metadata/ingestion/source/database/cockroach/queries.py +90 -0
- metadata/ingestion/source/database/cockroach/service_spec.py +4 -0
- metadata/ingestion/source/database/common_db_source.py +9 -0
- metadata/ingestion/source/database/common_nosql_source.py +78 -29
- metadata/ingestion/source/database/common_pg_mappings.py +49 -0
- metadata/ingestion/source/database/couchbase/metadata.py +8 -2
- metadata/ingestion/source/database/databricks/metadata.py +8 -0
- metadata/ingestion/source/database/datalake/metadata.py +15 -9
- metadata/ingestion/source/database/db2/service_spec.py +4 -1
- metadata/ingestion/source/database/dbt/dbt_config.py +1 -0
- metadata/ingestion/source/database/dbt/dbt_utils.py +1 -1
- metadata/ingestion/source/database/dbt/metadata.py +5 -1
- metadata/ingestion/source/database/doris/metadata.py +7 -2
- metadata/ingestion/source/database/druid/service_spec.py +5 -1
- metadata/ingestion/source/database/dynamodb/metadata.py +6 -3
- metadata/ingestion/source/database/greenplum/metadata.py +6 -37
- metadata/ingestion/source/database/greenplum/service_spec.py +5 -1
- metadata/ingestion/source/database/hive/metastore_dialects/mysql/dialect.py +35 -13
- metadata/ingestion/source/database/hive/metastore_dialects/postgres/dialect.py +38 -14
- metadata/ingestion/source/database/hive/service_spec.py +5 -1
- metadata/ingestion/source/database/impala/service_spec.py +5 -1
- metadata/ingestion/source/database/life_cycle_query_mixin.py +11 -7
- metadata/ingestion/source/database/lineage_source.py +76 -2
- metadata/ingestion/source/database/mariadb/service_spec.py +9 -1
- metadata/ingestion/source/database/mongodb/metadata.py +8 -3
- metadata/ingestion/source/database/mssql/metadata.py +68 -2
- metadata/ingestion/source/database/mssql/queries.py +43 -0
- metadata/ingestion/source/database/mysql/utils.py +5 -3
- metadata/ingestion/source/database/oracle/connection.py +24 -2
- metadata/ingestion/source/database/oracle/metadata.py +36 -19
- metadata/ingestion/source/database/oracle/models.py +5 -4
- metadata/ingestion/source/database/oracle/queries.py +22 -1
- metadata/ingestion/source/database/pinotdb/service_spec.py +5 -1
- metadata/ingestion/source/database/postgres/metadata.py +32 -56
- metadata/ingestion/source/database/postgres/models.py +1 -0
- metadata/ingestion/source/database/postgres/queries.py +18 -1
- metadata/ingestion/source/database/query_parser_source.py +11 -6
- metadata/ingestion/source/database/sample_data.py +11 -0
- metadata/ingestion/source/database/sample_usage.py +2 -0
- metadata/ingestion/source/database/saphana/lineage.py +1 -1
- metadata/ingestion/source/database/singlestore/service_spec.py +6 -1
- metadata/ingestion/source/database/snowflake/connection.py +6 -0
- metadata/ingestion/source/database/snowflake/constants.py +48 -0
- metadata/ingestion/source/database/snowflake/metadata.py +114 -3
- metadata/ingestion/source/database/snowflake/models.py +3 -3
- metadata/ingestion/source/database/snowflake/queries.py +27 -1
- metadata/ingestion/source/database/snowflake/query_parser.py +2 -0
- metadata/ingestion/source/database/snowflake/utils.py +110 -26
- metadata/ingestion/source/database/sql_column_handler.py +95 -60
- metadata/ingestion/source/database/sqlite/service_spec.py +5 -1
- metadata/ingestion/source/database/teradata/service_spec.py +5 -1
- metadata/ingestion/source/database/trino/lineage.py +95 -0
- metadata/ingestion/source/database/unitycatalog/connection.py +23 -0
- metadata/ingestion/source/database/unitycatalog/lineage.py +2 -0
- metadata/ingestion/source/database/unitycatalog/metadata.py +2 -0
- metadata/ingestion/source/database/usage_source.py +2 -0
- metadata/ingestion/source/messaging/messaging_service.py +2 -0
- metadata/ingestion/source/metadata/alationsink/metadata.py +32 -18
- metadata/ingestion/source/metadata/amundsen/metadata.py +7 -4
- metadata/ingestion/source/metadata/atlas/metadata.py +2 -1
- metadata/ingestion/source/mlmodel/mlmodel_service.py +2 -0
- metadata/ingestion/source/pipeline/airflow/metadata.py +25 -0
- metadata/ingestion/source/pipeline/airflow/models.py +1 -0
- metadata/ingestion/source/pipeline/nifi/client.py +68 -74
- metadata/ingestion/source/pipeline/nifi/connection.py +1 -18
- metadata/ingestion/source/pipeline/openlineage/metadata.py +1 -0
- metadata/ingestion/source/pipeline/pipeline_service.py +121 -2
- metadata/ingestion/source/search/opensearch/connection.py +215 -0
- metadata/ingestion/source/search/opensearch/metadata.py +270 -0
- metadata/ingestion/source/search/opensearch/parser.py +71 -0
- metadata/ingestion/source/search/opensearch/service_spec.py +4 -0
- metadata/ingestion/source/search/search_service.py +2 -0
- metadata/ingestion/source/storage/storage_service.py +2 -0
- metadata/ingestion/stage/table_usage.py +53 -1
- metadata/profiler/interface/sqlalchemy/unity_catalog/sampler_interface.py +3 -4
- metadata/profiler/orm/converter/azuresql/converter.py +39 -0
- metadata/profiler/orm/converter/converter_registry.py +2 -0
- metadata/profiler/orm/functions/length.py +2 -0
- metadata/profiler/orm/functions/median.py +19 -0
- metadata/profiler/orm/functions/modulo.py +1 -0
- metadata/profiler/orm/functions/random_num.py +1 -0
- metadata/profiler/orm/functions/sum.py +1 -0
- metadata/profiler/orm/registry.py +2 -0
- metadata/profiler/processor/core.py +1 -0
- metadata/profiler/processor/metric_filter.py +1 -1
- metadata/profiler/source/database/base/profiler_source.py +1 -0
- metadata/profiler/source/fetcher/fetcher_strategy.py +4 -0
- metadata/sampler/config.py +1 -0
- metadata/sampler/models.py +3 -0
- metadata/sampler/nosql/sampler.py +4 -0
- metadata/sampler/pandas/sampler.py +1 -0
- metadata/sampler/partition.py +9 -2
- metadata/sampler/sampler_interface.py +0 -1
- metadata/sampler/sqlalchemy/azuresql/sampler.py +30 -3
- metadata/sampler/sqlalchemy/mssql/sampler.py +2 -1
- metadata/sampler/sqlalchemy/sampler.py +51 -42
- metadata/sampler/sqlalchemy/snowflake/sampler.py +2 -1
- metadata/sampler/sqlalchemy/trino/sampler.py +9 -8
- metadata/utils/constants.py +1 -0
- metadata/utils/credentials.py +25 -4
- metadata/utils/elasticsearch.py +4 -0
- metadata/utils/helpers.py +91 -0
- metadata/utils/logger.py +9 -0
- metadata/utils/ssl_manager.py +35 -0
- metadata/utils/tag_utils.py +72 -27
- metadata/workflow/classification.py +3 -0
- metadata/workflow/profiler.py +13 -5
- metadata/workflow/workflow_status_mixin.py +6 -0
- {openmetadata_ingestion-1.6.7.0.dist-info → openmetadata_ingestion-1.7.0.0rc1.dist-info}/METADATA +444 -381
- {openmetadata_ingestion-1.6.7.0.dist-info → openmetadata_ingestion-1.7.0.0rc1.dist-info}/RECORD +865 -796
- {openmetadata_ingestion-1.6.7.0.dist-info → openmetadata_ingestion-1.7.0.0rc1.dist-info}/LICENSE +0 -0
- {openmetadata_ingestion-1.6.7.0.dist-info → openmetadata_ingestion-1.7.0.0rc1.dist-info}/WHEEL +0 -0
- {openmetadata_ingestion-1.6.7.0.dist-info → openmetadata_ingestion-1.7.0.0rc1.dist-info}/entry_points.txt +0 -0
- {openmetadata_ingestion-1.6.7.0.dist-info → openmetadata_ingestion-1.7.0.0rc1.dist-info}/top_level.txt +0 -0
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
# limitations under the License.
|
|
11
11
|
|
|
12
12
|
"""
|
|
13
|
-
Module to define
|
|
13
|
+
Module to define overridden dialect methods
|
|
14
14
|
"""
|
|
15
|
-
|
|
15
|
+
import operator
|
|
16
|
+
from functools import reduce
|
|
16
17
|
from typing import Dict, Optional
|
|
17
18
|
|
|
18
19
|
import sqlalchemy.types as sqltypes
|
|
20
|
+
from snowflake.sqlalchemy.snowdialect import SnowflakeDialect
|
|
19
21
|
from sqlalchemy import exc as sa_exc
|
|
20
22
|
from sqlalchemy import util as sa_util
|
|
21
23
|
from sqlalchemy.engine import reflection
|
|
@@ -35,13 +37,17 @@ from metadata.ingestion.source.database.snowflake.queries import (
|
|
|
35
37
|
SNOWFLAKE_GET_EXTERNAL_TABLE_NAMES,
|
|
36
38
|
SNOWFLAKE_GET_MVIEW_NAMES,
|
|
37
39
|
SNOWFLAKE_GET_SCHEMA_COLUMNS,
|
|
40
|
+
SNOWFLAKE_GET_STREAM_DEFINITION,
|
|
41
|
+
SNOWFLAKE_GET_STREAM_NAMES,
|
|
38
42
|
SNOWFLAKE_GET_TABLE_DDL,
|
|
39
43
|
SNOWFLAKE_GET_TRANSIENT_NAMES,
|
|
44
|
+
SNOWFLAKE_GET_VIEW_DEFINITION,
|
|
40
45
|
SNOWFLAKE_GET_VIEW_NAMES,
|
|
41
46
|
SNOWFLAKE_GET_WITHOUT_TRANSIENT_TABLE_NAMES,
|
|
42
47
|
SNOWFLAKE_INCREMENTAL_GET_DYNAMIC_TABLE_NAMES,
|
|
43
48
|
SNOWFLAKE_INCREMENTAL_GET_EXTERNAL_TABLE_NAMES,
|
|
44
49
|
SNOWFLAKE_INCREMENTAL_GET_MVIEW_NAMES,
|
|
50
|
+
SNOWFLAKE_INCREMENTAL_GET_STREAM_NAMES,
|
|
45
51
|
SNOWFLAKE_INCREMENTAL_GET_TRANSIENT_NAMES,
|
|
46
52
|
SNOWFLAKE_INCREMENTAL_GET_VIEW_NAMES,
|
|
47
53
|
SNOWFLAKE_INCREMENTAL_GET_WITHOUT_TRANSIENT_TABLE_NAMES,
|
|
@@ -52,6 +58,7 @@ from metadata.utils.sqlalchemy_utils import (
|
|
|
52
58
|
get_table_comment_wrapper,
|
|
53
59
|
)
|
|
54
60
|
|
|
61
|
+
dialect = SnowflakeDialect()
|
|
55
62
|
Query = str
|
|
56
63
|
QueryMap = Dict[str, Query]
|
|
57
64
|
|
|
@@ -82,6 +89,29 @@ VIEW_QUERY_MAPS = {
|
|
|
82
89
|
},
|
|
83
90
|
}
|
|
84
91
|
|
|
92
|
+
STREAM_QUERY_MAPS = {
|
|
93
|
+
"full": {
|
|
94
|
+
"default": SNOWFLAKE_GET_STREAM_NAMES,
|
|
95
|
+
},
|
|
96
|
+
"incremental": {
|
|
97
|
+
"default": SNOWFLAKE_INCREMENTAL_GET_STREAM_NAMES,
|
|
98
|
+
},
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def _denormalize_quote_join(*idents):
|
|
103
|
+
ip = dialect.identifier_preparer
|
|
104
|
+
split_idents = reduce(
|
|
105
|
+
operator.add,
|
|
106
|
+
[ip._split_schema_by_dot(ids) for ids in idents if ids is not None],
|
|
107
|
+
)
|
|
108
|
+
quoted_identifiers = ip._quote_free_identifiers(*split_idents)
|
|
109
|
+
normalized_identifiers = (
|
|
110
|
+
item if item.startswith('"') and item.endswith('"') else f'"{item}"'
|
|
111
|
+
for item in quoted_identifiers
|
|
112
|
+
)
|
|
113
|
+
return ".".join(normalized_identifiers)
|
|
114
|
+
|
|
85
115
|
|
|
86
116
|
def _quoted_name(entity_name: Optional[str]) -> Optional[str]:
|
|
87
117
|
if entity_name:
|
|
@@ -133,6 +163,20 @@ def get_view_names_reflection(self, schema=None, **kw):
|
|
|
133
163
|
)
|
|
134
164
|
|
|
135
165
|
|
|
166
|
+
def get_stream_names_reflection(self, schema=None, **kw):
|
|
167
|
+
"""Return all stream names in `schema`.
|
|
168
|
+
|
|
169
|
+
:param schema: Optional, retrieve names from a non-default schema.
|
|
170
|
+
For special quoting, use :class:`.quoted_name`.
|
|
171
|
+
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
with self._operation_context() as conn: # pylint: disable=protected-access
|
|
175
|
+
return self.dialect.get_stream_names(
|
|
176
|
+
conn, schema, info_cache=self.info_cache, **kw
|
|
177
|
+
)
|
|
178
|
+
|
|
179
|
+
|
|
136
180
|
def _get_query_map(
|
|
137
181
|
incremental: Optional[IncrementalConfig], query_maps: Dict[str, QueryMap]
|
|
138
182
|
):
|
|
@@ -145,7 +189,7 @@ def _get_query_map(
|
|
|
145
189
|
def _get_query_parameters(
|
|
146
190
|
self, connection, schema: str, incremental: Optional[IncrementalConfig]
|
|
147
191
|
):
|
|
148
|
-
"""Returns the proper query parameters depending if the
|
|
192
|
+
"""Returns the proper query parameters depending if the extraction is Incremental or Full"""
|
|
149
193
|
parameters = {"schema": fqn.unquote_name(schema)}
|
|
150
194
|
|
|
151
195
|
if incremental and incremental.enabled:
|
|
@@ -208,6 +252,24 @@ def get_view_names(self, connection, schema, **kw):
|
|
|
208
252
|
return result
|
|
209
253
|
|
|
210
254
|
|
|
255
|
+
def get_stream_names(self, connection, schema, **kw):
|
|
256
|
+
incremental = kw.get("incremental")
|
|
257
|
+
|
|
258
|
+
queries = _get_query_map(incremental, STREAM_QUERY_MAPS)
|
|
259
|
+
parameters = _get_query_parameters(self, connection, schema, incremental)
|
|
260
|
+
|
|
261
|
+
query = queries["default"]
|
|
262
|
+
|
|
263
|
+
cursor = connection.execute(query.format(**parameters))
|
|
264
|
+
result = SnowflakeTableList(
|
|
265
|
+
tables=[
|
|
266
|
+
SnowflakeTable(name=self.normalize_name(row[1]), deleted=None)
|
|
267
|
+
for row in cursor
|
|
268
|
+
]
|
|
269
|
+
)
|
|
270
|
+
return result
|
|
271
|
+
|
|
272
|
+
|
|
211
273
|
@reflection.cache
|
|
212
274
|
def get_view_definition( # pylint: disable=unused-argument
|
|
213
275
|
self, connection, view_name, schema=None, **kw
|
|
@@ -216,12 +278,10 @@ def get_view_definition( # pylint: disable=unused-argument
|
|
|
216
278
|
Gets the view definition
|
|
217
279
|
"""
|
|
218
280
|
schema = schema or self.default_schema_name
|
|
219
|
-
if schema
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
else:
|
|
224
|
-
cursor = connection.execute(f"SELECT GET_DDL('VIEW','{view_name}') AS \"text\"")
|
|
281
|
+
view_name = f"{schema}.{view_name}" if schema else view_name
|
|
282
|
+
cursor = connection.execute(
|
|
283
|
+
SNOWFLAKE_GET_VIEW_DEFINITION.format(view_name=view_name)
|
|
284
|
+
)
|
|
225
285
|
n2i = self.__class__._map_name_to_idx(cursor) # pylint: disable=protected-access
|
|
226
286
|
try:
|
|
227
287
|
ret = cursor.fetchone()
|
|
@@ -232,6 +292,27 @@ def get_view_definition( # pylint: disable=unused-argument
|
|
|
232
292
|
return None
|
|
233
293
|
|
|
234
294
|
|
|
295
|
+
@reflection.cache
|
|
296
|
+
def get_stream_definition( # pylint: disable=unused-argument
|
|
297
|
+
self, connection, stream_name, schema=None, **kw
|
|
298
|
+
):
|
|
299
|
+
"""
|
|
300
|
+
Gets the stream definition
|
|
301
|
+
"""
|
|
302
|
+
schema = schema or self.default_schema_name
|
|
303
|
+
stream_name = f"{schema}.{stream_name}" if schema else stream_name
|
|
304
|
+
cursor = connection.execute(
|
|
305
|
+
SNOWFLAKE_GET_STREAM_DEFINITION.format(stream_name=stream_name)
|
|
306
|
+
)
|
|
307
|
+
try:
|
|
308
|
+
result = cursor.fetchone()
|
|
309
|
+
if result:
|
|
310
|
+
return result[0]
|
|
311
|
+
except Exception:
|
|
312
|
+
pass
|
|
313
|
+
return None
|
|
314
|
+
|
|
315
|
+
|
|
235
316
|
@reflection.cache
|
|
236
317
|
def get_table_comment(
|
|
237
318
|
self, connection, table_name, schema=None, **kw
|
|
@@ -256,17 +337,16 @@ def get_schema_columns(self, connection, schema, **kw):
|
|
|
256
337
|
None, as it is cacheable and is an unexpected return type for this function"""
|
|
257
338
|
ans = {}
|
|
258
339
|
current_database, _ = self._current_database_schema(connection, **kw)
|
|
259
|
-
full_schema_name =
|
|
260
|
-
current_database, fqn.quote_name(schema)
|
|
261
|
-
)
|
|
340
|
+
full_schema_name = _denormalize_quote_join(current_database, fqn.quote_name(schema))
|
|
262
341
|
try:
|
|
263
342
|
schema_primary_keys = self._get_schema_primary_keys(
|
|
264
343
|
connection, full_schema_name, **kw
|
|
265
344
|
)
|
|
345
|
+
# removing " " from schema name because schema name is in the WHERE clause of a query
|
|
346
|
+
table_schema = self.denormalize_name(fqn.unquote_name(schema))
|
|
347
|
+
table_schema = table_schema.lower() if schema.islower() else table_schema
|
|
266
348
|
result = connection.execute(
|
|
267
|
-
text(SNOWFLAKE_GET_SCHEMA_COLUMNS),
|
|
268
|
-
{"table_schema": self.denormalize_name(fqn.unquote_name(schema))}
|
|
269
|
-
# removing " " from schema name because schema name is in the WHERE clause of a query
|
|
349
|
+
text(SNOWFLAKE_GET_SCHEMA_COLUMNS), {"table_schema": table_schema}
|
|
270
350
|
)
|
|
271
351
|
|
|
272
352
|
except sa_exc.ProgrammingError as p_err:
|
|
@@ -300,7 +380,8 @@ def get_schema_columns(self, connection, schema, **kw):
|
|
|
300
380
|
sa_util.warn(
|
|
301
381
|
f"Did not recognize type '{coltype}' of column '{column_name}'"
|
|
302
382
|
)
|
|
303
|
-
col_type = sqltypes.
|
|
383
|
+
col_type = sqltypes.NullType
|
|
384
|
+
type_instance = col_type()
|
|
304
385
|
else:
|
|
305
386
|
if issubclass(col_type, FLOAT):
|
|
306
387
|
col_type_kw["precision"] = numeric_precision
|
|
@@ -310,8 +391,7 @@ def get_schema_columns(self, connection, schema, **kw):
|
|
|
310
391
|
col_type_kw["scale"] = numeric_scale
|
|
311
392
|
elif issubclass(col_type, (sqltypes.String, sqltypes.BINARY)):
|
|
312
393
|
col_type_kw["length"] = character_maximum_length
|
|
313
|
-
|
|
314
|
-
type_instance = col_type(**col_type_kw)
|
|
394
|
+
type_instance = col_type(**col_type_kw)
|
|
315
395
|
|
|
316
396
|
current_table_pks = schema_primary_keys.get(table_name)
|
|
317
397
|
|
|
@@ -330,11 +410,13 @@ def get_schema_columns(self, connection, schema, **kw):
|
|
|
330
410
|
),
|
|
331
411
|
"comment": comment,
|
|
332
412
|
"primary_key": (
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
413
|
+
(
|
|
414
|
+
column_name
|
|
415
|
+
in schema_primary_keys[table_name]["constrained_columns"]
|
|
416
|
+
)
|
|
417
|
+
if current_table_pks
|
|
418
|
+
else False
|
|
419
|
+
),
|
|
338
420
|
}
|
|
339
421
|
)
|
|
340
422
|
if is_identity == "YES":
|
|
@@ -362,9 +444,10 @@ def get_pk_constraint(self, connection, table_name, schema=None, **kw):
|
|
|
362
444
|
schema = schema or self.default_schema_name
|
|
363
445
|
schema = _quoted_name(entity_name=schema)
|
|
364
446
|
current_database, current_schema = self._current_database_schema(connection, **kw)
|
|
365
|
-
full_schema_name =
|
|
447
|
+
full_schema_name = _denormalize_quote_join(
|
|
366
448
|
current_database, schema if schema else current_schema
|
|
367
449
|
)
|
|
450
|
+
|
|
368
451
|
return self._get_schema_primary_keys(
|
|
369
452
|
connection, self.denormalize_name(full_schema_name), **kw
|
|
370
453
|
).get(table_name, {"constrained_columns": [], "name": None})
|
|
@@ -378,7 +461,7 @@ def get_foreign_keys(self, connection, table_name, schema=None, **kw):
|
|
|
378
461
|
schema = schema or self.default_schema_name
|
|
379
462
|
schema = _quoted_name(entity_name=schema)
|
|
380
463
|
current_database, current_schema = self._current_database_schema(connection, **kw)
|
|
381
|
-
full_schema_name =
|
|
464
|
+
full_schema_name = _denormalize_quote_join(
|
|
382
465
|
current_database, schema if schema else current_schema
|
|
383
466
|
)
|
|
384
467
|
|
|
@@ -452,9 +535,10 @@ def get_unique_constraints(self, connection, table_name, schema, **kw):
|
|
|
452
535
|
schema = schema or self.default_schema_name
|
|
453
536
|
schema = _quoted_name(entity_name=schema)
|
|
454
537
|
current_database, current_schema = self._current_database_schema(connection, **kw)
|
|
455
|
-
full_schema_name =
|
|
538
|
+
full_schema_name = _denormalize_quote_join(
|
|
456
539
|
current_database, schema if schema else current_schema
|
|
457
540
|
)
|
|
541
|
+
|
|
458
542
|
return self._get_schema_unique_constraints(
|
|
459
543
|
connection, self.denormalize_name(full_schema_name), **kw
|
|
460
544
|
).get(table_name, [])
|
|
@@ -24,6 +24,7 @@ from metadata.generated.schema.entity.data.table import (
|
|
|
24
24
|
ConstraintType,
|
|
25
25
|
DataType,
|
|
26
26
|
TableConstraint,
|
|
27
|
+
TableType,
|
|
27
28
|
)
|
|
28
29
|
from metadata.ingestion.source.database.column_type_parser import ColumnTypeParser
|
|
29
30
|
from metadata.utils.execution_time_tracker import calculate_execution_time
|
|
@@ -202,9 +203,30 @@ class SqlColumnHandlerMixin:
|
|
|
202
203
|
]
|
|
203
204
|
return Column(**parsed_string)
|
|
204
205
|
|
|
206
|
+
def _get_columns_internal(
|
|
207
|
+
self,
|
|
208
|
+
schema_name: str,
|
|
209
|
+
table_name: str,
|
|
210
|
+
db_name: str,
|
|
211
|
+
inspector: Inspector,
|
|
212
|
+
table_type: TableType = None,
|
|
213
|
+
):
|
|
214
|
+
"""
|
|
215
|
+
Get columns list
|
|
216
|
+
"""
|
|
217
|
+
|
|
218
|
+
return inspector.get_columns(
|
|
219
|
+
table_name, schema_name, table_type=table_type, db_name=db_name
|
|
220
|
+
)
|
|
221
|
+
|
|
205
222
|
@calculate_execution_time()
|
|
206
223
|
def get_columns_and_constraints( # pylint: disable=too-many-locals
|
|
207
|
-
self,
|
|
224
|
+
self,
|
|
225
|
+
schema_name: str,
|
|
226
|
+
table_name: str,
|
|
227
|
+
db_name: str,
|
|
228
|
+
inspector: Inspector,
|
|
229
|
+
table_type: TableType = None,
|
|
208
230
|
) -> Tuple[
|
|
209
231
|
Optional[List[Column]], Optional[List[TableConstraint]], Optional[List[Dict]]
|
|
210
232
|
]:
|
|
@@ -246,74 +268,87 @@ class SqlColumnHandlerMixin:
|
|
|
246
268
|
|
|
247
269
|
table_columns = []
|
|
248
270
|
|
|
249
|
-
columns =
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
271
|
+
columns = self._get_columns_internal(
|
|
272
|
+
schema_name, table_name, db_name, inspector, table_type
|
|
273
|
+
)
|
|
274
|
+
|
|
275
|
+
def process_column(column: dict):
|
|
276
|
+
(
|
|
277
|
+
data_type_display,
|
|
278
|
+
arr_data_type,
|
|
279
|
+
parsed_string,
|
|
280
|
+
) = self._process_col_type(column, schema_name)
|
|
281
|
+
self.process_additional_table_constraints(
|
|
282
|
+
column=column, table_constraints=table_constraints
|
|
283
|
+
)
|
|
284
|
+
if parsed_string is None:
|
|
285
|
+
col_type = ColumnTypeParser.get_column_type(column["type"])
|
|
286
|
+
col_constraint = self._get_column_constraints(
|
|
287
|
+
column, pk_columns, column_level_unique_constraints
|
|
288
|
+
)
|
|
289
|
+
col_data_length = self._check_col_length(col_type, column["type"])
|
|
290
|
+
precision = ColumnTypeParser.check_col_precision(
|
|
291
|
+
col_type, column["type"]
|
|
292
|
+
)
|
|
293
|
+
if col_type is None:
|
|
294
|
+
col_type = DataType.UNKNOWN.name
|
|
295
|
+
data_type_display = col_type.lower()
|
|
296
|
+
logger.warning(
|
|
297
|
+
f"Unknown type {repr(column['type'])}: {column['name']}"
|
|
298
|
+
)
|
|
299
|
+
data_type_display = self._get_display_datatype(
|
|
254
300
|
data_type_display,
|
|
301
|
+
col_type,
|
|
302
|
+
col_data_length,
|
|
255
303
|
arr_data_type,
|
|
256
|
-
|
|
257
|
-
) = self._process_col_type(column, schema_name)
|
|
258
|
-
self.process_additional_table_constraints(
|
|
259
|
-
column=column, table_constraints=table_constraints
|
|
304
|
+
precision,
|
|
260
305
|
)
|
|
261
|
-
if
|
|
262
|
-
col_type = ColumnTypeParser.get_column_type(column["type"])
|
|
263
|
-
col_constraint = self._get_column_constraints(
|
|
264
|
-
column, pk_columns, column_level_unique_constraints
|
|
265
|
-
)
|
|
266
|
-
col_data_length = self._check_col_length(col_type, column["type"])
|
|
267
|
-
precision = ColumnTypeParser.check_col_precision(
|
|
268
|
-
col_type, column["type"]
|
|
269
|
-
)
|
|
270
|
-
if col_type is None:
|
|
271
|
-
col_type = DataType.UNKNOWN.name
|
|
272
|
-
data_type_display = col_type.lower()
|
|
273
|
-
logger.warning(
|
|
274
|
-
f"Unknown type {repr(column['type'])}: {column['name']}"
|
|
275
|
-
)
|
|
276
|
-
data_type_display = self._get_display_datatype(
|
|
277
|
-
data_type_display,
|
|
278
|
-
col_type,
|
|
279
|
-
col_data_length,
|
|
280
|
-
arr_data_type,
|
|
281
|
-
precision,
|
|
282
|
-
)
|
|
283
|
-
col_data_length = 1 if col_data_length is None else col_data_length
|
|
306
|
+
col_data_length = 1 if col_data_length is None else col_data_length
|
|
284
307
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
308
|
+
om_column = Column(
|
|
309
|
+
name=ColumnName(
|
|
310
|
+
root=(
|
|
311
|
+
column["name"]
|
|
288
312
|
# Passing whitespace if column name is an empty string
|
|
289
313
|
# since pydantic doesn't accept empty string
|
|
290
314
|
if column["name"]
|
|
291
315
|
else " "
|
|
292
|
-
)
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
arrayDataType=arr_data_type,
|
|
302
|
-
ordinalPosition=column.get("ordinalPosition"),
|
|
303
|
-
)
|
|
304
|
-
if precision:
|
|
305
|
-
# Precision and scale must be integer values
|
|
306
|
-
om_column.precision = int(precision[0])
|
|
307
|
-
om_column.scale = int(precision[1])
|
|
308
|
-
|
|
309
|
-
else:
|
|
310
|
-
col_obj = self._process_complex_col_type(
|
|
311
|
-
column=column, parsed_string=parsed_string
|
|
312
|
-
)
|
|
313
|
-
om_column = col_obj
|
|
314
|
-
om_column.tags = self.get_column_tag_labels(
|
|
315
|
-
table_name=table_name, column=column
|
|
316
|
+
)
|
|
317
|
+
),
|
|
318
|
+
description=column.get("comment"),
|
|
319
|
+
dataType=col_type,
|
|
320
|
+
dataTypeDisplay=column.get("system_data_type", data_type_display),
|
|
321
|
+
dataLength=col_data_length,
|
|
322
|
+
constraint=col_constraint,
|
|
323
|
+
arrayDataType=arr_data_type,
|
|
324
|
+
ordinalPosition=column.get("ordinalPosition"),
|
|
316
325
|
)
|
|
326
|
+
if precision:
|
|
327
|
+
# Precision and scale must be integer values
|
|
328
|
+
om_column.precision = int(precision[0])
|
|
329
|
+
om_column.scale = int(precision[1])
|
|
330
|
+
else:
|
|
331
|
+
col_obj = self._process_complex_col_type(
|
|
332
|
+
column=column, parsed_string=parsed_string
|
|
333
|
+
)
|
|
334
|
+
om_column = col_obj
|
|
335
|
+
|
|
336
|
+
if column.get("children"):
|
|
337
|
+
# Prioritize source-provided children for column processing.
|
|
338
|
+
# If 'children' are directly provided in the source metadata,
|
|
339
|
+
# process and assign them to the output column, overriding any derived children.
|
|
340
|
+
# Currently, this is only used for BigQuery.
|
|
341
|
+
om_column.children = [
|
|
342
|
+
process_column(children) for children in column.get("children")
|
|
343
|
+
]
|
|
344
|
+
om_column.tags = self.get_column_tag_labels(
|
|
345
|
+
table_name=table_name, column=column
|
|
346
|
+
)
|
|
347
|
+
return om_column
|
|
348
|
+
|
|
349
|
+
for column in columns:
|
|
350
|
+
try:
|
|
351
|
+
om_column = process_column(column)
|
|
317
352
|
except Exception as exc:
|
|
318
353
|
logger.debug(traceback.format_exc())
|
|
319
354
|
logger.warning(
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
from metadata.ingestion.source.database.sqlite.lineage import SqliteLineageSource
|
|
1
2
|
from metadata.ingestion.source.database.sqlite.metadata import SqliteSource
|
|
2
3
|
from metadata.utils.service_spec.default import DefaultDatabaseSpec
|
|
3
4
|
|
|
4
|
-
ServiceSpec = DefaultDatabaseSpec(
|
|
5
|
+
ServiceSpec = DefaultDatabaseSpec(
|
|
6
|
+
metadata_source_class=SqliteSource,
|
|
7
|
+
lineage_source_class=SqliteLineageSource,
|
|
8
|
+
)
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
from metadata.ingestion.source.database.teradata.lineage import TeradataLineageSource
|
|
1
2
|
from metadata.ingestion.source.database.teradata.metadata import TeradataSource
|
|
2
3
|
from metadata.utils.service_spec.default import DefaultDatabaseSpec
|
|
3
4
|
|
|
4
|
-
ServiceSpec = DefaultDatabaseSpec(
|
|
5
|
+
ServiceSpec = DefaultDatabaseSpec(
|
|
6
|
+
metadata_source_class=TeradataSource,
|
|
7
|
+
lineage_source_class=TeradataLineageSource,
|
|
8
|
+
)
|
|
@@ -11,7 +11,16 @@
|
|
|
11
11
|
"""
|
|
12
12
|
Trino lineage module
|
|
13
13
|
"""
|
|
14
|
+
import traceback
|
|
15
|
+
from typing import Iterable, List
|
|
14
16
|
|
|
17
|
+
from metadata.generated.schema.api.lineage.addLineage import AddLineageRequest
|
|
18
|
+
from metadata.generated.schema.entity.data.database import Database
|
|
19
|
+
from metadata.generated.schema.entity.data.table import Table
|
|
20
|
+
from metadata.generated.schema.entity.services.ingestionPipelines.status import (
|
|
21
|
+
StackTraceError,
|
|
22
|
+
)
|
|
23
|
+
from metadata.ingestion.api.models import Either
|
|
15
24
|
from metadata.ingestion.source.database.lineage_source import LineageSource
|
|
16
25
|
from metadata.ingestion.source.database.trino.queries import TRINO_SQL_STATEMENT
|
|
17
26
|
from metadata.ingestion.source.database.trino.query_parser import TrinoQueryParserSource
|
|
@@ -32,3 +41,89 @@ class TrinoLineageSource(TrinoQueryParserSource, LineageSource):
|
|
|
32
41
|
OR lower("query") LIKE '%%merge%%'
|
|
33
42
|
)
|
|
34
43
|
"""
|
|
44
|
+
|
|
45
|
+
def get_cross_database_fqn_from_service_names(self) -> List[str]:
|
|
46
|
+
database_service_names = self.source_config.crossDatabaseServiceNames
|
|
47
|
+
return [
|
|
48
|
+
database.fullyQualifiedName.root
|
|
49
|
+
for service in database_service_names
|
|
50
|
+
for database in self.metadata.list_all_entities(
|
|
51
|
+
entity=Database, params={"service": service}
|
|
52
|
+
)
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
def check_same_table(self, table1: Table, table2: Table) -> bool:
|
|
56
|
+
"""
|
|
57
|
+
Method to check whether the table1 and table2 are same
|
|
58
|
+
"""
|
|
59
|
+
return table1.name.root == table2.name.root and {
|
|
60
|
+
column.name.root for column in table1.columns
|
|
61
|
+
} == {column.name.root for column in table2.columns}
|
|
62
|
+
|
|
63
|
+
def get_cross_database_lineage(
|
|
64
|
+
self, from_table: Table, to_table: Table
|
|
65
|
+
) -> Either[AddLineageRequest]:
|
|
66
|
+
"""
|
|
67
|
+
Method to return cross database lineage request object
|
|
68
|
+
"""
|
|
69
|
+
column_lineage = None
|
|
70
|
+
if from_table and from_table.columns and to_table and to_table.columns:
|
|
71
|
+
column_lineage = self.get_column_lineage(
|
|
72
|
+
from_table=from_table, to_table=to_table
|
|
73
|
+
)
|
|
74
|
+
return self.get_add_cross_database_lineage_request(
|
|
75
|
+
from_entity=from_table, to_entity=to_table, column_lineage=column_lineage
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
def yield_cross_database_lineage(self) -> Iterable[Either[AddLineageRequest]]:
|
|
79
|
+
try:
|
|
80
|
+
all_cross_database_fqns = self.get_cross_database_fqn_from_service_names()
|
|
81
|
+
cross_database_table_fqn_mapping = {}
|
|
82
|
+
|
|
83
|
+
# Get all databases for the specified Trino service
|
|
84
|
+
trino_databases = self.metadata.list_all_entities(
|
|
85
|
+
entity=Database, params={"service": self.config.serviceName}
|
|
86
|
+
)
|
|
87
|
+
for trino_database in trino_databases:
|
|
88
|
+
trino_database_fqn = trino_database.fullyQualifiedName.root
|
|
89
|
+
|
|
90
|
+
# Get all tables for the specified Trino database schema
|
|
91
|
+
trino_tables = self.metadata.list_all_entities(
|
|
92
|
+
entity=Table, params={"database": trino_database_fqn}
|
|
93
|
+
)
|
|
94
|
+
# NOTE: Currently, tables in system-defined schemas will also be checked for lineage.
|
|
95
|
+
for trino_table in trino_tables:
|
|
96
|
+
trino_table_fqn = trino_table.fullyQualifiedName.root
|
|
97
|
+
for cross_database_fqn in all_cross_database_fqns:
|
|
98
|
+
# Construct the FQN for cross-database tables
|
|
99
|
+
cross_database_table_fqn = trino_table_fqn.replace(
|
|
100
|
+
trino_database_fqn, cross_database_fqn
|
|
101
|
+
)
|
|
102
|
+
# Cache cross-database table against its FQN to avoid repeated API calls
|
|
103
|
+
cross_database_table = cross_database_table_fqn_mapping[
|
|
104
|
+
cross_database_table_fqn
|
|
105
|
+
] = cross_database_table_fqn_mapping.get(
|
|
106
|
+
cross_database_table_fqn,
|
|
107
|
+
self.metadata.get_by_name(
|
|
108
|
+
Table, fqn=cross_database_table_fqn
|
|
109
|
+
),
|
|
110
|
+
)
|
|
111
|
+
# Create cross database lineage request if both tables are same
|
|
112
|
+
if cross_database_table and self.check_same_table(
|
|
113
|
+
trino_table, cross_database_table
|
|
114
|
+
):
|
|
115
|
+
yield self.get_cross_database_lineage(
|
|
116
|
+
cross_database_table, trino_table
|
|
117
|
+
)
|
|
118
|
+
break
|
|
119
|
+
except Exception as exc:
|
|
120
|
+
yield Either(
|
|
121
|
+
left=StackTraceError(
|
|
122
|
+
name=f"{self.config.serviceName} Cross Database Lineage",
|
|
123
|
+
error=(
|
|
124
|
+
"Error to yield cross database lineage details "
|
|
125
|
+
f"service name [{self.config.serviceName}]: {exc}"
|
|
126
|
+
),
|
|
127
|
+
stackTrace=traceback.format_exc(),
|
|
128
|
+
)
|
|
129
|
+
)
|
|
@@ -16,6 +16,7 @@ from functools import partial
|
|
|
16
16
|
from typing import Optional
|
|
17
17
|
|
|
18
18
|
from databricks.sdk import WorkspaceClient
|
|
19
|
+
from sqlalchemy.engine import Engine
|
|
19
20
|
|
|
20
21
|
from metadata.generated.schema.entity.automations.workflow import (
|
|
21
22
|
Workflow as AutomationWorkflow,
|
|
@@ -26,6 +27,11 @@ from metadata.generated.schema.entity.services.connections.database.unityCatalog
|
|
|
26
27
|
from metadata.generated.schema.entity.services.connections.testConnectionResult import (
|
|
27
28
|
TestConnectionResult,
|
|
28
29
|
)
|
|
30
|
+
from metadata.ingestion.connections.builders import (
|
|
31
|
+
create_generic_db_connection,
|
|
32
|
+
get_connection_args_common,
|
|
33
|
+
init_empty_connection_arguments,
|
|
34
|
+
)
|
|
29
35
|
from metadata.ingestion.connections.test_connections import test_connection_steps
|
|
30
36
|
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
31
37
|
from metadata.ingestion.source.database.unitycatalog.client import UnityCatalogClient
|
|
@@ -53,6 +59,23 @@ def get_connection(connection: UnityCatalogConnection) -> WorkspaceClient:
|
|
|
53
59
|
)
|
|
54
60
|
|
|
55
61
|
|
|
62
|
+
def get_sqlalchemy_connection(connection: UnityCatalogConnection) -> Engine:
|
|
63
|
+
"""
|
|
64
|
+
Create sqlalchemy connection
|
|
65
|
+
"""
|
|
66
|
+
|
|
67
|
+
if connection.httpPath:
|
|
68
|
+
if not connection.connectionArguments:
|
|
69
|
+
connection.connectionArguments = init_empty_connection_arguments()
|
|
70
|
+
connection.connectionArguments.root["http_path"] = connection.httpPath
|
|
71
|
+
|
|
72
|
+
return create_generic_db_connection(
|
|
73
|
+
connection=connection,
|
|
74
|
+
get_connection_url_fn=get_connection_url,
|
|
75
|
+
get_connection_args_fn=get_connection_args_common,
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
|
|
56
79
|
def test_connection(
|
|
57
80
|
metadata: OpenMetadata,
|
|
58
81
|
connection: WorkspaceClient,
|
|
@@ -42,6 +42,7 @@ from metadata.ingestion.source.database.unitycatalog.client import UnityCatalogC
|
|
|
42
42
|
from metadata.ingestion.source.database.unitycatalog.connection import get_connection
|
|
43
43
|
from metadata.ingestion.source.database.unitycatalog.models import LineageTableStreams
|
|
44
44
|
from metadata.utils import fqn
|
|
45
|
+
from metadata.utils.helpers import retry_with_docker_host
|
|
45
46
|
from metadata.utils.logger import ingestion_logger
|
|
46
47
|
|
|
47
48
|
logger = ingestion_logger()
|
|
@@ -52,6 +53,7 @@ class UnitycatalogLineageSource(Source):
|
|
|
52
53
|
Lineage Unity Catalog Source
|
|
53
54
|
"""
|
|
54
55
|
|
|
56
|
+
@retry_with_docker_host()
|
|
55
57
|
def __init__(
|
|
56
58
|
self,
|
|
57
59
|
config: WorkflowSource,
|
|
@@ -75,6 +75,7 @@ from metadata.ingestion.source.database.unitycatalog.models import (
|
|
|
75
75
|
from metadata.ingestion.source.models import TableView
|
|
76
76
|
from metadata.utils import fqn
|
|
77
77
|
from metadata.utils.filters import filter_by_database, filter_by_schema, filter_by_table
|
|
78
|
+
from metadata.utils.helpers import retry_with_docker_host
|
|
78
79
|
from metadata.utils.logger import ingestion_logger
|
|
79
80
|
|
|
80
81
|
logger = ingestion_logger()
|
|
@@ -89,6 +90,7 @@ class UnitycatalogSource(
|
|
|
89
90
|
the unity catalog source
|
|
90
91
|
"""
|
|
91
92
|
|
|
93
|
+
@retry_with_docker_host()
|
|
92
94
|
def __init__(self, config: WorkflowSource, metadata: OpenMetadata):
|
|
93
95
|
super().__init__()
|
|
94
96
|
self.config = config
|
|
@@ -72,6 +72,7 @@ class UsageSource(QueryParserSource, ABC):
|
|
|
72
72
|
startTime=query_dict.get("start_time", ""),
|
|
73
73
|
endTime=query_dict.get("end_time", ""),
|
|
74
74
|
duration=query_dict.get("duration"),
|
|
75
|
+
cost=query_dict.get("cost"),
|
|
75
76
|
analysisDate=DateTime(analysis_date),
|
|
76
77
|
aborted=self.get_aborted_status(query_dict),
|
|
77
78
|
databaseName=self.get_database_name(query_dict),
|
|
@@ -142,6 +143,7 @@ class UsageSource(QueryParserSource, ABC):
|
|
|
142
143
|
duration=row.get("duration"),
|
|
143
144
|
serviceName=self.config.serviceName,
|
|
144
145
|
databaseSchema=self.get_schema_name(row),
|
|
146
|
+
cost=row.get("cost"),
|
|
145
147
|
)
|
|
146
148
|
)
|
|
147
149
|
except Exception as exc:
|