Skip to content

Commit

Permalink
fix data cube in query builder (#3719)
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioUyaguari authored Dec 6, 2024
1 parent f796fff commit d6f28c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .changeset/thirty-seals-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
'@finos/legend-query-builder': patch
---
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
const columns = (await this.getRelationalType(this.selectInitialQuery))
.columns;
const query = new DataCubeQuery();
query.query = `|~[${columns.map((e) => `'${e.name}'`)}]->select()`;
query.query = `~[${columns.map((e) => `'${e.name}'`)}]->select()`;
const source = new QueryBuilderDataCubeSource();
source.sourceColumns = columns;
source.mapping = this.mappingPath;
Expand All @@ -129,10 +129,7 @@ export class QueryBuilderDataCubeEngine extends DataCubeEngine {
private buildRawLambdaFromValueSpec(query: V1_Lambda): RawLambda {
const json = guaranteeType(
V1_deserializeRawValueSpecification(
V1_serializeValueSpecification(
query.body[0] as V1_ValueSpecification,
[],
),
V1_serializeValueSpecification(query, []),
),
V1_RawLambda,
);
Expand Down

0 comments on commit d6f28c4

Please sign in to comment.