Commit ef12d8d
authored
fix(query-orchestrator): Fix improper pre-aggregation buildRange construction for non UTC timezones (#9284)
* improve partitionTableName() in PreAggregationPartitionRangeLoader
* make loadBuildRange() timezone-aware + align tests
* fix loadBuildRange() to use inDbTimeZone()
* return back utcToLocalTimeZone
* return back utcToLocalTimeZone in replaceQueryBuildRangeParams
* rename inDbTimeZone to localTimestampToUtc
* small improvement in BaseFilter format*Date
* remove unneeded
* another round in loadBuildRange()
* optimize to avoid doble ts convertion, add ts format to loadBuildRange()
* fix/specify some types
* fix invalidateKeyQueries not to be in the future
* fix correct extractDate parsing
* fix localTimestampToUtc()
* tests for all time functions
* revert change for sealAt
* fix tests
* fix extractDate and rename it to parseLocalDate
* fix tests for parseLocalDate()
* align PreAggregationPartitionRangeLoader with changes
* fix BaseDbRunner
* fix date formatting in replacePartitionSqlAndParams
* fix tests
* spelling
* add more tests for timeSeries()
* add tests for reformatUtcTimestamp()
* refactor alignToOrigin()
* convert to utc only in replacePartitionSqlAndParams()
* remove reformatUtcTimestamp() as oblsolete
* code polish
* remove unused redis-related utils
* move widely used ts format literal to const
* more tests for PreAggregationPartitionRangeLoader.intersectDateRanges()
* some improvements in tests
* some tests for PreAggregationPartitionRangeLoader
* some test polishment1 parent 3174be1 commit ef12d8d
File tree
17 files changed
+846
-340
lines changed- packages
- cubejs-base-driver/src
- cubejs-cubestore-driver/src
- cubejs-query-orchestrator
- src/orchestrator
- test/unit
- cubejs-schema-compiler
- src/adapter
- test/integration/utils
- cubejs-server-core
- src/core
- test/unit
17 files changed
+846
-340
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
| 81 | + | |
92 | 82 | | |
93 | 83 | | |
94 | | - | |
95 | | - | |
96 | 84 | | |
97 | | - | |
| 85 | + | |
98 | 86 | | |
99 | 87 | | |
100 | 88 | | |
101 | | - | |
102 | | - | |
103 | 89 | | |
104 | 90 | | |
105 | | - | |
| 91 | + | |
106 | 92 | | |
107 | 93 | | |
108 | 94 | | |
| |||
192 | 178 | | |
193 | 179 | | |
194 | 180 | | |
195 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
196 | 188 | | |
197 | 189 | | |
198 | 190 | | |
| |||
217 | 209 | | |
218 | 210 | | |
219 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
220 | 218 | | |
221 | | - | |
| 219 | + | |
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
| |||
227 | 225 | | |
228 | 226 | | |
229 | 227 | | |
230 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| |||
247 | 251 | | |
248 | 252 | | |
249 | 253 | | |
250 | | - | |
| 254 | + | |
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
255 | 259 | | |
256 | 260 | | |
257 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
258 | 286 | | |
259 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
260 | 293 | | |
261 | 294 | | |
262 | 295 | | |
| |||
0 commit comments