Skip to content

Commit

Permalink
Support DECIMAL type properly when using DDB type NUMBER in sets (#2483)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejeffrli authored Dec 17, 2024
1 parent 5cf871f commit 66bac00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ else if (enhancedAttributeValue.isSetOfBytes()) {
return new Field(key, FieldType.nullable(Types.MinorType.LIST.getType()), Collections.singletonList(child));
}
else if (enhancedAttributeValue.isSetOfNumbers()) {
Field child = new Field(key, FieldType.nullable(Types.MinorType.DECIMAL.getType()), null);
Field child = new Field(key, FieldType.nullable(new ArrowType.Decimal(38, 9)), null);
return new Field(key, FieldType.nullable(Types.MinorType.LIST.getType()), Collections.singletonList(child));
}
else if (enhancedAttributeValue.isSetOfStrings()) {
Expand Down

0 comments on commit 66bac00

Please sign in to comment.