diff --git a/subsetter/planner.py b/subsetter/planner.py index 6b8709d..166403f 100644 --- a/subsetter/planner.py +++ b/subsetter/planner.py @@ -42,7 +42,7 @@ def plan(self) -> SubsetPlan: LOGGER.info("Scanning schema") meta, extra_tables = DatabaseMetadata.from_engine( self.engine, - self.config.select, + self.config.select + self.config.passthrough, close_forward=self.config.include_dependencies, ) self.meta = meta diff --git a/subsetter/sampler.py b/subsetter/sampler.py index 8cf2b25..620a5ab 100644 --- a/subsetter/sampler.py +++ b/subsetter/sampler.py @@ -531,10 +531,6 @@ def insert_order(self) -> List[str]: remapped_table = self.table_remap.get(table) if remapped_table: result.append(remapped_table) - else: - LOGGER.warning( - "Database does not have table %s, will not sample", table - ) return result def output_result_set(