@finos/legend-application-query 13.8.15 → 13.8.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/LegendQueryApplicationConfig.d.ts +4 -0
- package/lib/application/LegendQueryApplicationConfig.d.ts.map +1 -1
- package/lib/application/LegendQueryApplicationConfig.js +5 -0
- package/lib/application/LegendQueryApplicationConfig.js.map +1 -1
- package/lib/components/QueryEditor.d.ts.map +1 -1
- package/lib/components/QueryEditor.js +74 -6
- package/lib/components/QueryEditor.js.map +1 -1
- package/lib/components/data-product/LegendQueryDataProductQueryBuilder.d.ts.map +1 -1
- package/lib/components/data-product/LegendQueryDataProductQueryBuilder.js +5 -4
- package/lib/components/data-product/LegendQueryDataProductQueryBuilder.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/light-mode.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.d.ts +11 -0
- package/lib/stores/LegendQueryApplicationPlugin.d.ts.map +1 -1
- package/lib/stores/LegendQueryApplicationPlugin.js.map +1 -1
- package/lib/stores/QueryEditorStore.d.ts.map +1 -1
- package/lib/stores/QueryEditorStore.js +23 -10
- package/lib/stores/QueryEditorStore.js.map +1 -1
- package/package.json +13 -13
- package/src/application/LegendQueryApplicationConfig.ts +11 -0
- package/src/components/QueryEditor.tsx +188 -0
- package/src/components/data-product/LegendQueryDataProductQueryBuilder.tsx +8 -4
- package/src/stores/LegendQueryApplicationPlugin.tsx +16 -0
- package/src/stores/QueryEditorStore.ts +26 -14
|
@@ -75,6 +75,7 @@ import {
|
|
|
75
75
|
QueryExplicitExecutionContextInfo,
|
|
76
76
|
QueryDataProductNativeExecutionContextInfo,
|
|
77
77
|
QueryDataProductModelAccessExecutionContextInfo,
|
|
78
|
+
QueryDataProductLakehouseExecutionContextInfo,
|
|
78
79
|
ModelAccessPointGroup,
|
|
79
80
|
type DataProduct,
|
|
80
81
|
LakehouseRuntime,
|
|
@@ -496,10 +497,12 @@ export abstract class QueryEditorStore {
|
|
|
496
497
|
this.queryBuilderState,
|
|
497
498
|
'Query builder state required to build query to edit',
|
|
498
499
|
);
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
500
|
+
if (this.queryBuilderState.requiresMappingForExecution) {
|
|
501
|
+
assertNonNullable(
|
|
502
|
+
this.queryBuilderState.executionContextState.mapping,
|
|
503
|
+
'Query required mapping to update',
|
|
504
|
+
);
|
|
505
|
+
}
|
|
503
506
|
query.executionContext =
|
|
504
507
|
this.queryBuilderState.getQueryExecutionContext();
|
|
505
508
|
query.content =
|
|
@@ -1920,7 +1923,9 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
|
1920
1923
|
queryInfo?.executionContext instanceof
|
|
1921
1924
|
QueryDataProductNativeExecutionContextInfo ||
|
|
1922
1925
|
queryInfo?.executionContext instanceof
|
|
1923
|
-
QueryDataProductModelAccessExecutionContextInfo
|
|
1926
|
+
QueryDataProductModelAccessExecutionContextInfo ||
|
|
1927
|
+
queryInfo?.executionContext instanceof
|
|
1928
|
+
QueryDataProductLakehouseExecutionContextInfo
|
|
1924
1929
|
)
|
|
1925
1930
|
) {
|
|
1926
1931
|
yield flowResult(this.buildFullGraph());
|
|
@@ -2147,16 +2152,23 @@ export class ExistingQueryEditorStore extends QueryEditorStore {
|
|
|
2147
2152
|
return classQueryBuilderState;
|
|
2148
2153
|
} else if (
|
|
2149
2154
|
exec instanceof QueryDataProductNativeExecutionContextInfo ||
|
|
2150
|
-
exec instanceof QueryDataProductModelAccessExecutionContextInfo
|
|
2155
|
+
exec instanceof QueryDataProductModelAccessExecutionContextInfo ||
|
|
2156
|
+
exec instanceof QueryDataProductLakehouseExecutionContextInfo
|
|
2151
2157
|
) {
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2158
|
+
let executionContextId: string;
|
|
2159
|
+
let accessType: DataProductAccessType;
|
|
2160
|
+
if (exec instanceof QueryDataProductNativeExecutionContextInfo) {
|
|
2161
|
+
executionContextId = exec.executionKey;
|
|
2162
|
+
accessType = DataProductAccessType.NATIVE;
|
|
2163
|
+
} else if (
|
|
2164
|
+
exec instanceof QueryDataProductModelAccessExecutionContextInfo
|
|
2165
|
+
) {
|
|
2166
|
+
executionContextId = exec.accessPointGroupId;
|
|
2167
|
+
accessType = DataProductAccessType.MODEL;
|
|
2168
|
+
} else {
|
|
2169
|
+
executionContextId = exec.accessPointId;
|
|
2170
|
+
accessType = DataProductAccessType.LAKEHOUSE;
|
|
2171
|
+
}
|
|
2160
2172
|
const artifact = await this.fetchDataProductArtifact(
|
|
2161
2173
|
queryInfo.groupId,
|
|
2162
2174
|
queryInfo.artifactId,
|