Skip to content

Commit cbbc1b1

Browse files
committed
fix handling of null for thrift
1 parent 6269343 commit cbbc1b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/databricks/jdbc/client/impl/thrift/commons/DatabricksThriftHelper.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ private static List<?> getColumnValues(TColumn column) {
194194
if (column.isSetStringVal())
195195
return getColumnValuesWithNulls(
196196
column.getStringVal().getValues(), column.getStringVal().getNulls());
197-
return null; // Return null if no valid value set
197+
return getColumnValuesWithNulls(
198+
column.getStringVal().getValues(), column.getStringVal().getNulls()); // default to string
198199
}
199200

200201
private static <T> List<T> getColumnValuesWithNulls(List<T> values, byte[] nulls) {

0 commit comments

Comments
 (0)