Skip to content

Commit

Permalink
fix(ingest): remove unused mysql golden file (#6106)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Oct 5, 2022
1 parent ee1a1ef commit feb9d59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2,039 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ def get_sql_alchemy_url(
class TwoTierSQLAlchemySource(SQLAlchemySource):
def __init__(self, config, ctx, platform):
super().__init__(config, ctx, platform)
self.current_database = None
self.config: TwoTierSQLAlchemyConfig = config

def get_parent_container_key(self, db_name: str, schema: str) -> PlatformKey:
# Because our overridden get_allowed_schemas method returns db_name as the schema name,
# the db_name and schema here will be the same. Hence, we just ignore the schema parameter.
assert db_name == schema
return self.gen_database_key(db_name)

def get_allowed_schemas(
Expand All @@ -66,6 +66,10 @@ def get_allowed_schemas(
# dbName itself as an allowed schema
yield db_name

def gen_schema_key(self, db_name: str, schema: str) -> PlatformKey:
# Sanity check that we don't try to generate schema containers for 2 tier databases.
raise NotImplementedError

def get_inspectors(self):
# This method can be overridden in the case that you want to dynamically
# run on multiple databases.
Expand All @@ -84,7 +88,6 @@ def get_inspectors(self):
inspector = inspect(
create_engine(url, **self.config.options).connect()
)
self.current_database = db
yield inspector

def gen_schema_containers(
Expand Down
Loading

0 comments on commit feb9d59

Please sign in to comment.