Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 0cef306

Browse files
authored
Merge pull request #592 from alexnikitchuk/fix_redshift_view
fix Redshift view support
2 parents 9ffb136 + 32c04ea commit 0cef306

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

data_diff/sqeleton/databases/redshift.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def query_pg_get_cols(self, path: DbPath) -> Dict[str, tuple]:
148148
precision, scale = type_info[1][:-1].split(',')
149149
precision = int(precision)
150150
scale = int(scale)
151-
151+
152152
out = [col_name, base_type, None, precision, scale]
153153
output[col_name] = tuple(out)
154154

@@ -159,9 +159,9 @@ def query_table_schema(self, path: DbPath) -> Dict[str, tuple]:
159159
return super().query_table_schema(path)
160160
except RuntimeError:
161161
try:
162-
return self.query_external_table_schema(path)
163-
except RuntimeError:
164-
return self.query_pg_get_cols()
162+
return self.query_external_table_schema(path)
163+
except RuntimeError:
164+
return self.query_pg_get_cols(path)
165165

166166
def _normalize_table_path(self, path: DbPath) -> DbPath:
167167
if len(path) == 1:

0 commit comments

Comments
 (0)