分区裁剪是否生效

【StarRocks版本】例如:2.5
【集群规模】例如:3节点(fe与be混部)
【背景】在业务上,需要根据传入的任务号,去一个任务表中获取任务所在日期-也是分区值,再基于这些分区值去另一张业务大表中查询相关的数据,想知道是否有进行分区裁剪的优化
【详述】
请问下,有几种写法,看执行计划,感觉也是没有走分区裁剪的,能不能帮确认下。tableA的分区字段是source_day,tableA有500个日期的分区
写法一:select t1.* from tableA t1 where source_day in(select distinct str_to_date(substr(source,1,8),’%Y-%m-%d’) as source_day from tableB)
执行计划显示,partitions:172/500,实际子查询的结果应该是只有几天的日期
写法二:create table tableC as select distinct str_to_date(substr(source,1,8),’%Y-%m-%d’) as source_day from tableB;
select t1.* from tableA t1 join tableC t2 on t1.source_day=t2.source_day;
执行计划也一样显示,partitions:172/500
写法三:select count(*) from tableA
执行计划显示,查询的分区数也是172/500
这三种场景下,分区裁剪是否真的生效了