You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d78bb71
Browse filesBrowse the repository at this point in the historyBrowse files
[fix](fe) Check nested casts and runtime filter cache eligibility
### What problem does this PR solve?
Issue Number: None
Related PR: #68672
Problem Summary: TIME-to-date conversions inside ARRAY, MAP and STRUCT casts
use the query date, but the outer container cast was classified as
deterministic. SQL, query and condition caches could therefore reuse results
across dates. Runtime-filter probe expressions such as
CAST(CAST(p.s AS TIME) AS DATETIME) also bypassed scan predicate eligibility
checks and could reuse stale all-false ranges.
Recursively inspect source/target container types and apply shared expression
eligibility to singleton and grouped runtime-filter targets, including implicit
probe casts. Preserve known-NULL folding, cast legality checks and cache use
for deterministic expressions. Add planner, expression and translator unit
coverage and verify zero BE cache lookups for the affected scans.
### Release note
Prevent incorrect cached results for nested TIME-to-date conversions and
query-date-dependent runtime-filter probes.
### Check List (For Author)
- Test: Unit Test / Regression test / Manual test
- 102 FE unit tests across seven targeted classes passed.
- FE build with Checkstyle passed.
- condition_cache_eligibility output generation and verification passed.
- test_cast_time_to_datetime and test_array_functions_by_literal passed.
- Existing ASAN BE, rebuilt FE; deterministic ConditionCacheHit=1 and
ConditionCacheFilteredRows=79872, volatile scans have zero lookup deltas.
- Behavior changed: Yes, unsafe nested casts and runtime-filter probes bypass caching.
- Does this need documentation: No
Copy file name to clipboardExpand all lines: fe/fe-core/src/test/java/org/apache/doris/nereids/glue/translator/RuntimeFilterTranslatorBucketPruneTest.java
0 commit comments