Skip to content

Conversation

@mcheshkov
Copy link
Contributor

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

@mcheshkov mcheshkov marked this pull request as ready for review April 4, 2025 14:18
@mcheshkov mcheshkov requested a review from a team as a code owner April 4, 2025 14:18
)
))
.map(cube => {
.flatMap(cube => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

const cubes = type === 'dimensions' ? cube.cubes.map((it) => {
const fullPath = this.evaluateReferences(null, it.joinPath, { collectJoinHints: true });
// TODO recheck `it.joinPath` typing
const fullPath = this.evaluateReferences(null, it.joinPath as () => { toString(): string }, { collectJoinHints: true });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be better to define an interface for () => { toString(): string } instead of copy-pasting many times it as () => { toString(): string } ? At least for now. wdyt?

Copy link
Member

@KSDaemon KSDaemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻 LGTM After the copy-paste removal :)

@mcheshkov mcheshkov force-pushed the evaluator-symbols-more-types branch from b9b829d to d6d638c Compare April 8, 2025 12:29
@codecov
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

Attention: Patch coverage is 85.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 47.86%. Comparing base (452633c) to head (d6d638c).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...bejs-schema-compiler/src/compiler/CubeEvaluator.ts 50.00% 3 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (452633c) and HEAD (d6d638c). Click for more details.

HEAD has 2 uploads less than BASE
Flag BASE (452633c) HEAD (d6d638c)
cubesql 2 0
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #9429       +/-   ##
===========================================
- Coverage   76.40%   47.86%   -28.55%     
===========================================
  Files         400      171      -229     
  Lines      104055    21312    -82743     
  Branches     3685     3687        +2     
===========================================
- Hits        79508    10201    -69307     
+ Misses      24112    10676    -13436     
  Partials      435      435               
Flag Coverage Δ
cube-backend 47.86% <85.00%> (-0.02%) ⬇️
cubesql ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcheshkov mcheshkov merged commit a4fc5ec into master Apr 8, 2025
59 checks passed
@mcheshkov mcheshkov deleted the evaluator-symbols-more-types branch April 8, 2025 13:38
marianore-muttdata pushed a commit to MuttData/cube that referenced this pull request Jun 17, 2025
…and DynamicReference (cube-js#9429)

* refactor(schema-compiler): More types in CubeEvaluator

* refactor(schema-compiler): Port DynamicReference to TypeScript

* refactor(schema-compiler): More types in CubeSymbols

* refactor(schema-compiler): Extract ToString type
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.

3 participants