From ca1aefe495716321e7d5e73f35e40a3995b533f8 Mon Sep 17 00:00:00 2001 From: Diederik van Liere Date: Wed, 4 Mar 2020 11:52:25 -0500 Subject: [PATCH] Handle schema discovery of tables that are short-lived --- tap_oracle/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_oracle/__init__.py b/tap_oracle/__init__.py index 528eed9..2743690 100644 --- a/tap_oracle/__init__.py +++ b/tap_oracle/__init__.py @@ -328,7 +328,7 @@ def do_discovery(conn_config, filter_schemas): is_view = False table_info[schema][table] = { - 'row_count': row_counts[table], + 'row_count': row_counts.get(table, 0), 'is_view': is_view }