Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Oct 25, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

KSDaemon and others added 3 commits October 24, 2025 16:29
…n Tesseract (#10078)

* fix formatInterval() as MySQL doesn't support milliseconds

* more types

* add ilike templates for tesseract

* add time_series_* templates

* update snapshots

* add mysql + tesseract tests in CI

* skip some tests for tesseract

* cast as TIMESTAMP

* skip some tests for tesseract

* fix templates

* skip some tests for tesseract

* fix templates

* update snapshots

* fix skip tests
)

* add cache option to the query

* Pass CacheMode from /cubesql to backend

* imject CacheMode into more places

* update normalizeQuery with cache mode

* pass cache mode within graphql

* pass new cache mode in sqlApiLoad in API GW

* fix types imports

* update preAggs to use cache option instead of renewQuery

* code polish

* comments with types

* fix query type

* set default  cacheMode = 'stale-if-slow' in normalize()

* more types and polish

* backbone code for 'stale-if-slow' & 'stale-while-revalidate'

* make query cache aware of queryBody.cache === 'must-revalidate'

* First attempt to implement 'no-cache' scenario

* add cache to open api spec and regenerate rust client

* pass cache mode to cubeScan

* cargo clippy/fmt

* Implement background refresh

* add cache mode descriptions

* remove query cache mode from normalize query

* pass cacheMode to getSqlResponseInternal

* remove obsolete

* add cacheMode as input param in orchestratorApi

* open api spec fix

* fix cubesql after introducing cacheMode

* rename cache → cacheMode

* clean up obsolete

* pass cache_mode from SqlApiLoadPayload

* fix important

* move 'no-cache' variant into queryCache.cachedQueryResult()

* remove cacheMode from client query body types (it's incorrect)

* switch RefreshScheduler to use cacheMode instead of renewQuery

* remove obsolete continueWait flag

* fix refresh scheduler

* add fallback to renewQuery in api gw

* fix tests

* Docs

* Deprecation

* refactor api gw: move copy/paste into this.normalizeCacheMode()

* fix tests snapshots

* return cacheMode into query object

* fix tests

* some cleanup (removed renewQuery)

* update cacheMod in graphql

* return back cache as public prop in query

* fix

* lint fix

# Conflicts:
#	packages/cubejs-api-gateway/package.json

* fix subscribe()

* remove cache from subscribe

* fix CacheMode serialization

* refactor: move normalizeQueryCacheMode to normalize

---------

Co-authored-by: Igor Lukanin <igor@cube.dev>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.