fix(ingest): add db name to postgres URNs (#2401)

This commit is contained in:
Harshal Sheth 2021-04-14 15:04:13 -07:00 committed by GitHub
parent 2af4603e49
commit 9c2a30c3a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,6 +15,12 @@ class PostgresConfig(BasicSQLAlchemyConfig):
# defaults
scheme = "postgresql+psycopg2"
def get_identifier(self, schema: str, table: str) -> str:
regular = f"{schema}.{table}"
if self.database:
return f"{self.database}.{regular}"
return regular
class PostgresSource(SQLAlchemySource):
def __init__(self, config, ctx):