Skip to content

Conversation

@akolov
Copy link
Contributor

@akolov akolov commented Mar 11, 2025

Check List

  • Tests have been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

[For example #12]

Description of Changes Made (if issue reference is not provided)

[Description goes here]

akolov and others added 30 commits March 11, 2025 21:34
…tage behavior of non multi-stage members (#9211)
* chore(fast-reload): support fastReloadEnabled as a server option

* rename and add to python and rust
…erfiles

Co-authored-by: Joshua <joshua@storetrials.com>
…#9278)

This should avoid unexpected unifications of simplified expression in unrelated context. For example, same expression can be present in filter and projection, but due to over-unification in filters it can receive different representation in projection, and break aliases later, during extraction

Supporting changes:

* Remove unnecessary Vec+Box for rules

* Add NOW function template
A couple of unit tests with NOW and wrapper were relying on over-unification, and broke without a function template.

* Bump default rewrite iteration limit to 500
With new rules `select_many_filters` benchmark was hitting iteration limit
… td with filters (#9296)

* fix(schema-compiler): Fix ORDER BY clause generation for queries with td with filters

* add tests
* bold attempt to upgrade runners

* fix mongodb-bi version

* drop 2017-latest MSSQL from tests

* fix integrations tests CI Run

* dedup testcontainers package

* fix missed 2017-latest version

* attempt to fix Build cross image

* enable debug for mongobi

* revert mongobi

* edit to run integration tests on 2404

* try to update Build cross image to 2404

* use 22.04 for native builds
…n (#9286)

* fix(api-gateway): support proxy when fetching jwk for token validation

When fetching the JWK data needed to validate the auth token, the
environment proxy settings are not honored.

* Move proxy fix to cubejs-backend-shared instead and use that

* fix errors and mark getProxySettings() as deprecated

* optimize yarn.lock

* fix proxy

* Cache npm proxy

---------

Co-authored-by: Cory Johns <cory@stacklet.io>
Co-authored-by: Cory Johns <johnsca@gmail.com>
…uped join condition (#9282)

Before this only expressions like `CAST(left.dim AS TEXT) = CAST(right.col AS TEXT)` were supported.
TopN over calculated fields can actually generate joins with calculated field in condition, so we have to support condition like `CAST(left.dim1 AS TEXT) || CAST(left.dim2 AS TEXT) = CAST(right.col AS TEXT)`
Co-authored-by: Michael Irvine <michaelirvine@Michaels-MacBook-Pro.local>
Remove verbiage that says Cube team needs to enable AI API

Co-authored-by: Igor Lukanin <igor@cube.dev>
…d limits case (#8924)

Before this in Limit(Limit(CubeScan)) logical plan outer fetch and skip values would win.
Now they are calculated properly.
Now it should disallow any plans with ungrouped CubeScan inside, like Join(CubeScan, Projection(CubeScan(ungrouped=true)))

test_join_cubes_with_postprocessing was broken: it joined grouped CubeScan with ungrouped CubeScan by __cubeJoinField

test_join_cubes_with_postprocessing_and_no_cubejoinfield should already be covered by ungrouped-grouped join pushdown
…truction 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 polishment
marianore-muttdata and others added 19 commits March 11, 2025 21:34
… var (#9310)

* feat(pinot-driver): Add enableNullHandling=true to query options

* Add enableNullHandling=true to query options using env var CUBEJS_DB_NULL_HANDLING

* Add 'The Startree/Pinot null value support' to docs

* fix reference env var

* Update docs/pages/product/configuration/data-sources/pinot.mdx

Co-authored-by: Konstantin Burkalev <KSDaemon@gmail.com>

* Update docs/pages/reference/configuration/environment-variables.mdx

Co-authored-by: ron-damon <48366185+ron-damon@users.noreply.github.com>

* Update docs/pages/reference/configuration/environment-variables.mdx

Co-authored-by: ron-damon <48366185+ron-damon@users.noreply.github.com>

* Update packages/cubejs-backend-shared/src/env.ts

Co-authored-by: Konstantin Burkalev <KSDaemon@gmail.com>

* fix env var name

* Add docs for auth token config

---------

Co-authored-by: Igor Lukanin <igor@cube.dev>
Co-authored-by: sergisulca <sergio.sulca@muttdata.ai>
Co-authored-by: Sergio Sulca <104989816+sergisulca@users.noreply.github.com>
Co-authored-by: Konstantin Burkalev <KSDaemon@gmail.com>
Co-authored-by: ron-damon <48366185+ron-damon@users.noreply.github.com>
* Edits

* docs: Add actions to Access Control

* Fix
* refactor(cubesql): Use &str instead of &String

* refactor(backend-native): Extract create_session function

* refactor(backend-native): Extract with_session function

* refactor(cubesql): Extract QueryPlan::try_as_logical_plan

* feat: Add SQL queries support in /v1/sql endpoint

* Add docs

* Remove mention of data_source and query_plan response fields from /v1/sql docs

---------

Co-authored-by: Igor Lukanin <igor@cube.dev>
…9195)

Co-authored-by: Konstantin Burkalev <KSDaemon@gmail.com>
Bumps [ring](https://github.com/briansmith/ring) from 0.17.7 to 0.17.13.
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md)
- [Commits](https://github.com/briansmith/ring/commits)

---
updated-dependencies:
- dependency-name: ring
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [ring](https://github.com/briansmith/ring) from 0.17.8 to 0.17.13.
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md)
- [Commits](https://github.com/briansmith/ring/commits)

---
updated-dependencies:
- dependency-name: ring
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…h-to-Cube wrapper (#9318)

Supporting changes:

* Track used cube members in generate_sql_for_expr and generate_column_expr
* Use only actually used cubes in member expressions
Bumps [ring](https://github.com/briansmith/ring) from 0.17.8 to 0.17.13.
- [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md)
- [Commits](https://github.com/briansmith/ring/commits)

---
updated-dependencies:
- dependency-name: ring
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(cubejs-native): cubesql query logger span_id

* propagate span_id

* ref

* cleanup
@akolov akolov force-pushed the alex/redis-cache-driver branch from 014ab3c to 15181e4 Compare March 11, 2025 12:35
@akolov akolov merged commit 4a8bc8a into master Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.