This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new dd110460621 [fix](Nereids) array_range not support amount without unit
(#33231)
dd110460621 is described below
commit dd1104606218cee5f3869f4c46f24162a4d1e8d3
Author: morrySnow <[email protected]>
AuthorDate: Sun Apr 7 15:46:28 2024 +0800
[fix](Nereids) array_range not support amount without unit (#33231)
---
.../main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
index bd6b404efc9..874b6a0d432 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/parser/LogicalPlanBuilder.java
@@ -1733,7 +1733,7 @@ public class LogicalPlanBuilder extends
DorisParserBaseVisitor<Object> {
Expression end = (Expression) visit(ctx.end);
Expression step = (Expression) visit(ctx.unitsAmount);
- String unit = ctx.unit.getText();
+ String unit = ctx.unit == null ? null : ctx.unit.getText();
if (unit != null && !unit.isEmpty()) {
if ("Year".equalsIgnoreCase(unit)) {
return new ArrayRangeYearUnit(start, end, step);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]