From a144f5a9134caeb36961007682cb38ad44d11443 Mon Sep 17 00:00:00 2001 From: Mark Gordon Date: Mon, 30 Sep 2024 00:12:51 -0700 Subject: [PATCH] Fix two issues Closes #24 Closes #25 --- subsetter/planner.py | 2 +- subsetter/sampler.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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(