openmetadata-ingestion 1.9.13.0__py3-none-any.whl → 1.10.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of openmetadata-ingestion might be problematic. Click here for more details.
- metadata/cli/common.py +0 -1
- metadata/examples/workflows/bigquery.yaml +1 -0
- metadata/examples/workflows/databricks.yaml +9 -1
- metadata/examples/workflows/databricks_usage.yaml +7 -1
- metadata/examples/workflows/metabase.yaml +1 -0
- metadata/examples/workflows/unity_catalog.yaml +7 -1
- metadata/examples/workflows/unity_catalog_usage.yaml +7 -1
- metadata/generated/antlr/EntityLinkLexer.py +406 -432
- 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 +1 -1
- metadata/generated/schema/api/bulkAssets.py +1 -1
- metadata/generated/schema/api/classification/__init__.py +1 -1
- metadata/generated/schema/api/classification/createClassification.py +52 -1
- metadata/generated/schema/api/classification/createTag.py +29 -2
- metadata/generated/schema/api/classification/createTagWithRecognizers.py +67 -0
- metadata/generated/schema/api/classification/loadTags.py +1 -1
- metadata/generated/schema/api/configuration/__init__.py +3 -0
- metadata/generated/schema/api/configuration/rdfConfiguration.py +47 -0
- 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/createDataContract.py +33 -3
- metadata/generated/schema/api/data/createDatabase.py +1 -1
- metadata/generated/schema/api/data/createDatabaseSchema.py +1 -1
- metadata/generated/schema/api/data/createDirectory.py +1 -1
- metadata/generated/schema/api/data/createEntityProfile.py +1 -1
- metadata/generated/schema/api/data/createFile.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 +8 -1
- metadata/generated/schema/api/data/createMlModel.py +1 -1
- metadata/generated/schema/api/data/createPipeline.py +1 -1
- metadata/generated/schema/api/data/createQuery.py +1 -1
- metadata/generated/schema/api/data/createQueryCostRecord.py +1 -1
- metadata/generated/schema/api/data/createSearchIndex.py +1 -1
- metadata/generated/schema/api/data/createSpreadsheet.py +9 -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/createWorksheet.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/data/updateColumn.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 +7 -1
- metadata/generated/schema/api/domains/createDomain.py +1 -1
- metadata/generated/schema/api/entityRelationship/__init__.py +1 -1
- metadata/generated/schema/api/entityRelationship/entityRelationshipDirection.py +1 -1
- metadata/generated/schema/api/entityRelationship/esEntityRelationshipData.py +1 -1
- metadata/generated/schema/api/entityRelationship/relationshipRef.py +1 -1
- metadata/generated/schema/api/entityRelationship/searchEntityRelationshipRequest.py +1 -1
- metadata/generated/schema/api/entityRelationship/searchEntityRelationshipResult.py +1 -1
- metadata/generated/schema/api/entityRelationship/searchSchemaEntityRelationshipResult.py +1 -1
- metadata/generated/schema/api/events/__init__.py +3 -0
- metadata/generated/schema/api/events/createNotificationTemplate.py +61 -0
- metadata/generated/schema/api/events/notificationTemplateValidationRequest.py +30 -0
- metadata/generated/schema/api/events/notificationTemplateValidationResponse.py +36 -0
- metadata/generated/schema/api/feed/__init__.py +1 -1
- metadata/generated/schema/api/feed/closeTask.py +1 -1
- metadata/generated/schema/api/feed/createPost.py +1 -1
- metadata/generated/schema/api/feed/createSuggestion.py +1 -1
- metadata/generated/schema/api/feed/createThread.py +1 -1
- metadata/generated/schema/api/feed/resolveTask.py +1 -1
- metadata/generated/schema/api/feed/threadCount.py +1 -1
- metadata/generated/schema/api/governance/__init__.py +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/entityCountLineageRequest.py +66 -0
- metadata/generated/schema/api/lineage/esLineageData.py +1 -1
- metadata/generated/schema/api/lineage/lineageDirection.py +1 -1
- metadata/generated/schema/api/lineage/lineagePaginationInfo.py +57 -0
- metadata/generated/schema/api/lineage/nodeInformation.py +9 -1
- metadata/generated/schema/api/lineage/searchLineageRequest.py +1 -1
- metadata/generated/schema/api/lineage/searchLineageResult.py +1 -1
- metadata/generated/schema/api/mcp/__init__.py +1 -1
- metadata/generated/schema/api/mcp/mcpSearchResponse.py +1 -1
- metadata/generated/schema/api/mcp/mcpToolDefinition.py +1 -1
- metadata/generated/schema/api/openMetadataServerVersion.py +1 -1
- metadata/generated/schema/api/policies/__init__.py +1 -1
- metadata/generated/schema/api/policies/createPolicy.py +1 -1
- metadata/generated/schema/api/rdf/__init__.py +3 -0
- metadata/generated/schema/api/rdf/sparqlQuery.py +57 -0
- metadata/generated/schema/api/rdf/sparqlResponse.py +56 -0
- metadata/generated/schema/api/scim/__init__.py +1 -1
- metadata/generated/schema/api/scim/scimGroup.py +1 -1
- metadata/generated/schema/api/scim/scimPatchOp.py +1 -1
- metadata/generated/schema/api/scim/scimUser.py +1 -1
- metadata/generated/schema/api/search/__init__.py +1 -1
- metadata/generated/schema/api/search/previewSearchRequest.py +1 -1
- metadata/generated/schema/api/services/__init__.py +1 -1
- metadata/generated/schema/api/services/createApiService.py +1 -1
- metadata/generated/schema/api/services/createDashboardService.py +1 -1
- metadata/generated/schema/api/services/createDatabaseService.py +1 -1
- metadata/generated/schema/api/services/createDriveService.py +9 -2
- metadata/generated/schema/api/services/createMessagingService.py +1 -1
- metadata/generated/schema/api/services/createMetadataService.py +1 -1
- metadata/generated/schema/api/services/createMlModelService.py +1 -1
- metadata/generated/schema/api/services/createPipelineService.py +1 -1
- metadata/generated/schema/api/services/createSearchService.py +1 -1
- metadata/generated/schema/api/services/createSecurityService.py +1 -1
- metadata/generated/schema/api/services/createStorageService.py +1 -1
- metadata/generated/schema/api/services/ingestionPipelines/__init__.py +1 -1
- metadata/generated/schema/api/services/ingestionPipelines/createIngestionPipeline.py +8 -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 +5 -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 +5 -1
- metadata/generated/schema/api/tests/moveGlossaryTermRequest.py +1 -1
- metadata/generated/schema/api/validateGlossaryTagsRequest.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/supportToken.py +1 -1
- metadata/generated/schema/auth/tokenRefreshRequest.py +1 -1
- metadata/generated/schema/configuration/__init__.py +1 -1
- metadata/generated/schema/configuration/aiPlatformConfiguration.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 +1 -1
- metadata/generated/schema/configuration/cacheConfiguration.py +1 -1
- metadata/generated/schema/configuration/changeEventConfiguration.py +1 -1
- metadata/generated/schema/configuration/dataQualityConfiguration.py +1 -1
- metadata/generated/schema/configuration/elasticSearchConfiguration.py +2 -1
- metadata/generated/schema/configuration/entityRulesSettings.py +1 -1
- metadata/generated/schema/configuration/eventHandlerConfiguration.py +1 -1
- metadata/generated/schema/configuration/fernetConfiguration.py +1 -1
- metadata/generated/schema/configuration/jwtTokenConfiguration.py +1 -1
- metadata/generated/schema/configuration/kafkaEventConfiguration.py +1 -1
- metadata/generated/schema/configuration/ldapConfiguration.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/__init__.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/customTrustManagerConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/hostNameConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/jvmDefaultConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/trustAllConfig.py +1 -1
- metadata/generated/schema/configuration/ldapTrustStoreConfig/truststoreConfig.py +1 -1
- metadata/generated/schema/configuration/limitsConfiguration.py +1 -1
- metadata/generated/schema/configuration/lineageSettings.py +1 -1
- metadata/generated/schema/configuration/logStorageConfiguration.py +105 -0
- metadata/generated/schema/configuration/loginConfiguration.py +1 -1
- metadata/generated/schema/configuration/logoConfiguration.py +1 -1
- metadata/generated/schema/configuration/openMetadataBaseUrlConfiguration.py +1 -1
- metadata/generated/schema/configuration/opertionalConfiguration.py +1 -1
- metadata/generated/schema/configuration/opsConfig.py +1 -1
- metadata/generated/schema/configuration/pipelineServiceClientConfiguration.py +9 -2
- metadata/generated/schema/configuration/profilerConfiguration.py +2 -1
- metadata/generated/schema/configuration/searchSettings.py +7 -2
- metadata/generated/schema/configuration/securityConfiguration.py +26 -0
- 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 +1 -1
- metadata/generated/schema/dataInsight/__init__.py +1 -1
- metadata/generated/schema/dataInsight/custom/__init__.py +1 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChart.py +1 -1
- metadata/generated/schema/dataInsight/custom/dataInsightCustomChartResult.py +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 +1 -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 -1
- metadata/generated/schema/email/templateValidationReponse.py +1 -1
- metadata/generated/schema/entity/__init__.py +1 -1
- metadata/generated/schema/entity/applications/__init__.py +1 -1
- metadata/generated/schema/entity/applications/app.py +1 -1
- metadata/generated/schema/entity/applications/appExtension.py +1 -1
- metadata/generated/schema/entity/applications/appRunRecord.py +1 -1
- metadata/generated/schema/entity/applications/configuration/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/applicationConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addCustomProperties.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addDataProductAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addDescriptionAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addDomainAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addOwnerAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTagsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTermsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTestCaseAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/addTierAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/lineagePropagationAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/mlTaggingAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/propagationStopConfig.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 +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDescriptionAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeDomainAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeOwnerAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTagsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTermsAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTestCaseAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automator/removeTierAction.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/automatorAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/collateAIAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/metadataExporterAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/metadataExporterConnectors/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/metadataExporterConnectors/bigQueryConnection.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/metadataExporterConnectors/databricksConnection.py +18 -6
- metadata/generated/schema/entity/applications/configuration/external/metadataExporterConnectors/redshiftConnection.py +1 -1
- metadata/generated/schema/entity/applications/configuration/external/metadataExporterConnectors/snowflakeConnection.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/autoPilotAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/collateAIQualityAgentAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/collateAITierAgentAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dataInsightsReportAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/dataRetentionConfiguration.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/helloPipelinesConfiguration.py +1 -1
- metadata/generated/schema/entity/applications/configuration/internal/searchIndexingAppConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/external/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/external/collateAIAppPrivateConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/internal/__init__.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/internal/collateAITierAgentAppPrivateConfig.py +1 -1
- metadata/generated/schema/entity/applications/configuration/private/limits.py +1 -1
- 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 +1 -1
- metadata/generated/schema/entity/applications/marketplace/createAppMarketPlaceDefinitionReq.py +1 -1
- metadata/generated/schema/entity/applications/scheduledExecutionContext.py +1 -1
- metadata/generated/schema/entity/automations/__init__.py +1 -1
- metadata/generated/schema/entity/automations/queryRunnerRequest.py +46 -0
- metadata/generated/schema/entity/automations/response/__init__.py +3 -0
- metadata/generated/schema/entity/automations/response/queryRunnerResponse.py +51 -0
- metadata/generated/schema/entity/automations/testServiceConnection.py +3 -1
- metadata/generated/schema/entity/automations/testSparkEngineConnection.py +31 -0
- metadata/generated/schema/entity/automations/workflow.py +8 -2
- metadata/generated/schema/entity/bot.py +1 -1
- metadata/generated/schema/entity/classification/__init__.py +1 -1
- metadata/generated/schema/entity/classification/classification.py +57 -2
- metadata/generated/schema/entity/classification/tag.py +41 -3
- metadata/generated/schema/entity/data/__init__.py +1 -1
- metadata/generated/schema/entity/data/apiCollection.py +8 -1
- metadata/generated/schema/entity/data/apiEndpoint.py +6 -1
- metadata/generated/schema/entity/data/chart.py +7 -1
- metadata/generated/schema/entity/data/container.py +6 -1
- metadata/generated/schema/entity/data/dashboard.py +6 -1
- metadata/generated/schema/entity/data/dashboardDataModel.py +9 -1
- metadata/generated/schema/entity/data/dataContract.py +238 -2
- metadata/generated/schema/entity/data/database.py +6 -1
- metadata/generated/schema/entity/data/databaseSchema.py +8 -1
- metadata/generated/schema/entity/data/directory.py +6 -1
- metadata/generated/schema/entity/data/file.py +6 -1
- metadata/generated/schema/entity/data/glossary.py +6 -1
- metadata/generated/schema/entity/data/glossaryTerm.py +8 -12
- metadata/generated/schema/entity/data/metric.py +18 -1
- metadata/generated/schema/entity/data/mlmodel.py +6 -1
- metadata/generated/schema/entity/data/pipeline.py +136 -2
- metadata/generated/schema/entity/data/query.py +6 -1
- metadata/generated/schema/entity/data/queryCostRecord.py +1 -1
- metadata/generated/schema/entity/data/queryCostSearchResult.py +1 -1
- metadata/generated/schema/entity/data/report.py +6 -1
- metadata/generated/schema/entity/data/searchIndex.py +6 -1
- metadata/generated/schema/entity/data/spreadsheet.py +8 -4
- metadata/generated/schema/entity/data/storedProcedure.py +8 -1
- metadata/generated/schema/entity/data/table.py +95 -1
- metadata/generated/schema/entity/data/topic.py +6 -1
- metadata/generated/schema/entity/data/worksheet.py +6 -1
- metadata/generated/schema/entity/datacontract/__init__.py +1 -1
- metadata/generated/schema/entity/datacontract/dataContractResult.py +1 -1
- metadata/generated/schema/entity/datacontract/qualityValidation.py +1 -1
- metadata/generated/schema/entity/datacontract/schemaValidation.py +1 -1
- metadata/generated/schema/entity/datacontract/semanticsValidation.py +1 -1
- metadata/generated/schema/entity/datacontract/slaValidation.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 +153 -2
- metadata/generated/schema/entity/domains/domain.py +1 -1
- metadata/generated/schema/entity/events/__init__.py +1 -1
- metadata/generated/schema/entity/events/notificationTemplate.py +111 -0
- 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 +1 -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 +1 -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 +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/customDashboardConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/domoDashboardConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/grafanaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/lightdashConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/lookerConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/metabaseConnection.py +17 -4
- metadata/generated/schema/entity/services/connections/dashboard/microStrategyConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/modeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerBIConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerBIReportServerConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/bucketDetails.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/gcsConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/powerbi/s3Config.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/qlikCloudConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/qlikSenseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/quickSightConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/redashConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/sigmaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/supersetConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/tableauConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/dashboard/thoughtSpotConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/athenaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/azureSQLConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/bigQueryConnection.py +9 -1
- metadata/generated/schema/entity/services/connections/database/bigTableConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/cassandra/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/cassandra/cloudConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/cassandraConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/clickhouseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/cockroachConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/iamAuthConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/jwtAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/database/common/noConfigAuthenticationTypes.py +1 -1
- metadata/generated/schema/entity/services/connections/database/couchbaseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/customDatabaseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/databricks/__init__.py +3 -0
- metadata/generated/schema/entity/services/connections/database/databricks/azureAdSetup.py +37 -0
- metadata/generated/schema/entity/services/connections/database/databricks/databricksOAuth.py +30 -0
- metadata/generated/schema/entity/services/connections/database/databricks/personalAccessToken.py +23 -0
- metadata/generated/schema/entity/services/connections/database/databricksConnection.py +14 -6
- metadata/generated/schema/entity/services/connections/database/datalake/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/azureConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/gcsConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalake/s3Config.py +1 -1
- metadata/generated/schema/entity/services/connections/database/datalakeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/db2Connection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltaLakeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/metastoreConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/deltalake/storageConfig.py +1 -1
- metadata/generated/schema/entity/services/connections/database/domoDatabaseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/dorisConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/druidConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/dynamoDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/epicConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/exasolConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/glueConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/greenplumConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/hiveConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/dynamoDbCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/glueCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/hiveCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergCatalog.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/icebergFileSystem.py +1 -1
- metadata/generated/schema/entity/services/connections/database/iceberg/restCatalogConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/icebergConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/impalaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/mariaDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/mongoDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/mssqlConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/mysqlConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/oracleConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/pinotDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/postgresConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/prestoConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/redshiftConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/salesforceConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapErpConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaHDBConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHana/sapHanaSQLConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sapHanaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sasConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/serviceNowConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/singleStoreConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/snowflakeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/sqliteConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/ssasConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/synapseConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/teradataConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/timescaleConnection.py +162 -0
- metadata/generated/schema/entity/services/connections/database/trinoConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/database/unityCatalogConnection.py +14 -6
- metadata/generated/schema/entity/services/connections/database/verticaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/drive/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/drive/customDriveConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/drive/googleDriveConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/drive/sharePointConnection.py +34 -1
- metadata/generated/schema/entity/services/connections/messaging/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/customMessagingConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/kafkaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/kinesisConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/pulsarConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/redpandaConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/messaging/saslMechanismType.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/alationConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/alationSinkConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/amundsenConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/atlasConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/metadataESConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/metadata/openMetadataConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/customMlModelConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/mlflowConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/sageMakerConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/sklearnConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/mlmodel/vertexaiConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/airbyteConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/airflowConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/backendConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/customPipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/dagsterConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/databricksPipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/datafactoryConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/dbtCloudConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/domoPipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/fivetranConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/flinkConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/gluePipelineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/kafkaConnectConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/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 +1 -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 +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/openLineageConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/snowplowConnection.py +93 -0
- metadata/generated/schema/entity/services/connections/pipeline/sparkConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/splineConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/ssisConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/stitchConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/pipeline/wherescapeConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/search/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/customSearchConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/apiAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearch/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/search/elasticSearchConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/search/openSearchConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/security/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/security/ranger/__init__.py +1 -1
- metadata/generated/schema/entity/services/connections/security/ranger/basicAuth.py +1 -1
- metadata/generated/schema/entity/services/connections/security/rangerConnection.py +1 -1
- 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 +1 -1
- metadata/generated/schema/entity/services/connections/storage/customStorageConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/gcsConnection.py +1 -1
- metadata/generated/schema/entity/services/connections/storage/s3Connection.py +1 -1
- metadata/generated/schema/entity/services/connections/testConnectionDefinition.py +1 -1
- metadata/generated/schema/entity/services/connections/testConnectionResult.py +1 -1
- metadata/generated/schema/entity/services/dashboardService.py +1 -1
- metadata/generated/schema/entity/services/databaseService.py +4 -1
- metadata/generated/schema/entity/services/driveService.py +1 -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 +1 -1
- metadata/generated/schema/entity/services/ingestionPipelines/status.py +1 -1
- metadata/generated/schema/entity/services/messagingService.py +1 -1
- metadata/generated/schema/entity/services/metadataService.py +1 -1
- metadata/generated/schema/entity/services/mlmodelService.py +1 -1
- metadata/generated/schema/entity/services/pipelineService.py +4 -1
- metadata/generated/schema/entity/services/searchService.py +1 -1
- metadata/generated/schema/entity/services/securityService.py +1 -1
- metadata/generated/schema/entity/services/serviceType.py +1 -1
- metadata/generated/schema/entity/services/storageService.py +1 -1
- metadata/generated/schema/entity/teams/__init__.py +1 -1
- metadata/generated/schema/entity/teams/persona.py +1 -1
- metadata/generated/schema/entity/teams/role.py +1 -1
- metadata/generated/schema/entity/teams/team.py +1 -1
- metadata/generated/schema/entity/teams/teamHierarchy.py +1 -1
- metadata/generated/schema/entity/teams/user.py +1 -1
- metadata/generated/schema/entity/type.py +1 -1
- metadata/generated/schema/entity/utils/__init__.py +1 -1
- metadata/generated/schema/entity/utils/entitiesCount.py +1 -1
- metadata/generated/schema/entity/utils/servicesCount.py +1 -1
- metadata/generated/schema/entity/utils/supersetApiConnection.py +1 -1
- metadata/generated/schema/events/__init__.py +1 -1
- metadata/generated/schema/events/alertMetrics.py +1 -1
- metadata/generated/schema/events/api/__init__.py +1 -1
- metadata/generated/schema/events/api/createEventSubscription.py +1 -1
- metadata/generated/schema/events/api/eventSubscriptionDiagnosticInfo.py +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 +16 -1
- 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 +1 -1
- metadata/generated/schema/governance/workflows/elements/nodeSubType.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodeType.py +1 -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 +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/createAndRunIngestionPipelineTask.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/runAppTask.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/setEntityCertificationTask.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/automatedTask/setGlossaryTermStatusTask.py +11 -12
- metadata/generated/schema/governance/workflows/elements/nodes/endEvent/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/endEvent/endEvent.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/gateway/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/gateway/parallelGateway.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/startEvent/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/startEvent/startEvent.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/userTask/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/nodes/userTask/userApprovalTask.py +1 -1
- metadata/generated/schema/governance/workflows/elements/triggers/__init__.py +1 -1
- metadata/generated/schema/governance/workflows/elements/triggers/eventBasedEntityTrigger.py +1 -1
- metadata/generated/schema/governance/workflows/elements/triggers/noOpTrigger.py +1 -1
- metadata/generated/schema/governance/workflows/elements/triggers/periodicBatchEntityTrigger.py +1 -1
- metadata/generated/schema/governance/workflows/workflowDefinition.py +1 -1
- metadata/generated/schema/governance/workflows/workflowInstance.py +1 -1
- metadata/generated/schema/governance/workflows/workflowInstanceState.py +1 -1
- 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 +8 -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 +1 -1
- metadata/generated/schema/metadataIngestion/databaseServiceProfilerPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/databaseServiceQueryLineagePipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/databaseServiceQueryUsagePipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtAzureConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtBucketDetails.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtCloudConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtGCSConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtHttpConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtLocalConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/dbtconfig/dbtS3Config.py +1 -1
- metadata/generated/schema/metadataIngestion/driveServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/engine/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/engine/nativeEngineConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/engine/sparkEngineConfig.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 +29 -2
- metadata/generated/schema/metadataIngestion/pipelineServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/reverseIngestionPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/__init__.py +1 -1
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/descriptionConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/ownerConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/reverseingestionconfig/tagsConfig.py +1 -1
- metadata/generated/schema/metadataIngestion/searchServiceMetadataPipeline.py +1 -1
- metadata/generated/schema/metadataIngestion/securityServiceMetadataPipeline.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 +8 -1
- metadata/generated/schema/monitoring/__init__.py +1 -1
- metadata/generated/schema/monitoring/eventMonitorProvider.py +1 -1
- metadata/generated/schema/scim/__init__.py +1 -1
- metadata/generated/schema/scim/scimConfiguration.py +1 -1
- metadata/generated/schema/search/__init__.py +1 -1
- metadata/generated/schema/search/aggregationRequest.py +1 -1
- metadata/generated/schema/search/searchRequest.py +8 -1
- metadata/generated/schema/security/__init__.py +1 -1
- metadata/generated/schema/security/client/__init__.py +1 -1
- metadata/generated/schema/security/client/auth0SSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/azureSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/customOidcSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/googleSSOClientConfig.py +1 -1
- metadata/generated/schema/security/client/oidcClientConfig.py +6 -10
- 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 +6 -6
- metadata/generated/schema/security/credentials/__init__.py +1 -1
- metadata/generated/schema/security/credentials/accessTokenAuth.py +1 -1
- metadata/generated/schema/security/credentials/apiAccessTokenAuth.py +1 -1
- metadata/generated/schema/security/credentials/awsCredentials.py +1 -1
- metadata/generated/schema/security/credentials/azureCredentials.py +1 -1
- metadata/generated/schema/security/credentials/basicAuth.py +1 -1
- metadata/generated/schema/security/credentials/bitbucketCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gcpCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gcpExternalAccount.py +1 -1
- metadata/generated/schema/security/credentials/gcpValues.py +1 -1
- metadata/generated/schema/security/credentials/gitCredentials.py +1 -1
- metadata/generated/schema/security/credentials/githubCredentials.py +1 -1
- metadata/generated/schema/security/credentials/gitlabCredentials.py +1 -1
- metadata/generated/schema/security/credentials/kubernetesCredentials.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 +5 -2
- 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/securityValidationResponse.py +62 -0
- 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 +1 -1
- metadata/generated/schema/system/ui/page.py +5 -1
- metadata/generated/schema/system/ui/tab.py +1 -1
- metadata/generated/schema/system/ui/uiCustomization.py +1 -1
- metadata/generated/schema/system/validationResponse.py +8 -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 +26 -2
- metadata/generated/schema/tests/testCaseResolutionStatus.py +1 -1
- metadata/generated/schema/tests/testDefinition.py +1 -1
- metadata/generated/schema/tests/testSuite.py +5 -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 +9 -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 +1 -1
- metadata/generated/schema/type/collectionDescriptor.py +1 -1
- metadata/generated/schema/type/contextRecognizer.py +50 -0
- metadata/generated/schema/type/contractExecutionStatus.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/customRecognizer.py +39 -0
- metadata/generated/schema/type/dailyCount.py +1 -1
- metadata/generated/schema/type/databaseConnectionConfig.py +1 -1
- metadata/generated/schema/type/denyListRecognizer.py +37 -0
- metadata/generated/schema/type/entityHierarchy.py +1 -1
- metadata/generated/schema/type/entityHistory.py +1 -1
- metadata/generated/schema/type/entityLineage.py +1 -1
- metadata/generated/schema/type/entityProfile.py +1 -1
- metadata/generated/schema/type/entityReference.py +1 -1
- metadata/generated/schema/type/entityReferenceList.py +1 -1
- metadata/generated/schema/type/entityRelationship/__init__.py +1 -1
- metadata/generated/schema/type/entityRelationship/nodeInformation.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/layerPaging.py +1 -1
- metadata/generated/schema/type/lifeCycle.py +1 -1
- metadata/generated/schema/type/paging.py +1 -1
- metadata/generated/schema/type/patternRecognizer.py +39 -0
- metadata/generated/schema/type/personaPreferences.py +1 -1
- metadata/generated/schema/type/piiEntity.py +48 -0
- metadata/generated/schema/type/predefinedRecognizer.py +85 -0
- metadata/generated/schema/type/profile.py +1 -1
- metadata/generated/schema/type/queryParserData.py +1 -1
- metadata/generated/schema/type/reaction.py +1 -1
- metadata/generated/schema/type/recognizer.py +159 -0
- metadata/generated/schema/type/recognizerFeedback.py +120 -0
- metadata/generated/schema/type/recognizers/__init__.py +3 -0
- metadata/generated/schema/type/recognizers/patterns.py +29 -0
- metadata/generated/schema/type/recognizers/regexFlags.py +29 -0
- metadata/generated/schema/type/schedule.py +1 -1
- metadata/generated/schema/type/schema.py +1 -1
- metadata/generated/schema/type/status.py +16 -0
- metadata/generated/schema/type/tableQuery.py +1 -1
- metadata/generated/schema/type/tableUsageCount.py +1 -1
- metadata/generated/schema/type/tagLabel.py +8 -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/models/patch_request.py +2 -0
- metadata/ingestion/ometa/client.py +2 -2
- metadata/ingestion/ometa/mixins/csv_mixin.py +180 -0
- metadata/ingestion/ometa/mixins/ingestion_pipeline_mixin.py +26 -0
- metadata/ingestion/ometa/mixins/logs_mixin.py +336 -0
- metadata/ingestion/ometa/mixins/patch_mixin.py +23 -9
- metadata/ingestion/ometa/ometa_api.py +20 -1
- metadata/ingestion/ometa/routes.py +3 -0
- metadata/ingestion/source/dashboard/domodashboard/metadata.py +19 -9
- metadata/ingestion/source/dashboard/looker/metadata.py +4 -0
- metadata/ingestion/source/dashboard/metabase/client.py +31 -9
- metadata/ingestion/source/dashboard/metabase/metadata.py +4 -0
- metadata/ingestion/source/dashboard/powerbi/metadata.py +70 -226
- metadata/ingestion/source/dashboard/redash/metadata.py +4 -0
- metadata/ingestion/source/dashboard/sigma/metadata.py +4 -0
- metadata/ingestion/source/dashboard/superset/api_source.py +2 -0
- metadata/ingestion/source/dashboard/superset/db_source.py +2 -0
- metadata/ingestion/source/dashboard/superset/mixin.py +2 -0
- metadata/ingestion/source/dashboard/tableau/client.py +21 -10
- metadata/ingestion/source/dashboard/tableau/metadata.py +7 -1
- metadata/ingestion/source/database/bigquery/connection.py +4 -0
- metadata/ingestion/source/database/bigquery/metadata.py +39 -26
- metadata/ingestion/source/database/column_type_parser.py +1 -1
- metadata/ingestion/source/database/common_pg_mappings.py +7 -0
- metadata/ingestion/source/database/databricks/auth.py +99 -0
- metadata/ingestion/source/database/databricks/client.py +7 -2
- metadata/ingestion/source/database/databricks/connection.py +63 -5
- metadata/ingestion/source/database/databricks/queries.py +61 -0
- metadata/ingestion/source/database/mariadb/metadata.py +86 -1
- metadata/ingestion/source/database/mariadb/models.py +36 -0
- metadata/ingestion/source/database/mariadb/queries.py +43 -0
- metadata/ingestion/source/database/oracle/connection.py +4 -0
- metadata/ingestion/source/database/oracle/queries.py +18 -0
- metadata/ingestion/source/database/postgres/connection.py +6 -0
- metadata/ingestion/source/database/postgres/queries.py +22 -0
- metadata/ingestion/source/database/sample_data.py +24 -8
- metadata/ingestion/source/database/snowflake/lineage.py +21 -44
- metadata/ingestion/source/database/snowflake/queries.py +0 -2
- metadata/ingestion/source/database/snowflake/query_parser.py +2 -12
- metadata/ingestion/source/database/snowflake/usage.py +0 -97
- metadata/ingestion/source/database/timescale/__init__.py +3 -0
- metadata/ingestion/source/database/timescale/connection.py +103 -0
- metadata/ingestion/source/database/timescale/lineage.py +124 -0
- metadata/ingestion/source/database/timescale/metadata.py +228 -0
- metadata/ingestion/source/database/timescale/models.py +60 -0
- metadata/ingestion/source/database/timescale/queries.py +96 -0
- metadata/ingestion/source/database/timescale/query_parser.py +106 -0
- metadata/ingestion/source/database/timescale/service_spec.py +12 -0
- metadata/ingestion/source/database/timescale/usage.py +43 -0
- metadata/ingestion/source/database/timescale/utils.py +545 -0
- metadata/ingestion/source/database/unitycatalog/client.py +35 -1
- metadata/ingestion/source/database/unitycatalog/connection.py +36 -4
- metadata/ingestion/source/database/unitycatalog/lineage.py +5 -179
- metadata/ingestion/source/database/unitycatalog/models.py +2 -18
- metadata/ingestion/source/messaging/kafka/connection.py +13 -4
- metadata/ingestion/source/metadata/amundsen/client.py +6 -6
- metadata/ingestion/source/mlmodel/mlmodel_service.py +75 -1
- metadata/ingestion/source/pipeline/kafkaconnect/client.py +30 -318
- metadata/ingestion/source/pipeline/kafkaconnect/metadata.py +16 -546
- metadata/ingestion/source/pipeline/kafkaconnect/models.py +1 -32
- metadata/ingestion/source/search/elasticsearch/connection.py +1 -1
- metadata/ingestion/source/storage/s3/metadata.py +2 -9
- metadata/parsers/json_schema_parser.py +1 -41
- metadata/pii/algorithms/classifiers.py +63 -1
- metadata/pii/algorithms/presidio_recognizer_factory.py +302 -0
- metadata/pii/algorithms/presidio_utils.py +38 -10
- metadata/pii/algorithms/utils.py +4 -0
- metadata/pii/base_processor.py +2 -1
- metadata/pii/processor.py +10 -4
- metadata/pii/processor_factory.py +28 -0
- metadata/pii/scanners/custom_ner_scanner.py +290 -0
- metadata/pii/tag_analyzer.py +124 -0
- metadata/pii/tag_processor.py +100 -0
- metadata/profiler/metrics/hybrid/cardinality_distribution.py +232 -0
- metadata/profiler/metrics/hybrid/histogram.py +1 -1
- metadata/profiler/metrics/registry.py +4 -0
- metadata/profiler/orm/converter/converter_registry.py +2 -0
- metadata/profiler/orm/converter/trino/__init__.py +14 -0
- metadata/profiler/orm/converter/trino/converter.py +39 -0
- metadata/profiler/orm/functions/conn_test.py +5 -0
- metadata/profiler/orm/registry.py +6 -0
- metadata/profiler/orm/types/__init__.py +10 -0
- metadata/profiler/orm/types/trino.py +70 -0
- metadata/profiler/processor/default.py +1 -0
- metadata/sdk/__init__.py +188 -0
- metadata/sdk/api/__init__.py +7 -0
- metadata/sdk/api/lineage.py +421 -0
- metadata/sdk/api/search.py +382 -0
- metadata/sdk/client.py +91 -0
- metadata/sdk/config.py +121 -0
- metadata/sdk/entities/__init__.py +64 -0
- metadata/sdk/entities/apicollections.py +19 -0
- metadata/sdk/entities/apiendpoints.py +19 -0
- metadata/sdk/entities/base.py +487 -0
- metadata/sdk/entities/charts.py +17 -0
- metadata/sdk/entities/classifications.py +21 -0
- metadata/sdk/entities/containers.py +17 -0
- metadata/sdk/entities/custom_properties.py +144 -0
- metadata/sdk/entities/dashboard_services.py +18 -0
- metadata/sdk/entities/dashboarddatamodels.py +21 -0
- metadata/sdk/entities/dashboards.py +17 -0
- metadata/sdk/entities/database_services.py +18 -0
- metadata/sdk/entities/databases.py +17 -0
- metadata/sdk/entities/databaseschemas.py +19 -0
- metadata/sdk/entities/datacontracts.py +19 -0
- metadata/sdk/entities/dataproducts.py +19 -0
- metadata/sdk/entities/domains.py +17 -0
- metadata/sdk/entities/glossaries.py +17 -0
- metadata/sdk/entities/glossary_terms.py +18 -0
- metadata/sdk/entities/glossaryterms.py +19 -0
- metadata/sdk/entities/metrics.py +49 -0
- metadata/sdk/entities/mlmodels.py +17 -0
- metadata/sdk/entities/pipelines.py +17 -0
- metadata/sdk/entities/queries.py +17 -0
- metadata/sdk/entities/searchindexes.py +19 -0
- metadata/sdk/entities/storedprocedures.py +19 -0
- metadata/sdk/entities/tables.py +68 -0
- metadata/sdk/entities/tags.py +17 -0
- metadata/sdk/entities/teams.py +17 -0
- metadata/sdk/entities/testcases.py +17 -0
- metadata/sdk/entities/testdefinitions.py +19 -0
- metadata/sdk/entities/testsuites.py +17 -0
- metadata/sdk/entities/users.py +17 -0
- metadata/sdk/examples/builder_end_to_end.py +387 -0
- metadata/sdk/types.py +15 -0
- metadata/utils/deprecation.py +9 -6
- metadata/utils/elasticsearch.py +3 -0
- metadata/utils/fqn.py +18 -2
- metadata/utils/importer.py +3 -2
- metadata/utils/logger.py +10 -0
- metadata/utils/sqa_utils.py +3 -0
- metadata/utils/streamable_logger.py +525 -0
- metadata/workflow/base.py +26 -1
- metadata/workflow/classification.py +2 -2
- metadata/workflow/workflow_status_mixin.py +1 -1
- {openmetadata_ingestion-1.9.13.0.dist-info → openmetadata_ingestion-1.10.1.0.dist-info}/METADATA +549 -549
- {openmetadata_ingestion-1.9.13.0.dist-info → openmetadata_ingestion-1.10.1.0.dist-info}/RECORD +956 -855
- metadata/examples/workflows/confluent_cdc.yaml +0 -70
- metadata/examples/workflows/confluent_cdc_cloud.yaml +0 -86
- metadata/examples/workflows/confluent_cdc_local.yaml +0 -120
- metadata/examples/workflows/my_confluent_cloud.yaml +0 -49
- {openmetadata_ingestion-1.9.13.0.dist-info → openmetadata_ingestion-1.10.1.0.dist-info}/LICENSE +0 -0
- {openmetadata_ingestion-1.9.13.0.dist-info → openmetadata_ingestion-1.10.1.0.dist-info}/WHEEL +0 -0
- {openmetadata_ingestion-1.9.13.0.dist-info → openmetadata_ingestion-1.10.1.0.dist-info}/entry_points.txt +0 -0
- {openmetadata_ingestion-1.9.13.0.dist-info → openmetadata_ingestion-1.10.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Copyright 2025 Collate
|
|
2
|
+
# Licensed under the Collate Community License, Version 1.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
# https://github.com/open-metadata/OpenMetadata/blob/main/ingestion/LICENSE
|
|
6
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
8
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
# See the License for the specific language governing permissions and
|
|
10
|
+
# limitations under the License.
|
|
11
|
+
"""
|
|
12
|
+
Postgres Query parser module
|
|
13
|
+
"""
|
|
14
|
+
import traceback
|
|
15
|
+
from abc import ABC
|
|
16
|
+
from typing import Iterable, Optional
|
|
17
|
+
|
|
18
|
+
from sqlalchemy.engine.base import Engine
|
|
19
|
+
|
|
20
|
+
from metadata.generated.schema.entity.services.connections.database.postgresConnection import (
|
|
21
|
+
PostgresConnection,
|
|
22
|
+
)
|
|
23
|
+
from metadata.generated.schema.metadataIngestion.workflow import (
|
|
24
|
+
Source as WorkflowSource,
|
|
25
|
+
)
|
|
26
|
+
from metadata.generated.schema.type.tableQuery import TableQuery
|
|
27
|
+
from metadata.ingestion.api.steps import InvalidSourceException
|
|
28
|
+
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
29
|
+
from metadata.ingestion.source.connections import get_connection
|
|
30
|
+
from metadata.ingestion.source.database.postgres.queries import POSTGRES_GET_DATABASE
|
|
31
|
+
from metadata.ingestion.source.database.postgres.utils import (
|
|
32
|
+
get_postgres_time_column_name,
|
|
33
|
+
)
|
|
34
|
+
from metadata.ingestion.source.database.query_parser_source import QueryParserSource
|
|
35
|
+
from metadata.utils.helpers import get_start_and_end
|
|
36
|
+
from metadata.utils.logger import ingestion_logger
|
|
37
|
+
|
|
38
|
+
logger = ingestion_logger()
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class PostgresQueryParserSource(QueryParserSource, ABC):
|
|
42
|
+
"""
|
|
43
|
+
Postgres base for Usage and Lineage
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
filters: str
|
|
47
|
+
|
|
48
|
+
def __init__(self, config: WorkflowSource, metadata: OpenMetadata):
|
|
49
|
+
super().__init__(config, metadata)
|
|
50
|
+
# Postgres does not allow retrieval of data older than 7 days
|
|
51
|
+
# Update start and end based on this
|
|
52
|
+
duration = min(self.source_config.queryLogDuration, 6)
|
|
53
|
+
self.start, self.end = get_start_and_end(duration)
|
|
54
|
+
|
|
55
|
+
@classmethod
|
|
56
|
+
def create(
|
|
57
|
+
cls, config_dict, metadata: OpenMetadata, pipeline_name: Optional[str] = None
|
|
58
|
+
):
|
|
59
|
+
config: WorkflowSource = WorkflowSource.model_validate(config_dict)
|
|
60
|
+
connection: PostgresConnection = config.serviceConnection.root.config
|
|
61
|
+
if not isinstance(connection, PostgresConnection):
|
|
62
|
+
raise InvalidSourceException(
|
|
63
|
+
f"Expected PostgresConnection, but got {connection}"
|
|
64
|
+
)
|
|
65
|
+
return cls(config, metadata)
|
|
66
|
+
|
|
67
|
+
def get_sql_statement(self, *_) -> str:
|
|
68
|
+
"""
|
|
69
|
+
returns sql statement to fetch query logs.
|
|
70
|
+
We don't use any start or end times as they are not available
|
|
71
|
+
"""
|
|
72
|
+
return self.sql_stmt.format(
|
|
73
|
+
result_limit=self.config.sourceConfig.config.resultLimit,
|
|
74
|
+
filters=self.get_filters(),
|
|
75
|
+
time_column_name=get_postgres_time_column_name(engine=self.engine),
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
# pylint: disable=no-member
|
|
79
|
+
def get_table_query(self) -> Iterable[TableQuery]:
|
|
80
|
+
try:
|
|
81
|
+
if self.config.sourceConfig.config.queryLogFilePath:
|
|
82
|
+
yield from super().yield_table_queries_from_logs()
|
|
83
|
+
else:
|
|
84
|
+
database = self.config.serviceConnection.root.config.database
|
|
85
|
+
if database:
|
|
86
|
+
self.engine: Engine = get_connection(self.service_connection)
|
|
87
|
+
yield from self.process_table_query()
|
|
88
|
+
else:
|
|
89
|
+
results = self.engine.execute(POSTGRES_GET_DATABASE)
|
|
90
|
+
for res in results:
|
|
91
|
+
row = list(res)
|
|
92
|
+
logger.info(f"Ingesting from database: {row[0]}")
|
|
93
|
+
self.config.serviceConnection.root.config.database = row[0]
|
|
94
|
+
self.engine = get_connection(self.service_connection)
|
|
95
|
+
yield from self.process_table_query()
|
|
96
|
+
|
|
97
|
+
except Exception as err:
|
|
98
|
+
logger.error(f"Source usage processing error - {err}")
|
|
99
|
+
logger.debug(traceback.format_exc())
|
|
100
|
+
|
|
101
|
+
@staticmethod
|
|
102
|
+
def get_database_name(data: dict) -> str:
|
|
103
|
+
"""
|
|
104
|
+
Method to get database name
|
|
105
|
+
"""
|
|
106
|
+
return data.get("database_name")
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from metadata.ingestion.source.database.timescale.connection import TimescaleConnection
|
|
2
|
+
from metadata.ingestion.source.database.timescale.lineage import TimescaleLineageSource
|
|
3
|
+
from metadata.ingestion.source.database.timescale.metadata import TimescaleSource
|
|
4
|
+
from metadata.ingestion.source.database.timescale.usage import TimescaleUsageSource
|
|
5
|
+
from metadata.utils.service_spec.default import DefaultDatabaseSpec
|
|
6
|
+
|
|
7
|
+
ServiceSpec = DefaultDatabaseSpec(
|
|
8
|
+
metadata_source_class=TimescaleSource,
|
|
9
|
+
lineage_source_class=TimescaleLineageSource,
|
|
10
|
+
usage_source_class=TimescaleUsageSource,
|
|
11
|
+
connection_class=TimescaleConnection,
|
|
12
|
+
)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Copyright 2025 Collate
|
|
2
|
+
# Licensed under the Collate Community License, Version 1.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
# https://github.com/open-metadata/OpenMetadata/blob/main/ingestion/LICENSE
|
|
6
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
8
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
# See the License for the specific language governing permissions and
|
|
10
|
+
# limitations under the License.
|
|
11
|
+
"""
|
|
12
|
+
TimescaleDB usage module
|
|
13
|
+
"""
|
|
14
|
+
from typing import Optional
|
|
15
|
+
|
|
16
|
+
from metadata.generated.schema.entity.services.connections.database.timescaleConnection import (
|
|
17
|
+
TimescaleConnection,
|
|
18
|
+
)
|
|
19
|
+
from metadata.generated.schema.metadataIngestion.workflow import (
|
|
20
|
+
Source as WorkflowSource,
|
|
21
|
+
)
|
|
22
|
+
from metadata.ingestion.api.steps import InvalidSourceException
|
|
23
|
+
from metadata.ingestion.ometa.ometa_api import OpenMetadata
|
|
24
|
+
from metadata.ingestion.source.database.postgres.usage import PostgresUsageSource
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class TimescaleUsageSource(PostgresUsageSource):
|
|
28
|
+
"""
|
|
29
|
+
TimescaleDB usage source that extends PostgreSQL usage
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def create(
|
|
34
|
+
cls, config_dict, metadata: OpenMetadata, pipeline_name: Optional[str] = None
|
|
35
|
+
):
|
|
36
|
+
"""Create TimescaleUsageSource"""
|
|
37
|
+
config: WorkflowSource = WorkflowSource.model_validate(config_dict)
|
|
38
|
+
connection = config.serviceConnection.root.config
|
|
39
|
+
if not isinstance(connection, TimescaleConnection):
|
|
40
|
+
raise InvalidSourceException(
|
|
41
|
+
f"Expected TimescaleConnection, but got {connection}"
|
|
42
|
+
)
|
|
43
|
+
return cls(config, metadata)
|
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
# Copyright 2025 Collate
|
|
2
|
+
# Licensed under the Collate Community License, Version 1.0 (the "License");
|
|
3
|
+
# you may not use this file except in compliance with the License.
|
|
4
|
+
# You may obtain a copy of the License at
|
|
5
|
+
# https://github.com/open-metadata/OpenMetadata/blob/main/ingestion/LICENSE
|
|
6
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
8
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
# See the License for the specific language governing permissions and
|
|
10
|
+
# limitations under the License.
|
|
11
|
+
# pylint: disable=protected-access
|
|
12
|
+
|
|
13
|
+
"""
|
|
14
|
+
Postgres SQLAlchemy util methods
|
|
15
|
+
"""
|
|
16
|
+
import re
|
|
17
|
+
import traceback
|
|
18
|
+
from typing import Dict, Optional, Tuple
|
|
19
|
+
|
|
20
|
+
from packaging import version
|
|
21
|
+
from sqlalchemy import sql, util
|
|
22
|
+
from sqlalchemy.dialects.postgresql.base import ENUM
|
|
23
|
+
from sqlalchemy.engine import reflection
|
|
24
|
+
from sqlalchemy.sql import sqltypes
|
|
25
|
+
|
|
26
|
+
from metadata.ingestion.source.database.postgres.queries import (
|
|
27
|
+
POSTGRES_COL_IDENTITY,
|
|
28
|
+
POSTGRES_FETCH_FK,
|
|
29
|
+
POSTGRES_GET_SCHEMA_NAMES,
|
|
30
|
+
POSTGRES_GET_SERVER_VERSION,
|
|
31
|
+
POSTGRES_SQL_COLUMNS,
|
|
32
|
+
POSTGRES_TABLE_COMMENTS,
|
|
33
|
+
POSTGRES_TABLE_OWNERS,
|
|
34
|
+
POSTGRES_VIEW_DEFINITIONS,
|
|
35
|
+
)
|
|
36
|
+
from metadata.utils.logger import utils_logger
|
|
37
|
+
from metadata.utils.sqlalchemy_utils import (
|
|
38
|
+
get_table_comment_wrapper,
|
|
39
|
+
get_table_owner_wrapper,
|
|
40
|
+
get_view_definition_wrapper,
|
|
41
|
+
)
|
|
42
|
+
|
|
43
|
+
logger = utils_logger()
|
|
44
|
+
|
|
45
|
+
OLD_POSTGRES_VERSION = "130000"
|
|
46
|
+
|
|
47
|
+
# pylint: disable=unused-argument,too-many-arguments,invalid-name,too-many-locals
|
|
48
|
+
def get_etable_owner(self, connection, table_name=None, schema=None):
|
|
49
|
+
"""Return all owners.
|
|
50
|
+
|
|
51
|
+
:param schema: Optional, retrieve names from a non-default schema.
|
|
52
|
+
For special quoting, use :class:`.quoted_name`.
|
|
53
|
+
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
with self._operation_context() as conn:
|
|
57
|
+
return self.dialect.get_table_owner(
|
|
58
|
+
connection=conn,
|
|
59
|
+
query=POSTGRES_TABLE_OWNERS,
|
|
60
|
+
table_name=table_name,
|
|
61
|
+
schema=schema,
|
|
62
|
+
)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
@reflection.cache
|
|
66
|
+
def get_foreign_keys(
|
|
67
|
+
self, connection, table_name, schema=None, postgresql_ignore_search_path=False, **kw
|
|
68
|
+
):
|
|
69
|
+
"""
|
|
70
|
+
Args:
|
|
71
|
+
connection (_type_): _description_
|
|
72
|
+
table_name (_type_): _description_
|
|
73
|
+
schema (_type_, optional): _description_. Defaults to None.
|
|
74
|
+
postgresql_ignore_search_path (bool, optional): _description_. Defaults to False.
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
_type_: _description_
|
|
78
|
+
"""
|
|
79
|
+
preparer = self.identifier_preparer
|
|
80
|
+
table_oid = self.get_table_oid(
|
|
81
|
+
connection, table_name, schema, info_cache=kw.get("info_cache")
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
# https://www.postgresql.org/docs/9.0/static/sql-createtable.html
|
|
85
|
+
FK_REGEX = re.compile(
|
|
86
|
+
r"FOREIGN KEY \((.*?)\) REFERENCES (?:(.*?)\.)?(.*?)\((.*?)\)"
|
|
87
|
+
r"[\s]?(MATCH (FULL|PARTIAL|SIMPLE)+)?"
|
|
88
|
+
r"[\s]?(ON UPDATE "
|
|
89
|
+
r"(CASCADE|RESTRICT|NO ACTION|SET NULL|SET DEFAULT)+)?"
|
|
90
|
+
r"[\s]?(ON DELETE "
|
|
91
|
+
r"(CASCADE|RESTRICT|NO ACTION|SET NULL|SET DEFAULT)+)?"
|
|
92
|
+
r"[\s]?(DEFERRABLE|NOT DEFERRABLE)?"
|
|
93
|
+
r"[\s]?(INITIALLY (DEFERRED|IMMEDIATE)+)?"
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
t = sql.text(POSTGRES_FETCH_FK).columns(
|
|
97
|
+
conname=sqltypes.Unicode, condef=sqltypes.Unicode, con_db_name=sqltypes.Unicode
|
|
98
|
+
)
|
|
99
|
+
c = connection.execute(t, {"table": table_oid})
|
|
100
|
+
fkeys = []
|
|
101
|
+
for conname, condef, conschema, con_db_name in c.fetchall():
|
|
102
|
+
m = re.search(FK_REGEX, condef).groups()
|
|
103
|
+
|
|
104
|
+
(
|
|
105
|
+
constrained_columns,
|
|
106
|
+
referred_schema,
|
|
107
|
+
referred_table,
|
|
108
|
+
referred_columns,
|
|
109
|
+
_,
|
|
110
|
+
match,
|
|
111
|
+
_,
|
|
112
|
+
onupdate,
|
|
113
|
+
_,
|
|
114
|
+
ondelete,
|
|
115
|
+
deferrable,
|
|
116
|
+
_,
|
|
117
|
+
initially,
|
|
118
|
+
) = m
|
|
119
|
+
|
|
120
|
+
if deferrable is not None:
|
|
121
|
+
deferrable = deferrable == "DEFERRABLE"
|
|
122
|
+
constrained_columns = tuple(re.split(r"\s*,\s*", constrained_columns))
|
|
123
|
+
constrained_columns = [
|
|
124
|
+
preparer._unquote_identifier(x) for x in constrained_columns
|
|
125
|
+
]
|
|
126
|
+
|
|
127
|
+
if postgresql_ignore_search_path:
|
|
128
|
+
# when ignoring search path, we use the actual schema
|
|
129
|
+
# provided it isn't the "default" schema
|
|
130
|
+
if conschema != self.default_schema_name:
|
|
131
|
+
referred_schema = conschema
|
|
132
|
+
else:
|
|
133
|
+
referred_schema = schema
|
|
134
|
+
elif referred_schema:
|
|
135
|
+
# referred_schema is the schema that we regexp'ed from
|
|
136
|
+
# pg_get_constraintdef(). If the schema is in the search
|
|
137
|
+
# path, pg_get_constraintdef() will give us None.
|
|
138
|
+
referred_schema = preparer._unquote_identifier(referred_schema)
|
|
139
|
+
elif schema is not None and schema == conschema:
|
|
140
|
+
# If the actual schema matches the schema of the table
|
|
141
|
+
# we're reflecting, then we will use that.
|
|
142
|
+
referred_schema = schema
|
|
143
|
+
|
|
144
|
+
referred_table = preparer._unquote_identifier(referred_table)
|
|
145
|
+
referred_columns = tuple(re.split(r"\s*,\s", referred_columns))
|
|
146
|
+
referred_columns = [preparer._unquote_identifier(x) for x in referred_columns]
|
|
147
|
+
options = {
|
|
148
|
+
k: v
|
|
149
|
+
for k, v in [
|
|
150
|
+
("onupdate", onupdate),
|
|
151
|
+
("ondelete", ondelete),
|
|
152
|
+
("initially", initially),
|
|
153
|
+
("deferrable", deferrable),
|
|
154
|
+
("match", match),
|
|
155
|
+
]
|
|
156
|
+
if v is not None and v != "NO ACTION"
|
|
157
|
+
}
|
|
158
|
+
referred_database = con_db_name if con_db_name else ""
|
|
159
|
+
fkey_d = {
|
|
160
|
+
"name": conname,
|
|
161
|
+
"constrained_columns": constrained_columns,
|
|
162
|
+
"referred_schema": referred_schema,
|
|
163
|
+
"referred_table": referred_table,
|
|
164
|
+
"referred_columns": referred_columns,
|
|
165
|
+
"options": options,
|
|
166
|
+
"referred_database": referred_database,
|
|
167
|
+
}
|
|
168
|
+
fkeys.append(fkey_d)
|
|
169
|
+
return fkeys
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
@reflection.cache
|
|
173
|
+
def get_table_owner(self, connection, table_name, schema=None, **kw):
|
|
174
|
+
return get_table_owner_wrapper(
|
|
175
|
+
self,
|
|
176
|
+
connection=connection,
|
|
177
|
+
query=POSTGRES_TABLE_OWNERS,
|
|
178
|
+
table_name=table_name,
|
|
179
|
+
schema=schema,
|
|
180
|
+
)
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
@reflection.cache
|
|
184
|
+
def get_table_comment(self, connection, table_name, schema=None, **kw):
|
|
185
|
+
return get_table_comment_wrapper(
|
|
186
|
+
self,
|
|
187
|
+
connection,
|
|
188
|
+
table_name=table_name,
|
|
189
|
+
schema=schema,
|
|
190
|
+
query=POSTGRES_TABLE_COMMENTS,
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
@reflection.cache
|
|
195
|
+
def get_columns(self, connection, table_name, schema=None, **kw):
|
|
196
|
+
"""
|
|
197
|
+
Overriding the dialect method to add raw_data_type in response
|
|
198
|
+
"""
|
|
199
|
+
|
|
200
|
+
table_oid = self.get_table_oid(
|
|
201
|
+
connection, table_name, schema, info_cache=kw.get("info_cache")
|
|
202
|
+
)
|
|
203
|
+
|
|
204
|
+
generated = (
|
|
205
|
+
"a.attgenerated as generated"
|
|
206
|
+
if self.server_version_info >= (12,)
|
|
207
|
+
else "NULL as generated"
|
|
208
|
+
)
|
|
209
|
+
if self.server_version_info >= (10,):
|
|
210
|
+
# a.attidentity != '' is required or it will reflect also
|
|
211
|
+
# serial columns as identity.
|
|
212
|
+
identity = POSTGRES_COL_IDENTITY
|
|
213
|
+
else:
|
|
214
|
+
identity = "NULL as identity_options"
|
|
215
|
+
|
|
216
|
+
sql_col_query = POSTGRES_SQL_COLUMNS.format(
|
|
217
|
+
generated=generated,
|
|
218
|
+
identity=identity,
|
|
219
|
+
)
|
|
220
|
+
sql_col_query = (
|
|
221
|
+
sql.text(sql_col_query)
|
|
222
|
+
.bindparams(sql.bindparam("table_oid", type_=sqltypes.Integer))
|
|
223
|
+
.columns(attname=sqltypes.Unicode, default=sqltypes.Unicode)
|
|
224
|
+
)
|
|
225
|
+
conn = connection.execute(sql_col_query, {"table_oid": table_oid})
|
|
226
|
+
rows = conn.fetchall()
|
|
227
|
+
|
|
228
|
+
# dictionary with (name, ) if default search path or (schema, name)
|
|
229
|
+
# as keys
|
|
230
|
+
domains = self._load_domains(connection)
|
|
231
|
+
|
|
232
|
+
# dictionary with (name, ) if default search path or (schema, name)
|
|
233
|
+
# as keys
|
|
234
|
+
enums = dict(
|
|
235
|
+
((rec["name"],), rec) if rec["visible"] else ((rec["schema"], rec["name"]), rec)
|
|
236
|
+
for rec in self._load_enums(connection, schema="*")
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
# format columns
|
|
240
|
+
columns = []
|
|
241
|
+
|
|
242
|
+
for (
|
|
243
|
+
name,
|
|
244
|
+
format_type,
|
|
245
|
+
default_,
|
|
246
|
+
notnull,
|
|
247
|
+
table_oid,
|
|
248
|
+
comment,
|
|
249
|
+
generated,
|
|
250
|
+
identity,
|
|
251
|
+
) in rows:
|
|
252
|
+
column_info = self._get_column_info(
|
|
253
|
+
name,
|
|
254
|
+
format_type,
|
|
255
|
+
default_,
|
|
256
|
+
notnull,
|
|
257
|
+
domains,
|
|
258
|
+
enums,
|
|
259
|
+
schema,
|
|
260
|
+
comment,
|
|
261
|
+
generated,
|
|
262
|
+
identity,
|
|
263
|
+
)
|
|
264
|
+
column_info["system_data_type"] = format_type
|
|
265
|
+
columns.append(column_info)
|
|
266
|
+
return columns
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
def _get_numeric_args(charlen):
|
|
270
|
+
if charlen:
|
|
271
|
+
prec, scale = charlen.split(",")
|
|
272
|
+
return (int(prec), int(scale))
|
|
273
|
+
return ()
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
def _get_interval_args(charlen, attype, kwargs: Dict):
|
|
277
|
+
field_match = re.match(r"interval (.+)", attype, re.I)
|
|
278
|
+
if charlen:
|
|
279
|
+
kwargs["precision"] = int(charlen)
|
|
280
|
+
if field_match:
|
|
281
|
+
kwargs["fields"] = field_match.group(1)
|
|
282
|
+
attype = "interval"
|
|
283
|
+
return (), attype, kwargs
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
def _get_bit_var_args(charlen, kwargs):
|
|
287
|
+
kwargs["varying"] = True
|
|
288
|
+
if charlen:
|
|
289
|
+
return (int(charlen),), kwargs
|
|
290
|
+
|
|
291
|
+
return (), kwargs
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def get_column_args(
|
|
295
|
+
charlen: str, args: Tuple, kwargs: Dict, attype: str
|
|
296
|
+
) -> Tuple[Tuple, Dict]:
|
|
297
|
+
"""
|
|
298
|
+
Method to determine the args and kwargs
|
|
299
|
+
"""
|
|
300
|
+
if attype == "numeric":
|
|
301
|
+
args = _get_numeric_args(charlen)
|
|
302
|
+
elif attype == "double precision":
|
|
303
|
+
args = (53,)
|
|
304
|
+
elif attype == "integer":
|
|
305
|
+
args = ()
|
|
306
|
+
elif attype in ("timestamp with time zone", "time with time zone"):
|
|
307
|
+
kwargs["timezone"] = True
|
|
308
|
+
if charlen:
|
|
309
|
+
kwargs["precision"] = int(charlen)
|
|
310
|
+
args = ()
|
|
311
|
+
elif attype in (
|
|
312
|
+
"timestamp without time zone",
|
|
313
|
+
"time without time zone",
|
|
314
|
+
"time",
|
|
315
|
+
):
|
|
316
|
+
kwargs["timezone"] = False
|
|
317
|
+
if charlen:
|
|
318
|
+
kwargs["precision"] = int(charlen)
|
|
319
|
+
args = ()
|
|
320
|
+
elif attype == "bit varying":
|
|
321
|
+
args, kwargs = _get_bit_var_args(charlen, kwargs)
|
|
322
|
+
elif attype == "geometry":
|
|
323
|
+
args = ()
|
|
324
|
+
elif attype.startswith("interval"):
|
|
325
|
+
args, attype, kwargs = _get_interval_args(charlen, attype, kwargs)
|
|
326
|
+
elif charlen:
|
|
327
|
+
args = (int(charlen),)
|
|
328
|
+
|
|
329
|
+
return args, kwargs, attype
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
def get_column_default(coltype, schema, default, generated):
|
|
333
|
+
"""
|
|
334
|
+
Method to determine the default of column
|
|
335
|
+
"""
|
|
336
|
+
autoincrement = False
|
|
337
|
+
# If a zero byte or blank string depending on driver (is also absent
|
|
338
|
+
# for older PG versions), then not a generated column. Otherwise, s =
|
|
339
|
+
# stored. (Other values might be added in the future.)
|
|
340
|
+
if generated not in (None, "", b"\x00"):
|
|
341
|
+
computed = {"sqltext": default, "persisted": generated in ("s", b"s")}
|
|
342
|
+
default = None
|
|
343
|
+
else:
|
|
344
|
+
computed = None
|
|
345
|
+
if default is not None:
|
|
346
|
+
match = re.search(r"""(nextval\(')([^']+)('.*$)""", default)
|
|
347
|
+
if match is not None:
|
|
348
|
+
if issubclass(coltype._type_affinity, sqltypes.Integer):
|
|
349
|
+
autoincrement = True
|
|
350
|
+
# the default is related to a Sequence
|
|
351
|
+
sch = schema
|
|
352
|
+
if "." not in match.group(2) and sch is not None:
|
|
353
|
+
# unconditionally quote the schema name. this could
|
|
354
|
+
# later be enhanced to obey quoting rules /
|
|
355
|
+
# "quote schema"
|
|
356
|
+
default = (
|
|
357
|
+
match.group(1)
|
|
358
|
+
+ (f'"{sch}"')
|
|
359
|
+
+ "."
|
|
360
|
+
+ match.group(2)
|
|
361
|
+
+ match.group(3)
|
|
362
|
+
)
|
|
363
|
+
return default, autoincrement, computed
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
def _handle_array_type(attype):
|
|
367
|
+
return (
|
|
368
|
+
# strip '[]' from integer[], etc.
|
|
369
|
+
re.sub(r"\[\]$", "", attype),
|
|
370
|
+
attype.endswith("[]"),
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
# pylint: disable=too-many-statements,too-many-branches
|
|
375
|
+
def get_column_info(
|
|
376
|
+
self,
|
|
377
|
+
name,
|
|
378
|
+
format_type,
|
|
379
|
+
default,
|
|
380
|
+
notnull,
|
|
381
|
+
domains,
|
|
382
|
+
enums,
|
|
383
|
+
schema,
|
|
384
|
+
comment,
|
|
385
|
+
generated,
|
|
386
|
+
identity,
|
|
387
|
+
):
|
|
388
|
+
"""
|
|
389
|
+
Method to return column info
|
|
390
|
+
"""
|
|
391
|
+
|
|
392
|
+
if format_type is None:
|
|
393
|
+
no_format_type = True
|
|
394
|
+
attype = format_type = "no format_type()"
|
|
395
|
+
is_array = False
|
|
396
|
+
else:
|
|
397
|
+
no_format_type = False
|
|
398
|
+
|
|
399
|
+
# strip (*) from character varying(5), timestamp(5)
|
|
400
|
+
# with time zone, geometry(POLYGON), etc.
|
|
401
|
+
attype = re.sub(r"\(.*\)", "", format_type)
|
|
402
|
+
|
|
403
|
+
# strip '[]' from integer[], etc. and check if an array
|
|
404
|
+
attype, is_array = _handle_array_type(attype)
|
|
405
|
+
|
|
406
|
+
# strip quotes from case sensitive enum or domain names
|
|
407
|
+
enum_or_domain_key = tuple(util.quoted_token_parser(attype))
|
|
408
|
+
|
|
409
|
+
nullable = not notnull
|
|
410
|
+
|
|
411
|
+
charlen = re.search(r"\(([\d,]+)\)", format_type)
|
|
412
|
+
if charlen:
|
|
413
|
+
charlen = charlen.group(1)
|
|
414
|
+
args = re.search(r"\((.*)\)", format_type)
|
|
415
|
+
if args and args.group(1):
|
|
416
|
+
args = tuple(re.split(r"\s*,\s*", args.group(1)))
|
|
417
|
+
else:
|
|
418
|
+
args = ()
|
|
419
|
+
kwargs = {}
|
|
420
|
+
|
|
421
|
+
args, kwargs, attype = get_column_args(charlen, args, kwargs, attype)
|
|
422
|
+
|
|
423
|
+
while True:
|
|
424
|
+
# looping here to suit nested domains
|
|
425
|
+
if attype in self.ischema_names:
|
|
426
|
+
coltype = self.ischema_names[attype]
|
|
427
|
+
break
|
|
428
|
+
if enum_or_domain_key in enums:
|
|
429
|
+
enum = enums[enum_or_domain_key]
|
|
430
|
+
coltype = ENUM
|
|
431
|
+
kwargs["name"] = enum["name"]
|
|
432
|
+
if not enum["visible"]:
|
|
433
|
+
kwargs["schema"] = enum["schema"]
|
|
434
|
+
args = tuple(enum["labels"])
|
|
435
|
+
break
|
|
436
|
+
if enum_or_domain_key in domains:
|
|
437
|
+
domain = domains[enum_or_domain_key]
|
|
438
|
+
attype = domain["attype"]
|
|
439
|
+
attype, is_array = _handle_array_type(attype)
|
|
440
|
+
# strip quotes from case sensitive enum or domain names
|
|
441
|
+
enum_or_domain_key = tuple(util.quoted_token_parser(attype))
|
|
442
|
+
# A table can't override a not null on the domain,
|
|
443
|
+
# but can override nullable
|
|
444
|
+
nullable = nullable and domain["nullable"]
|
|
445
|
+
if domain["default"] and not default:
|
|
446
|
+
# It can, however, override the default
|
|
447
|
+
# value, but can't set it to null.
|
|
448
|
+
default = domain["default"]
|
|
449
|
+
continue
|
|
450
|
+
coltype = None
|
|
451
|
+
break
|
|
452
|
+
|
|
453
|
+
if coltype:
|
|
454
|
+
coltype = coltype(*args, **kwargs)
|
|
455
|
+
if is_array:
|
|
456
|
+
coltype = self.ischema_names["_array"](coltype)
|
|
457
|
+
elif no_format_type:
|
|
458
|
+
util.warn(f"PostgreSQL format_type() returned NULL for column '{name}'")
|
|
459
|
+
coltype = sqltypes.NULLTYPE
|
|
460
|
+
else:
|
|
461
|
+
util.warn(f"Did not recognize type '{attype}' of column '{name}'")
|
|
462
|
+
coltype = sqltypes.NULLTYPE
|
|
463
|
+
|
|
464
|
+
default, autoincrement, computed = get_column_default(
|
|
465
|
+
coltype=coltype, schema=schema, default=default, generated=generated
|
|
466
|
+
)
|
|
467
|
+
column_info = {
|
|
468
|
+
"name": name,
|
|
469
|
+
"type": coltype,
|
|
470
|
+
"nullable": nullable,
|
|
471
|
+
"default": default,
|
|
472
|
+
"autoincrement": autoincrement or identity is not None,
|
|
473
|
+
"comment": comment,
|
|
474
|
+
}
|
|
475
|
+
if computed is not None:
|
|
476
|
+
column_info["computed"] = computed
|
|
477
|
+
if identity is not None:
|
|
478
|
+
column_info["identity"] = identity
|
|
479
|
+
return column_info
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
@reflection.cache
|
|
483
|
+
def get_view_definition(self, connection, table_name, schema=None, **kw):
|
|
484
|
+
return get_view_definition_wrapper(
|
|
485
|
+
self,
|
|
486
|
+
connection,
|
|
487
|
+
table_name=table_name,
|
|
488
|
+
schema=schema,
|
|
489
|
+
query=POSTGRES_VIEW_DEFINITIONS,
|
|
490
|
+
)
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
def get_postgres_version(engine) -> Optional[str]:
|
|
494
|
+
"""
|
|
495
|
+
return the postgres version in major.minor.patch format
|
|
496
|
+
"""
|
|
497
|
+
try:
|
|
498
|
+
results = engine.execute(POSTGRES_GET_SERVER_VERSION)
|
|
499
|
+
for res in results:
|
|
500
|
+
version_string = str(res[0])
|
|
501
|
+
return version_string
|
|
502
|
+
except Exception as err:
|
|
503
|
+
logger.warning(f"Unable to fetch the Postgres Version - {err}")
|
|
504
|
+
logger.debug(traceback.format_exc())
|
|
505
|
+
return None
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
def get_postgres_time_column_name(engine) -> str:
|
|
509
|
+
"""
|
|
510
|
+
Return the correct column name for the time column based on postgres version
|
|
511
|
+
"""
|
|
512
|
+
# Try to check the column in pg_stat_statements, fallback to version check if fails
|
|
513
|
+
try:
|
|
514
|
+
with engine.connect() as conn:
|
|
515
|
+
result = conn.execute(
|
|
516
|
+
"SELECT column_name FROM information_schema.columns WHERE table_name = 'pg_stat_statements'"
|
|
517
|
+
)
|
|
518
|
+
columns = {row[0] for row in result}
|
|
519
|
+
if "total_exec_time" in columns:
|
|
520
|
+
return "total_exec_time"
|
|
521
|
+
elif "total_time" in columns:
|
|
522
|
+
return "total_time"
|
|
523
|
+
else:
|
|
524
|
+
logger.warning(
|
|
525
|
+
"Neither 'total_exec_time' nor 'total_time' found in pg_stat_statements. Defaulting to 'total_exec_time'."
|
|
526
|
+
)
|
|
527
|
+
return "total_exec_time"
|
|
528
|
+
except Exception as ex:
|
|
529
|
+
logger.debug(f"Failed to check columns in pg_stat_statements: {ex}")
|
|
530
|
+
# Fallback to version check
|
|
531
|
+
time_column_name = "total_exec_time"
|
|
532
|
+
postgres_version = get_postgres_version(engine)
|
|
533
|
+
if postgres_version and version.parse(postgres_version) < version.parse(
|
|
534
|
+
OLD_POSTGRES_VERSION
|
|
535
|
+
):
|
|
536
|
+
time_column_name = "total_time"
|
|
537
|
+
return time_column_name
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
@reflection.cache
|
|
541
|
+
def get_schema_names(self, connection, **kw):
|
|
542
|
+
result = connection.execute(
|
|
543
|
+
sql.text(POSTGRES_GET_SCHEMA_NAMES).columns(nspname=sqltypes.Unicode)
|
|
544
|
+
)
|
|
545
|
+
return [name for name, in result]
|