Skip to content

Commit

Permalink
make code simple
Browse files Browse the repository at this point in the history
  • Loading branch information
kiszk committed Nov 3, 2020
1 parent d62d990 commit ff33c3c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
public class DecimalUtility {
private DecimalUtility() {}

public static final int DECIMAL_BYTE_LENGTH = 16;
public static final byte [] zeroes = new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
public static final byte [] minus_one = new byte[] {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ public void testCopyFixedSizedListOfDecimalsVector() {
to.addOrGetVector(FieldType.nullable(new ArrowType.Decimal(3, 0, 128)));

DecimalHolder holder = new DecimalHolder();
holder.buffer = allocator.buffer(DecimalUtility.DECIMAL_BYTE_LENGTH);
holder.buffer = allocator.buffer(16);
ArrowType arrowType = new ArrowType.Decimal(3, 0, 128);

// populate from vector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public void listDecimalType() {
listVector.allocateNew();
UnionListWriter listWriter = new UnionListWriter(listVector);
DecimalHolder holder = new DecimalHolder();
holder.buffer = allocator.buffer(DecimalUtility.DECIMAL_BYTE_LENGTH);
holder.buffer = allocator.buffer(16);
ArrowType arrowType = new ArrowType.Decimal(10, 0, 128);
for (int i = 0; i < COUNT; i++) {
listWriter.startList();
Expand Down

0 comments on commit ff33c3c

Please sign in to comment.