Skip to content
Closed
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
14 changes: 14 additions & 0 deletions java/vector/src/main/codegen/templates/ArrowType.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,20 @@ public static Decimal createDecimal(

return new Decimal(precision, scale, bitWidth == null ? 128 : bitWidth);
}

/**
* Construct Decimal with 128 bits.
*
* This is kept mainly for the sake of backward compatibility.
* Please use {@link org.apache.arrow.vector.types.pojo.ArrowType.Decimal#Decimal(int, int, int)} instead.
*
* @deprecated This API will be removed in a future release.
*/
@Deprecated
public Decimal(int precision, int scale) {
this(precision, scale, 128);
}

<#else>
@JsonCreator
</#if>
Expand Down