Skip to content

Commit

Permalink
fix null datatype bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhou1111 committed Jun 15, 2024
1 parent 4fe4982 commit db1e674
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public Object deserializeText(SQLLexer lexer) throws SQLException {

@Override
public void serializeBinary(Object data, BinarySerializer serializer) throws SQLException, IOException {
if (data == null) {
data = nestedDataType.defaultValue();
this.nullMapDataType.serializeBinary(IS_NULL, serializer);
}
this.nestedDataType.serializeBinary(data, serializer);
}

Expand Down

0 comments on commit db1e674

Please sign in to comment.