Skip to content

Commit 2844504

Browse files
committed
report column type as UNKNOWN when it's unknown
1 parent 42bae22 commit 2844504

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ backup-and-swap-in functionality work properly. Given how SQLite aggressively
125125
[locks](https://sqlite.org/lockingv3.html) the database anyway, it's probably
126126
not worth the effort.
127127

128+
- When inspecting the data types of columns, SQLite returns a blank value for
129+
columns in views (even if it's the result of a CAST) and in certain cases
130+
for columns in tables. These will show up in the generated docs as type 'UNKNOWN'.
131+
128132
## SQLite Extensions
129133

130134
These modules from SQLean are needed for certain functionality to work:

dbt/adapters/sqlite/impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _get_one_catalog(
166166
'',
167167
table_row['name'],
168168
table_row['cid'],
169-
table_row['type'] or 'TEXT',
169+
table_row['type'] or 'UNKNOWN',
170170
''
171171
])
172172

0 commit comments

Comments
 (0)