Skip to content

Commit 87d73da

Browse files
nit: cleaner reorganise
Signed-off-by: varun-edachali-dbx <varun.edachali@databricks.com>
1 parent f50d9ab commit 87d73da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databricks/sql/backend/sea/result_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _convert_complex_types_to_string(
106106
def convert_complex_column_to_string(col: "pyarrow.Array") -> "pyarrow.Array":
107107
python_values = col.to_pylist()
108108
json_strings = [
109-
(None if val is None else json.dumps(val)) for val in python_values
109+
(json.dumps(val) if val is not None else None) for val in python_values
110110
]
111111
return pyarrow.array(json_strings, type=pyarrow.string())
112112

0 commit comments

Comments
 (0)