Apache Doris 中文技术论坛
Questions Tags Users Badges

Doris3.0读取Hive分区表,UDF格式化时间,过滤分区,列裁剪没有生效,导致全表扫描

Asked Feb 26, 2025 Modified Jan 1, 0001
Viewed 128
3.0 catalog query performance

image.png
image.png

edited Jan 1, 0001
Justin1
asked Feb 26, 2025
2 Answers

可以试一下 set enable_fold_constant_by_be=true 后再执行,或者explain 看下结果

edited Jan 1, 1970
morningman482
answered Feb 26, 2025

你的需求是希望自定义函数也能达到分区裁剪的效果吗?如果是的话麻烦提供下udf代码以及具体的Doris版本号、表结构及查询语句(可以简化)、explain。
Doris版本号可通过

-- 查看Doris版本:
  SELECT @@VERSION_COMMENT;
edited Jan 1, 1970
黄海军@SelectDB5218
answered Feb 26, 2025
Related Questions
doris 3.0.0数据库,be和fe服务器异常关机,有分区导致通多个tabletid3副本变成version_error
INSERT OVERWRITE可以使用JOB创建定时任务吗
1 answers
Doris CASE WHEN 嵌套 IF 查询精度丢失情况
1 answers
无法访问es的catalog, 感觉功能上有瑕疵
2 answers
【严重故障】doris create table 卡住,死锁,重启fe节点才能恢复服务
1 answers
服务于智能体的Doris湖仓架构该怎么画
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.