Skip to content

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

Merged
pull[bot] merged 3 commits intocode:masterfrom
cube-js:master
May 4, 2026
Merged

[pull] master from cube-js:master#446
pull[bot] merged 3 commits intocode:masterfrom
cube-js:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 4, 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 : )

bsod90 and others added 3 commits May 4, 2026 07:59
Switch the JS-bridge `TransportService::load` path from row-oriented to columnar Cube REST responses, and add a parallel transform path in `cubesql` that consumes `{members, columns}` directly. Per-`DataType` coercion arms are deduplicated between row and columnar via a shared `transform_response_body!` macro (`build_column_iter_loop!` selects between `response.get(i, name)` per cell vs. one column slice fetched up front).

End-to-end median time, `String -> Value -> typed -> Vec<RecordBatch>`,
selected shapes (td = number of time dimensions):

Benchmark is done on my Apple M3 Max:

| rows   | cols | td | row (ms) | columnar (ms) | speedup |
|-------:|-----:|---:|---------:|--------------:|--------:|
|   1000 |    8 |  0 |     1.46 |          0.29 |   5.11× |
|   1000 |   64 |  0 |    11.07 |          2.40 |   4.62× |
|  10000 |    8 |  0 |    15.46 |          2.97 |   5.20× |
|  10000 |   64 |  0 |   162.30 |         23.93 |   6.78× |
|  10000 |   64 |  1 |   171.67 |         29.55 |   5.81× |
|  10000 |   64 |  2 |   174.06 |         34.76 |   5.01× |
|  50000 |   64 |  0 |  1041.10 |        166.99 |   6.23× |
| 100000 |    8 |  0 |   199.93 |         45.98 |   4.35× |
| 100000 |   64 |  0 |  2062.20 |        350.98 |   5.88× |
| 100000 |   64 |  2 |  2200.40 |        423.01 |   5.20× |

You can reproduce it by `cargo bench -p cubesql --bench transform_response`.
@pull pull Bot locked and limited conversation to collaborators May 4, 2026
@pull pull Bot added the ⤵️ pull label May 4, 2026
@pull pull Bot merged commit e38fc38 into code:master May 4, 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.

3 participants