This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 202a38c4a24 [FIX](Nereid) ban nereids array func (#30896)
202a38c4a24 is described below
commit 202a38c4a241ee8b8bb08cde5a310911ebec3231
Author: amory <[email protected]>
AuthorDate: Tue Feb 6 19:49:04 2024 +0800
[FIX](Nereid) ban nereids array func (#30896)
---
.../apache/doris/nereids/trees/expressions/functions/scalar/Array.java | 1 +
.../suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/Array.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/Array.java
index faaef0ccd1a..104ad79ed63 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/Array.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/Array.java
@@ -77,6 +77,7 @@ public class Array extends ScalarFunction
*/
public Array(Expression... varArgs) {
super("array", varArgs);
+ throw new UnsupportedOperationException("Array function is not
supported yet.");
}
@Override
diff --git
a/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy
b/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy
index ad2b36dc271..47c52578730 100644
--- a/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy
+++ b/regression-test/suites/nereids_syntax_p0/test_timestamp_arithmetic.groovy
@@ -27,7 +27,7 @@ suite("nereids_timestamp_arithmetic") {
test {
sql = "select date '20200808' + interval array() day;"
- exception = "timestamp arithmetic could not contains complex type"
+ exception = "Array function is not supported yet"
}
sql """
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]