Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public boolean typeMatch(List<TSDataType> dataTypes) {
}

public boolean typeMatch(TSDataType dataType) {
return this.dataType == dataType;
return dataType.isCompatible(getTsDataType());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public ByteBuffer serialize(TsBlock tsBlock) throws IOException {

// Value column data types.
for (int i = 0; i < tsBlock.getValueColumnCount(); i++) {
if (tsBlock.getColumn(i).getDataType() == TSDataType.DATE) {
((IntColumn) tsBlock.getColumn(i)).modifyDataType(TSDataType.INT32);
}
tsBlock.getColumn(i).getDataType().serializeTo(dataOutputStream);
}

Expand Down
Loading