You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/04/10 08:03:52 UTC
(doris) 07/13: [fix](Nereids) array_range not support amount without unit (#33231)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch 2.1-tmp
in repository https://gitbox.apache.org/repos/asf/doris.git
commit bcc819ddd93cd4af3efa4e1b099c83c2d21c51bd
Author: morrySnow <10...@users.noreply.github.com>
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 247df0e2d68..9d5af19e0ee 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
@@ -1719,7 +1719,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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org