版本:3.1.7
执行sql直接报错ERROR 1064 (HY000): Unknown error
sql:
set @update_start = date_sub(current_date, 1), @update_end = date_sub(current_date, 0)
;
select *
from
(
select
line_sales_bill_no
from
aly_edw_dws_sales.dws_sales_line_sales_bill_di a
where
(a.updated_time >= @update_start and a.updated_time < @update_end)
or
a.customer_id in (
select
customer_id
from
aly_edw_dim_pub.dim_pub_oc_dealer_zip_di
where
is_latest = 1
and
(updated_time >= @update_start and updated_time < @update_end)
)
or
a.product_id in (
select
product_id
from
aly_edw_dim_pub.dim_pub_oc_product_df
where
(updated_time >= @update_start and updated_time < @update_end)
)
or
a.character_id in (
select
character_id
from
aly_edw_dim_pub.dim_pub_oc_character_df
where
(updated_time >= @update_start and updated_time < @update_end)
)
or
a.corporation_id in (
select
office_id
from
aly_edw_dim_pub.dim_pub_oc_office_zip_di
where
is_latest = 1
and
(updated_time >= @update_start and updated_time < @update_end)
)
or
a.factory_id in (
select
office_id
from
aly_edw_dim_pub.dim_pub_oc_office_zip_di
where
is_latest = 1
and
(updated_time >= @update_start and updated_time < @update_end)
)
) t;
fe.warn.log信息:
java.util.NoSuchElementException: null
at java.util.ArrayList$Itr.next(ArrayList.java:1000) ~[?:?]
at com.google.common.collect.Ordering.min(Ordering.java:568) ~[spark-dpp-1.0.0.jar:?]
at com.google.common.collect.Ordering.min(Ordering.java:593) ~[spark-dpp-1.0.0.jar:?]
at com.starrocks.sql.optimizer.rule.join.JoinReorderDP.getBestExpr(JoinReorderDP.java:101) ~[starrocks-fe.jar:?]
at com.starrocks.sql.optimizer.rule.join.JoinReorderDP.enumerate(JoinReorderDP.java:48) ~[starrocks-fe.jar:?]
at com.starrocks.sql.optimizer.rule.join.JoinOrder.reorder(JoinOrder.java:226) ~[starrocks-fe.jar:?]
at com.starrocks.sql.optimizer.rule.join.ReorderJoinRule.enumerate(ReorderJoinRule.java:95) ~[starrocks-fe.jar:?]
at com.starrocks.sql.optimizer.rule.join.ReorderJoinRule.transform(ReorderJoinRule.java:230) ~[starrocks-fe.jar:?]
at com.starrocks.sql.optimizer.Optimizer.memoOptimize(Optimizer.java:551) ~[starrocks-fe.jar:?]
at com.starrocks.sql.optimizer.Optimizer.optimizeByCost(Optimizer.java:201) ~[starrocks-fe.jar:?]
at com.starrocks.sql.optimizer.Optimizer.optimize(Optimizer.java:134) ~[starrocks-fe.jar:?]
at com.starrocks.sql.StatementPlanner.createQueryPlanWithReTry(StatementPlanner.java:203) ~[starrocks-fe.jar:?]
at com.starrocks.sql.StatementPlanner.planQuery(StatementPlanner.java:123) ~[starrocks-fe.jar:?]
at com.starrocks.sql.StatementPlanner.plan(StatementPlanner.java:92) ~[starrocks-fe.jar:?]
at com.starrocks.sql.StatementPlanner.plan(StatementPlanner.java:61) ~[starrocks-fe.jar:?]
at com.starrocks.qe.StmtExecutor.execute(StmtExecutor.java:456) ~[starrocks-fe.jar:?]
at com.starrocks.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:366) ~[starrocks-fe.jar:?]
at com.starrocks.qe.ConnectProcessor.dispatch(ConnectProcessor.java:480) ~[starrocks-fe.jar:?]
at com.starrocks.qe.ConnectProcessor.processOnce(ConnectProcessor.java:756) ~[starrocks-fe.jar:?]
at com.starrocks.mysql.nio.ReadListener.lambda$handleEvent$0(ReadListener.java:69) ~[starrocks-fe.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
at java.lang.Thread.run(Thread.java:834) ~[?:?]