Fix trino deleted tables & catalog as required (#4914)

* Catalog as required for SQLAlchemy

* Use catalog properly for db name
This commit is contained in:
Pere Miquel Brull 2022-05-12 19:41:43 +02:00 committed by GitHub
parent a611338692
commit ab50264ffa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -92,5 +92,5 @@
} }
}, },
"additionalProperties": false, "additionalProperties": false,
"required": ["hostPort", "username"] "required": ["hostPort", "username", "catalog"]
} }

View File

@ -104,7 +104,7 @@ class TrinoSource(SQLSource):
schema_fqdn = get_fqdn( schema_fqdn = get_fqdn(
DatabaseSchema, DatabaseSchema,
self.config.serviceName, self.config.serviceName,
self.service_connection.database, self.service_connection.catalog,
schema, schema,
) )
yield from self.delete_tables(schema_fqdn) yield from self.delete_tables(schema_fqdn)