Skip to content
Merged
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 @@ -507,6 +507,9 @@ public void addValue(int rowIndex, int columnIndex, String val) {
throw new IllegalArgumentException(
"The data type of column index " + columnIndex + " is not TEXT/STRING/BLOB");
}
if (val == null) {
return;
}
final Binary[] sensor = (Binary[]) values[columnIndex];
sensor[rowIndex] = new Binary(val, TSFileConfig.STRING_CHARSET);
updateBitMap(rowIndex, columnIndex, false);
Expand All @@ -524,6 +527,9 @@ public void addValue(int rowIndex, int columnIndex, byte[] val) {
throw new IllegalArgumentException(
"The data type of column index " + columnIndex + " is not TEXT/STRING/BLOB");
}
if (val == null) {
return;
}
final Binary[] sensor = (Binary[]) values[columnIndex];
sensor[rowIndex] = new Binary(val);
updateBitMap(rowIndex, columnIndex, false);
Expand All @@ -541,6 +547,9 @@ public void addValue(int rowIndex, int columnIndex, LocalDate val) {
throw new IllegalArgumentException(
"The data type of column index " + columnIndex + " is not DATE");
}
if (val == null) {
return;
}
final LocalDate[] sensor = (LocalDate[]) values[columnIndex];
sensor[rowIndex] = val;
updateBitMap(rowIndex, columnIndex, false);
Expand Down