diff --git a/bigquery_etl/cli/stage.py b/bigquery_etl/cli/stage.py index 442ad74fec..1f2efc7d5c 100644 --- a/bigquery_etl/cli/stage.py +++ b/bigquery_etl/cli/stage.py @@ -116,7 +116,9 @@ def deploy( for p in paths_matching_name_pattern( path, sql_dir, None, files=["*.sql", "*.py"] ) - if p.suffix in [".sql", ".py"] and p.name != "checks.sql" + if p.suffix in [".sql", ".py"] + and p.name != "checks.sql" + and len(p.suffixes) == 1 ] )