Repository navigation
fix: include resultFormat and joda in TimeDimExtractionFn cache key - #20891
Conversation
getCacheKey() only covered timeFormat, so two time extraction functions that differed only in resultFormat or joda produced the same cache key and could be served each other's cached results. Build the key with CacheKeyBuilder from all three fields.
FrankChen021
left a comment
There was a problem hiding this comment.
🟢 Approval recommended
No actionable issues found in this review. The cache key now distinguishes all three TimeDimExtractionFn fields that affect parsing and formatting, and the added test covers the relevant differences.
Reviewed 2 of 2 changed files.
Validation: git diff --check passed for the supplied PR diff; no tests or builds were run.
This is an automated review by Codex GPT-5.6-Luna(max)
FrankChen021
left a comment
There was a problem hiding this comment.
🟢 Approval recommended
No actionable issues found in this review. The cache key now distinguishes all three fields affecting TimeDimExtractionFn, and the regression test covers equality plus differences in each field.
Reviewed 2 of 2 changed files. The incremental diff's 401 paths were upstream merge synchronization and excluded from the PR-specific count.
Validation: git diff --check passed; no tests or builds were run.
This is an automated review by Codex GPT-5.6-Luna(max)
Description
The
timeextraction function (TimeDimExtractionFn) built its cache key fromtimeFormatonly. Two functions with the sametimeFormatbut a differentresultFormatorjodasetting got the same key, so a query could be served cached results in the wrong output format.The cache key now includes all three fields. Existing cache entries for this function will miss once after upgrading.
Release note
Fixed a bug where queries using the
timeextraction function could return cached results computed with a differentresultFormatorjodasetting.Key changed/added classes in this PR
TimeDimExtractionFnThis PR has: