Skip to content

Commit

Permalink
chore: Expanding the payload in the Load Request event, added memberN…
Browse files Browse the repository at this point in the history
…ames (#8356)
  • Loading branch information
RusovDmitriy authored Jun 20, 2024
1 parent 1d87a9e commit 6c26ff1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/cubejs-schema-compiler/src/adapter/BaseQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -2387,6 +2387,10 @@ export class BaseQuery {
return R.uniq(context.memberNames);
}

collectAllMemberNames() {
return R.flatten(this.collectFromMembers(false, this.collectMemberNamesFor.bind(this), 'collectAllMemberNames'));
}

collectMultipliedMeasures(context) {
return (fn) => {
const foundCompositeCubeMeasures = {};
Expand Down
3 changes: 2 additions & 1 deletion packages/cubejs-server-core/src/core/CompilerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export class CompilerApi {
aliasNameToMember: sqlGenerator.aliasNameToMember,
rollupMatchResults: includeDebugInfo ?
sqlGenerator.preAggregations.rollupMatchResultDescriptions() : undefined,
canUseTransformedQuery: sqlGenerator.preAggregations.canUseTransformedQuery()
canUseTransformedQuery: sqlGenerator.preAggregations.canUseTransformedQuery(),
memberNames: sqlGenerator.collectAllMemberNames(),
}));

if (this.sqlCache) {
Expand Down

0 comments on commit 6c26ff1

Please sign in to comment.