fix druid ingestion (#10553)

* fix druid ingestion

* changes as per comment

* changes as per comment
This commit is contained in:
NiharDoshi99 2023-03-14 14:47:00 +05:30 committed by GitHub
parent ffdd911785
commit 83a1858434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -134,6 +134,7 @@ class CommonDbSourceService(
database_name = self.service_connection.__dict__.get(
"database", custom_database_name or "default"
)
# By default, set the inspector on the created engine
self.inspector = inspect(self.engine)
yield database_name

View File

@ -48,9 +48,9 @@
"description": "Host and port of the Druid service.",
"type": "string"
},
"database": {
"title": "Database",
"description": "Database of the data source. This is optional parameter, if you would like to restrict the metadata reading to a single database. When left blank, OpenMetadata Ingestion attempts to scan all the databases.",
"databaseName": {
"title": "Database Name",
"description": "Optional name to give to the database in OpenMetadata. If left blank, we will use default as the database name.",
"type": "string"
},
"connectionOptions": {