Csaba Ringhofer has posted comments on this change. ( 
https://gerrit.cloudera.org/25459 )

Change subject: IMPALA-15811: Support DECIMAL(p,s) as a variant_get() target 
type
......................................................................


Patch Set 5: Code-Review+1

(1 comment)

https://gerrit.cloudera.org/#/c/25459/5/fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java
File fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java:

https://gerrit.cloudera.org/#/c/25459/5/fe/src/main/java/org/apache/impala/analysis/FunctionCallExpr.java@1003
PS5, Line 1003:     Matcher m = VARIANT_GET_DECIMAL_TAG.matcher(typeTag);
              :     if (!m.matches()) return null;
              :     int precision = m.group(1) == null ? 
ScalarType.DEFAULT_PRECISION
              :         : parseDecimalTagNumber(typeTag, m.group(1), 
"precision",
              :             ScalarType.MAX_PRECISION);
              :     int scale = m.group(2) == null ? ScalarType.DEFAULT_SCALE
              :         : parseDecimalTagNumber(typeTag, m.group(2), "scale", 
ScalarType.MAX_SCALE);
              :     ScalarType type = ScalarType.createDecimalType(precision, 
scale);
Isn't there already a way to parse these? E.g. type.parseColumnType()?



--
To view, visit https://gerrit.cloudera.org/25459
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I07a1aab68238b4af8760f647848aaf07cc5d497d
Gerrit-Change-Number: 25459
Gerrit-PatchSet: 5
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Tue, 24 Nov 2026 16:30:21 +0000
Gerrit-HasComments: Yes

Reply via email to