[fix](udf) fix java-udf coredump as get env return nullptr (#30986)

This commit is contained in:
zhangstar333
2024-02-19 17:19:05 +08:00
committed by yiguolei
parent 277de979c3
commit 8a3e6644d4
4 changed files with 13 additions and 12 deletions

View File

@ -181,6 +181,8 @@ public class FoldConstantRuleOnBE extends AbstractExpressionRewriteRule {
tParams.setQueryOptions(tQueryOptions);
tParams.setQueryId(context.queryId());
// TODO: will be delete the debug log after find problem of timeout.
LOG.info("fold query {} ", DebugUtil.printId(context.queryId()));
Future<PConstantExprResult> future =
BackendServiceProxy.getInstance().foldConstantExpr(brpcAddress, tParams);
PConstantExprResult result = future.get(5, TimeUnit.SECONDS);