Skip to content

Commit 9bfc0b7

Browse files
committed
Revert "fix: handle missing table in read_table when raise_if_empty=False (BigQuery test_seed_run_results)"
This reverts commit 9fc552e.
1 parent 9fc552e commit 9bfc0b7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

integration_tests/tests/dbt_project.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,7 @@ def read_table(
9999
query = self.read_table_query(
100100
table_name, where, group_by, order_by, limit, column_names
101101
)
102-
try:
103-
results = self.run_query(query)
104-
except IndexError:
105-
# run_operation returns [] when the query fails (e.g. table/view not found).
106-
# When raise_if_empty=False, treat missing table as empty result.
107-
if raise_if_empty:
108-
raise
109-
return []
102+
results = self.run_query(query)
110103
if raise_if_empty and len(results) == 0:
111104
raise ValueError(
112105
f"Table '{table_name}' with the '{where}' condition is empty."

0 commit comments

Comments
 (0)