Skip to content

Commit a7f4773

Browse files
author
Jesse
authored
Fix componentreflection test (#328)
Fix: this allows component reflection test to pass Databricks returns an empty string in the REMARKS column rather than a `NoneType`. Signed-off-by: Jesse Whitehouse <[email protected]>
1 parent ae37007 commit a7f4773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databricks/sqlalchemy/_parse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def parse_column_info_from_tgetcolumnsresponse(thrift_resp_row) -> ReflectedColu
354354
"type": final_col_type,
355355
"nullable": bool(thrift_resp_row.NULLABLE),
356356
"default": thrift_resp_row.COLUMN_DEF,
357-
"comment": thrift_resp_row.REMARKS,
357+
"comment": thrift_resp_row.REMARKS or None,
358358
}
359359

360360
# TODO: figure out how to return sqlalchemy.interfaces in a way that mypy respects

0 commit comments

Comments
 (0)