Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/Apache.IoTDB/DataStructure/BitMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#endif
public class BitMap
{
private static byte[] BIT_UTIL = new byte[] { 1, 2, 4, 8, 16, 32, 64, 255 };
private static byte[] BIT_UTIL = new byte[] { 1, 2, 4, 8, 16, 32, 64, unchecked((byte)-128) };
private static byte[] UNMARK_BIT_UTIL =
new byte[] {
(byte) 0XFE, // 11111110
Expand Down Expand Up @@ -94,7 +94,7 @@ public void mark(int position)
public void reset()
{
#if NET461_OR_GREATER || NETSTANDARD2_0
bits.Fill((byte)0xFF);
bits.Fill((byte)0);
#else
Array.Fill(bits, (byte)0);
#endif
Expand Down
4 changes: 3 additions & 1 deletion src/Apache.IoTDB/DataStructure/Tablet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ namespace Apache.IoTDB.DataStructure
*/
public class Tablet
{

private static int EMPTY_DATE_INT = 10000101;
private readonly List<long> _timestamps;
private readonly List<List<object>> _values;

Expand Down Expand Up @@ -361,7 +363,7 @@ public byte[] GetBinaryValues()
for (int j = 0; j < RowNumber; j++)
{
var value = _values[j][i];
buffer.AddInt(value != null ? Utils.ParseDateToInt((DateTime)value) : int.MinValue);
buffer.AddInt(value != null ? Utils.ParseDateToInt((DateTime)value) : EMPTY_DATE_INT);
}
break;
}
Expand Down