Skip to content

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

Merged
pull[bot] merged 2 commits intocode:masterfrom
cube-js:master
Apr 30, 2026
Merged

[pull] master from cube-js:master#436
pull[bot] merged 2 commits intocode:masterfrom
cube-js:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Apr 30, 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 : )

keydunov and others added 2 commits April 29, 2026 15:48
Replaces the legacy table-based policy editor walkthrough with the new
two-column builder centered on Base Role + Global + Deployment permissions.
Adds Steps walkthroughs for Viewer/Explorer/Developer flows, documents
the auto-bump-to-Developer behaviour, and refreshes the action catalog
reference to match what the new builder surfaces.

Made-with: Cursor
…uces wrong timestamps on engine v3 (#10779)

* fix(schema-compiler): remove AthenaQuery.convertTz override that produces wrong timestamps on engine v3

On Athena engine v3 (Trino-based), CAST(timestamp WITH TIME ZONE AS TIMESTAMP)
returns the UTC instant's wall-clock fields, not the local wall-clock at the
specified zone. The AthenaQuery.convertTz override used this pattern, silently
returning UTC wall-clock instead of the target timezone's wall-clock.

Remove the override so AthenaQuery inherits PrestodbQuery.convertTz, which
manually shifts by timezone_hour + timezone_minute offsets before casting.

Add a unit test to verify AthenaQuery.convertTz uses the manual offset
calculation rather than the broken simplified cast.

Co-authored-by: Pavel Tiunov <pavel.tiunov@gmail.com>

* test(testing-drivers): add E2E test for non-UTC timezone month bucketing

Add a testQueries test case that queries ECommerce.count by month with
timezone 'Asia/Kolkata'. This exercises the convertTz code path in a
full Cube API stack to verify that non-UTC timezones produce correct
monthly time dimension bucketing on Athena (and all other drivers).

Co-authored-by: Pavel Tiunov <pavel.tiunov@gmail.com>

* fix(testing-drivers): use customOrderDateNoPreAgg to avoid pre-aggregation mismatch

The non-UTC timezone test was failing because ECommerce.count with
orderDate matched the MultiTimeDimForCount pre-aggregation, which was
only built for UTC. Switch to customOrderDateNoPreAgg time dimension
which has no pre-aggregation, so the query goes directly to the source
database and exercises the convertTz code path.

Co-authored-by: Pavel Tiunov <pavel.tiunov@gmail.com>

* feat(testing-drivers): add snapshot for 'count by month + order with non-UTC timezone (Asia/Kolkata)' test

Co-authored-by: Pavel Tiunov <pavel.tiunov@gmail.com>

* fix(testing-drivers): use numeric values in MySQL snapshot for count

MySQL returns count values as numbers, not strings. Update the snapshot
to match MySQL's actual output format.

Co-authored-by: Pavel Tiunov <pavel.tiunov@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@pull pull Bot locked and limited conversation to collaborators Apr 30, 2026
@pull pull Bot added the ⤵️ pull label Apr 30, 2026
@pull pull Bot merged commit f395432 into code:master Apr 30, 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