best-toddler-40650
09/02/2021, 10:13 PM---
# see <https://datahubproject.io/docs/metadata-ingestion/source_docs/mysql> for complete documentation
source:
type: "mysql"
config:
username: my.user
password: 12345678
host_port: <http://myserver.com:21286|myserver.com:21286>
database: mydatabase
# see <https://datahubproject.io/docs/metadata-ingestion/sink_docs/datahub> for complete documentation
sink:
type: "datahub-rest"
config:
server: "<http://localhost:8080>"
loud-island-88694
loud-island-88694
loud-island-88694
loud-island-88694
loud-island-88694
schema_pattern
allow/deny to control your ingestionloud-island-88694
loud-island-88694
schema_pattern:
allow:
- "^mydatabase"
best-toddler-40650
09/03/2021, 2:11 PMdef get_schema_names(self, inspector):
return inspector.get_schema_names()
The get_schema_names()
method always returns all available schemas in server no matter you selected a default schema. I think changing this code to:
def get_schema_names(self, inspector):
if inspector.default_schema_name is not None:
return [inspector.default_schema_name]
else:
return inspector.get_schema_names()
May solve the problemabest-toddler-40650
09/03/2021, 2:20 PMloud-island-88694
best-toddler-40650
09/08/2021, 7:11 PM