Sergey Rachev
09/04/2024, 10:03 AMcreate temporary view cxq_internal_service_level_indicator_psm_5sec_over_1hour_objective_filter
as
select
*
from
cxq_internal_service_level_indicator_psm_5sec_over_1hour_objective_explode slo
where
slo.measurement_type = 'psm'
and slo.measurement_flavor = '5s'
and slo.metric_interval_unit = 'hour'
and slo.metric_interval_duration = 1
and slo.nested_type is null;
Sergey Rachev
09/04/2024, 10:06 AMLogicalFilter(condition=[AND(=($45, _UTF-16LE'psm'), =($46, _UTF-16LE'5s'), =($51, _UTF-16LE'hour'), =($52, 1), IS NULL($57))])
Physical plan has just Calc node with no where part, but instead it just returns literals as is:
LogicalFilter(condition=[AND(=($45, _UTF-16LE'psm'), =($46, _UTF-16LE'5s'), =($51, _UTF-16LE'hour'), =($52, 1), IS NULL($57))])
(сut for brevity)Sergey Rachev
09/04/2024, 10:07 AMSergey Rachev
09/04/2024, 10:17 AM+- [19]:Calc(select=[bsid, CAST(9001 AS INTEGER) AS sdfid, .....], where=[(sdfid = 9001)]),
still fancy optimizer behaviour to return filter value as a literal, but fine as it works.Sergey Rachev
09/06/2024, 4:56 PM