We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d234430 commit ee5fffcCopy full SHA for ee5fffc
1 file changed
java/tsfile/src/main/java/org/apache/tsfile/read/common/block/column/TsBlockSerde.java
@@ -103,7 +103,10 @@ public ByteBuffer serialize(TsBlock tsBlock) throws IOException {
103
104
// Value column data types.
105
for (int i = 0; i < tsBlock.getValueColumnCount(); i++) {
106
- if (tsBlock.getColumn(i).getDataType() == TSDataType.DATE) {
+ // To be compatible with the Python client, because it does not support data type values other
107
+ // than 0-5, the value of DATE is 9.
108
+ if ((tsBlock.getColumn(i) instanceof IntColumn)
109
+ && tsBlock.getColumn(i).getDataType() == TSDataType.DATE) {
110
((IntColumn) tsBlock.getColumn(i)).modifyDataType(TSDataType.INT32);
111
}
112
tsBlock.getColumn(i).getDataType().serializeTo(dataOutputStream);
0 commit comments