Skip to content

[pull] master from cube-js:master#467

Merged
pull[bot] merged 3 commits into
code:masterfrom
cube-js:master
May 13, 2026
Merged

[pull] master from cube-js:master#467
pull[bot] merged 3 commits into
code:masterfrom
cube-js:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 13, 2026

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 : )

ovr and others added 3 commits May 13, 2026 17:24
…anning (#10874)

In `get_vanilla_row`, the "deprecated time dimensions without granularity" pass used to rebuild a per-row `HashMap<&str, (level, value)>` to pick the lowest-level granularity column per base dimension, then re-emit each winner under the bare `{cube}.{dim}` key. The winner is fully determined by the plan (granularity levels are static per column), so the selection is moved into `build_vanilla_plan` once, and `get_vanilla_row` just copies the already-transformed value out of the row IndexMap.

Benchmarks (`bench_transform_time_scenarios`, vanilla, c16 Γ— r100k, vs master):

| scenario                       |   mean   | change vs master | 95% CI            |
|--------------------------------|---------:|-----------------:|-------------------|
| one_time_dim_day               | 154.3 ms |          βˆ’4.40% | [βˆ’6.89%, βˆ’1.85%] |
| one_time_dim_custom_granularity| 143.8 ms |         βˆ’10.70% | [βˆ’12.34%, βˆ’8.82%]|
| two_time_dims                  | 198.7 ms |         βˆ’10.11% | [βˆ’11.49%, βˆ’8.78%]|
| no_time_dim (fast path)        |  84.9 ms |          +3.58% | within noise     |
Signed-off-by: Alex Qyoun-ae <4062971+MazterQyou@users.noreply.github.com>
| scenario                                       | master    | new       | Ξ”      |
|------------------------------------------------|-----------|-----------|--------|
| vanilla/c64_r10000                             | (master)  | 14.9 ms   | βˆ’52.9% |
| vanilla/c64_r50000                             | 154.2 ms  | 76.7 ms   | βˆ’50.3% |
| vanilla/c64_r100000                            | 312.8 ms  | 164.2 ms  | βˆ’47.5% |
| scenarios/no_time_dim/c16_r100000              | 86.2 ms   | 58.5 ms   | βˆ’32.1% |
| scenarios/one_time_dim_day/c16_r100000         | 157.1 ms  | 142.3 ms  | βˆ’9.4%  |
| scenarios/one_time_dim_custom_gran/c16_r100000 | 163.6 ms  | 133.1 ms  | βˆ’18.6% |
| scenarios/two_time_dims/c16_r100000            | 217.9 ms  | 190.6 ms  | βˆ’12.5% |
@pull pull Bot locked and limited conversation to collaborators May 13, 2026
@pull pull Bot merged commit 3975ae3 into code:master May 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants