This is an automated email from the ASF dual-hosted git repository.
liyafan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 38971af ARROW-10388: [Java] Fix Spark integration build failure
38971af is described below
commit 38971af6a11d9fa335e6786e2dba05ea0485a9c9
Author: liyafan82 <[email protected]>
AuthorDate: Thu Oct 29 11:59:24 2020 +0800
ARROW-10388: [Java] Fix Spark integration build failure
Please see https://issues.apache.org/jira/browse/ARROW-10388
Closes #8526 from liyafan82/fly_1026_spk
Lead-authored-by: liyafan82 <[email protected]>
Co-authored-by: emkornfield <[email protected]>
Signed-off-by: liyafan82 <[email protected]>
---
java/vector/src/main/codegen/templates/ArrowType.java | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/java/vector/src/main/codegen/templates/ArrowType.java
b/java/vector/src/main/codegen/templates/ArrowType.java
index f8f0e20..b08d4ad 100644
--- a/java/vector/src/main/codegen/templates/ArrowType.java
+++ b/java/vector/src/main/codegen/templates/ArrowType.java
@@ -176,6 +176,20 @@ public abstract class ArrowType {
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>