Skip to content
Open
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
16 changes: 16 additions & 0 deletions vector/src/main/codegen/data/ValueVectorTypes.tdd
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,22 @@
{ class: "TimeNano" }
]
},
{
major: "Fixed",
width: 4,
javaType: "ArrowBuf",
boxedType: "ArrowBuf",

minor: [
{
class: "Decimal32",
maxPrecisionDigits: 9, nDecimalDigits: 1, friendlyType: "BigDecimal",
typeParams: [ {name: "scale", type: "int"}, { name: "precision", type: "int"}],
arrowType: "org.apache.arrow.vector.types.pojo.ArrowType.Decimal",
fields: [{name: "start", type: "long"}, {name: "buffer", type: "ArrowBuf"}]
}
]
},
{
major: "Fixed",
width: 8,
Expand Down
4 changes: 3 additions & 1 deletion vector/src/main/codegen/templates/UnionReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
@SuppressWarnings("unused")
public class UnionReader extends AbstractFieldReader {

private static final int NUM_SUPPORTED_TYPES = 51;
// The reader/type arrays are indexed by MinorType.ordinal(), so they must be sized to the total
// number of minor types (not a hardcoded count, which would break whenever a type is added).
private static final int NUM_SUPPORTED_TYPES = MinorType.values().length;

private BaseReader[] readers = new BaseReader[NUM_SUPPORTED_TYPES];
public UnionVector data;
Expand Down
Loading
Loading