Skip to content

Commit

Permalink
ARROW-10388: [Java] Fix Spark integration build failure
Browse files Browse the repository at this point in the history
Please see https://issues.apache.org/jira/browse/ARROW-10388

Closes apache#8526 from liyafan82/fly_1026_spk

Lead-authored-by: liyafan82 <fan_li_ya@foxmail.com>
Co-authored-by: emkornfield <emkornfield@gmail.com>
Signed-off-by: liyafan82 <fan_li_ya@foxmail.com>
  • Loading branch information
2 people authored and GeorgeAp committed Jun 7, 2021
1 parent d6e3ff8 commit 69a5645
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit 69a5645

Please sign in to comment.