@finos/legend-query-builder 3.2.8 → 3.2.10
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilderResultPanel.d.ts +1 -0
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +12 -6
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.d.ts.map +1 -1
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js +2 -2
- package/lib/components/execution-plan/SQLExecutionNodeViewer.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +29 -9
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +1 -0
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +26 -5
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +5 -0
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts +1 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/package.json +9 -9
- package/src/components/QueryBuilderResultPanel.tsx +15 -6
- package/src/components/execution-plan/SQLExecutionNodeViewer.tsx +2 -2
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +32 -16
- package/src/stores/QueryBuilderResultState.ts +43 -18
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +5 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -4
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +5 -3
@@ -14,6 +14,7 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import type { QueryBuilderState } from '../stores/QueryBuilderState.js';
|
17
|
+
export declare const tryToFormatSql: (sql: string) => string;
|
17
18
|
export declare const QueryBuilderResultPanel: ((props: {
|
18
19
|
queryBuilderState: QueryBuilderState;
|
19
20
|
}) => import("react/jsx-runtime").JSX.Element) & {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderResultPanel.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8BH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AA+DxE,eAAO,MAAM,cAAc,QAAS,MAAM,KAAG,MAO5C,CAAC;AA4VF,eAAO,MAAM,uBAAuB,WAC1B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAuWjD,CAAC"}
|
@@ -33,6 +33,15 @@ import { QUERY_BUILDER_TEST_ID } from '../__lib__/QueryBuilderTesting.js';
|
|
33
33
|
import { DataGrid, } from '@finos/legend-lego/data-grid';
|
34
34
|
import { CODE_EDITOR_LANGUAGE, CodeEditor, } from '@finos/legend-lego/code-editor';
|
35
35
|
import { ExecutionPlanViewer } from './execution-plan/ExecutionPlanViewer.js';
|
36
|
+
export const tryToFormatSql = (sql) => {
|
37
|
+
try {
|
38
|
+
const formattedSql = formatSQL(sql);
|
39
|
+
return formattedSql;
|
40
|
+
}
|
41
|
+
catch {
|
42
|
+
return sql;
|
43
|
+
}
|
44
|
+
};
|
36
45
|
const QueryBuilderGridResultContextMenu = observer(forwardRef(function QueryBuilderResultContextMenu(props, ref) {
|
37
46
|
const { event, tdsState } = props;
|
38
47
|
const applicationStore = useApplicationStore();
|
@@ -245,16 +254,13 @@ export const QueryBuilderResultPanel = observer((props) => {
|
|
245
254
|
resultState.pressedRunQuery.inProgress();
|
246
255
|
if (queryParametersState.parameterStates.length) {
|
247
256
|
queryParametersState.parameterValuesEditorState.open(() => flowResult(resultState.runQuery()).catch(applicationStore.alertUnhandledError), PARAMETER_SUBMIT_ACTION.RUN);
|
248
|
-
resultState.pressedRunQuery.complete();
|
249
257
|
}
|
250
258
|
else {
|
251
259
|
flowResult(resultState.runQuery()).catch(applicationStore.alertUnhandledError);
|
252
260
|
}
|
261
|
+
resultState.pressedRunQuery.complete();
|
253
262
|
};
|
254
|
-
const cancelQuery = () =>
|
255
|
-
resultState.setIsRunningQuery(false);
|
256
|
-
queryBuilderState.resultState.setQueryRunPromise(undefined);
|
257
|
-
};
|
263
|
+
const cancelQuery = applicationStore.guardUnhandledError(() => flowResult(resultState.cancelQuery()));
|
258
264
|
const generatePlan = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(false)));
|
259
265
|
const debugPlanGeneration = applicationStore.guardUnhandledError(() => flowResult(resultState.generatePlan(true)));
|
260
266
|
const changeLimit = (event) => {
|
@@ -289,7 +295,7 @@ export const QueryBuilderResultPanel = observer((props) => {
|
|
289
295
|
const resultDescription = executionResult
|
290
296
|
? getResultSetDescription(executionResult)
|
291
297
|
: undefined;
|
292
|
-
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_PANEL, className: "panel query-builder__result", children: [showSqlModal && executedSqls && (_jsx(Dialog, { open: Boolean(showSqlModal), onClose: () => setShowSqlModal(false), children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Executed SQL Query" }), _jsx(ModalBody, { className: "query-builder__sql__modal", children: _jsxs(_Fragment, { children: [_jsx(CodeEditor, { inputValue:
|
298
|
+
return (_jsxs("div", { "data-testid": QUERY_BUILDER_TEST_ID.QUERY_BUILDER_RESULT_PANEL, className: "panel query-builder__result", children: [showSqlModal && executedSqls && (_jsx(Dialog, { open: Boolean(showSqlModal), onClose: () => setShowSqlModal(false), children: _jsxs(Modal, { className: "editor-modal", darkMode: true, children: [_jsx(ModalHeader, { title: "Executed SQL Query" }), _jsx(ModalBody, { className: "query-builder__sql__modal", children: _jsxs(_Fragment, { children: [_jsx(CodeEditor, { inputValue: tryToFormatSql(executedSql), isReadOnly: true, language: CODE_EDITOR_LANGUAGE.SQL, hideMinimap: true }), _jsx(PanelDivider, {})] }) }), _jsxs(ModalFooter, { children: [_jsx(ModalFooterButton, { formatText: false, onClick: () => copyExpression(executedSql), text: "Copy SQL to Clipboard" }), _jsx(ModalFooterButton, { onClick: () => setShowSqlModal(false), text: "Close" })] })] }) })), _jsxs("div", { className: "panel__header", children: [_jsxs("div", { className: "panel__header__title", children: [_jsx("div", { className: "panel__header__title__label", children: "result" }), executedSqls && (_jsx(Button, { onClick: () => setShowSqlModal(true), title: "Executed SQL", className: "query-builder__result__sql__actions", children: _jsx(SQLIcon, {}) })), resultState.pressedRunQuery.isInProgress && (_jsx("div", { className: "panel__header__title__label__status", children: "Running Query..." })), _jsx("div", { className: "query-builder__result__analytics", children: resultDescription ?? '' }), executionResult && resultState.checkForStaleResults && (_jsxs("div", { className: "query-builder__result__stale-status", children: [_jsx("div", { className: "query-builder__result__stale-status__icon", children: _jsx(ExclamationTriangleIcon, {}) }), _jsx("div", { className: "query-builder__result__stale-status__label", children: "Preview data might be stale" })] }))] }), _jsxs("div", { className: "panel__header__actions query-builder__result__header__actions", children: [allowSettingPreviewLimit && (_jsxs("div", { className: "query-builder__result__limit", children: [_jsx("div", { className: "query-builder__result__limit__label", children: "preview limit" }), _jsx("input", { className: "input--dark query-builder__result__limit__input", spellCheck: false, type: "number", value: resultState.previewLimit, onChange: changeLimit, disabled: !isQueryValid })] })), resultState.isRunningQuery ? (_jsx("button", { className: "query-builder__result__stop-btn", onClick: cancelQuery, tabIndex: -1, disabled: !isQueryValid, children: _jsxs("div", { className: "btn--dark btn--caution query-builder__result__stop-btn__label", children: [_jsx(PauseCircleIcon, { className: "query-builder__result__stop-btn__label__icon" }), _jsx("div", { className: "query-builder__result__stop-btn__label__title", children: "Stop" })] }) })) : (_jsxs("div", { className: "query-builder__result__execute-btn", children: [_jsxs("button", { className: "query-builder__result__execute-btn__label", onClick: runQuery, tabIndex: -1, title: allValidationIssues.length
|
293
299
|
? `Query is not valid:\n${allValidationIssues
|
294
300
|
.map((issue) => `\u2022 ${issue}`)
|
295
301
|
.join('\n')}`
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAA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,IACF,EACN,MAAC,YAAY,eACX,KAAC,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderResultPanel.js","sourceRoot":"","sources":["../../src/components/QueryBuilderResultPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,IAAI,EACJ,eAAe,EACf,uBAAuB,EACvB,YAAY,EACZ,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,MAAM,EACN,KAAK,EACL,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,OAAO,EAGL,aAAa,EACb,4BAA4B,EAC5B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,gB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C,qBAAqB,IACpB,SAAS,EACP,WAAW,CAAC,cAAc;4BAC1B,WAAW,CAAC,gBAAgB;4BAC5B,WAAW,CAAC,eAAe,CAAC,YAAY,GAE1C,EACD,CAAC,eAAe,IAAI,CACnB,KAAC,iBAAiB,oDAEE,CACrB,EACA,eAAe,IAAI,CAClB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,wBAAwB,IACvB,eAAe,EAAE,eAAe,EAChC,iBAAiB,EAAE,iBAAiB,GACpC,GACE,CACP,IACY,EACf,KAAC,mBAAmB,IAClB,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,GAClD,IACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SQLExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;
|
1
|
+
{"version":3,"file":"SQLExecutionNodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAGH,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,qBAAqB,CAAC;AAU9E;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,kBAAkB,EAAE,kBAAkB,CAAC;CACxC,CA4FC,CAAC"}
|
@@ -16,9 +16,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
16
|
*/
|
17
17
|
import { observer } from 'mobx-react-lite';
|
18
18
|
import { EXECUTION_PLAN_VIEW_MODE, } from '../../stores/execution-plan/ExecutionPlanState.js';
|
19
|
-
import { format as formatSQL } from 'sql-formatter';
|
20
19
|
import { stringifyDataType } from '@finos/legend-graph';
|
21
20
|
import { PanelListItem, CopyIcon, PanelDivider, Button, PanelContent, } from '@finos/legend-art';
|
21
|
+
import { tryToFormatSql } from '../QueryBuilderResultPanel.js';
|
22
22
|
/**
|
23
23
|
* TODO: Create a new `AbstractPlugin` for this, called `ExecutionPlanViewerPlugin`
|
24
24
|
* when we modularize relational and execution plan processing, etc.
|
@@ -37,6 +37,6 @@ export const SQLExecutionNodeViewer = observer((props) => {
|
|
37
37
|
};
|
38
38
|
return (_jsxs(PanelContent, { darkMode: !applicationStore.layoutService.TEMPORARY__isLightColorThemeEnabled, children: [_jsxs("div", { className: "query-builder__sql__container", children: [_jsx(PanelDivider, {}), _jsxs("div", { children: [_jsx("div", { className: "query-builder__sql__container__item__label", children: _jsxs(PanelListItem, { children: ["SQL", _jsx("div", { children: _jsx("button", { onClick: () => {
|
39
39
|
copyExpression(query);
|
40
|
-
}, title: "Copy SQL Expression", className: "query-builder__sql__container__icon", children: _jsx(CopyIcon, {}) }) })] }) }), _jsx(PanelListItem, { className: "query-builder__sql__container__item", children: _jsxs("pre", { children: [
|
40
|
+
}, title: "Copy SQL Expression", className: "query-builder__sql__container__icon", children: _jsx(CopyIcon, {}) }) })] }) }), _jsx(PanelListItem, { className: "query-builder__sql__container__item", children: _jsxs("pre", { children: [tryToFormatSql(query), " "] }) }), _jsx(PanelDivider, {})] }, query)] }), _jsx("div", { className: "query-builder__sql__container", children: _jsxs("div", { children: [_jsx(PanelListItem, { className: "query-builder__sql__container__item__label", children: "Result Columns" }), _jsx(PanelDivider, {}), _jsxs("table", { className: "table query-builder__sql__container__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { className: "table__cell--left", children: "Label" }), _jsx("th", { className: "table__cell--left", children: "Data Type" })] }) }), _jsx("tbody", { children: resultColumns.map((column) => (_jsxs("tr", { children: [_jsx("td", { className: "table__cell--left", children: column.label.replaceAll(`"`, '') }), column.dataType && (_jsx("td", { className: "table__cell--left", children: stringifyDataType(column.dataType) }))] }, column.label))) })] })] }) }), _jsx(PanelDivider, {}), _jsx("div", { className: "query-builder__sql__container", children: _jsx(Button, { className: "btn--dark execution-node-viewer__unsupported-view__to-text-mode__btn", onClick: () => executionPlanState.setViewMode(EXECUTION_PLAN_VIEW_MODE.JSON), text: "View JSON" }) }), _jsx(PanelDivider, {})] }));
|
41
41
|
});
|
42
42
|
//# sourceMappingURL=SQLExecutionNodeViewer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,
|
1
|
+
{"version":3,"file":"SQLExecutionNodeViewer.js","sourceRoot":"","sources":["../../../src/components/execution-plan/SQLExecutionNodeViewer.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAEL,wBAAwB,GACzB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAwB,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EACL,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAI9B,QAAQ,CAAC,CAAC,KAAK,EAAE,EAAE;IACtB,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,k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AAE,EAAE,CAAC,CAC7B,yBACE,aAAI,SAAS,EAAC,mBAAmB,YAC9B,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,CAAC,GAC9B,EAEJ,MAAM,CAAC,QAAQ,IAAI,CAClB,aAAI,SAAS,EAAC,mBAAmB,YAC9B,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC,GAChC,CACN,KATM,MAAM,CAAC,KAAK,CAUhB,CACN,CAAC,GACI,IACF,IACJ,GACF,EACN,KAAC,YAAY,KAAG,EAEhB,cAAK,SAAS,EAAC,+BAA+B,YAC5C,KAAC,MAAM,IACL,SAAS,EAAC,sEAAsE,EAChF,OAAO,EAAE,GAAS,EAAE,CAClB,kBAAkB,CAAC,WAAW,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAE/D,IAAI,EAAC,WAAW,GAChB,GACE,EACN,KAAC,YAAY,KAAG,IACH,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderTDSPanel.d.ts","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAyEH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0DAA0D,CAAC;AAwvBrG,eAAO,MAAM,oBAAoB,WACvB;IAAE,QAAQ,EAAE,oBAAoB,CAAA;CAAE;;CAqK3C,CAAC"}
|
@@ -166,19 +166,39 @@ const QueryBuilderProjectionColumnEditor = observer((props) => {
|
|
166
166
|
const onCalendarFunctionOptionChange = (option) => {
|
167
167
|
if (option?.value !== aggregateColumnState?.calendarFunction) {
|
168
168
|
const lambdaParameterName = aggregateColumnState?.calendarFunction?.lambdaParameterName;
|
169
|
+
const dateColumn = aggregateColumnState?.calendarFunction?.dateColumn;
|
170
|
+
const endDate = aggregateColumnState?.calendarFunction?.endDate;
|
171
|
+
const calendarType = aggregateColumnState?.calendarFunction?.calendarType;
|
169
172
|
aggregateColumnState?.setCalendarFunction(option?.value ?? undefined);
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
173
|
+
const calendarFunction = aggregateColumnState?.calendarFunction;
|
174
|
+
if (calendarFunction) {
|
175
|
+
if (lambdaParameterName) {
|
176
|
+
calendarFunction.setLambdaParameterName(lambdaParameterName);
|
177
|
+
}
|
178
|
+
if (dateColumn) {
|
179
|
+
calendarFunction.setDateColumn(dateColumn);
|
180
|
+
}
|
181
|
+
else {
|
182
|
+
if (calendarFunctionDateColumnOptions[0]) {
|
183
|
+
calendarFunction.setDateColumn(guaranteeNonNullable(calendarFunctionDateColumnOptions[0])
|
184
|
+
.value);
|
185
|
+
}
|
186
|
+
else {
|
187
|
+
applicationStore.notificationService.notifyWarning('Please provide a date attribute for the calendar function');
|
188
|
+
}
|
189
|
+
}
|
190
|
+
if (endDate) {
|
191
|
+
calendarFunction.setEndDate(endDate);
|
192
|
+
}
|
193
|
+
else {
|
194
|
+
calendarFunction.setEndDate(defaultEndDate);
|
195
|
+
}
|
196
|
+
if (calendarType) {
|
197
|
+
calendarFunction.setCalendarType(calendarType);
|
176
198
|
}
|
177
199
|
else {
|
178
|
-
|
200
|
+
calendarFunction.setCalendarType(guaranteeNonNullable(calendarTypeOptions[0]).value);
|
179
201
|
}
|
180
|
-
aggregateColumnState.calendarFunction.setCalendarType(guaranteeNonNullable(calendarTypeOptions[0]).value);
|
181
|
-
aggregateColumnState.calendarFunction.setEndDate(defaultEndDate);
|
182
202
|
}
|
183
203
|
}
|
184
204
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,aAAa,EACb,uBAAuB,EACvB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,+CAA+C,EAC/C,oCAAoC,GACrC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAA0B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAGL,2CAA2C,EAC3C,uCAAuC,EACvC,wCAAwC,GACzC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,0BAA0B,EAC1B,WAAW,EACX,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,QAAQ,EACR,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EAEZ,aAAa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,CAAC;AACJ,CAAC,CACF,CAAC"}
|
1
|
+
{"version":3,"file":"QueryBuilderTDSPanel.js","sourceRoot":"","sources":["../../../src/components/fetch-structure/QueryBuilderTDSPanel.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EACL,IAAI,EACJ,qBAAqB,EACrB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,eAAe,EACf,aAAa,EACb,WAAW,EACX,yBAAyB,EACzB,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,mBAAmB,EACnB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,aAAa,EACb,uBAAuB,EACvB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,6BAA6B,EAC7B,YAAY,GACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,+CAA+C,EAC/C,oCAAoC,GACrC,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAA0B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACrE,OAAO,EAGL,2CAA2C,EAC3C,uCAAuC,EACvC,wCAAwC,GACzC,MAAM,kFAAkF,CAAC;AAC1F,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAEL,0BAA0B,EAC1B,WAAW,EACX,wBAAwB,EACxB,0BAA0B,EAC1B,cAAc,EACd,QAAQ,EACR,yB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AS,EAAC,oCAAoC,aAE9C,KAAC,gBAAgB,IACf,WAAW,EAAE,CACX,IAA4C,EACpC,EAAE,CACV,IAAI,CAAC,WAAW,CAAC,UAAU,KAAK,EAAE;wCAChC,CAAC,CAAC,WAAW;wCACb,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,EAEjC,KAAK,EAAE,CAAC,wCAAwC,CAAC,GACjD,EACD,iBAAiB,CAAC,GAAG,CAAC,CAAC,qBAAqB,EAAE,EAAE,CAAC,CAChD,KAAC,kCAAkC,IAEjC,qBAAqB,EAAE,qBAAqB,IADvC,qBAAqB,CAAC,IAAI,CAE/B,CACH,CAAC,IACE,CACP,EACD,KAAC,wBAAwB,IAAC,QAAQ,EAAE,QAAQ,GAAI,IAClC,GACZ,IACO,CAChB,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/lib/index.css
CHANGED
package/lib/package.json
CHANGED
@@ -44,6 +44,7 @@ export declare class QueryBuilderResultState {
|
|
44
44
|
buildExecutionRawLambda(executionOptions?: LambdaFunctionBuilderOption): RawLambda;
|
45
45
|
exportData(format: string): GeneratorFn<void>;
|
46
46
|
runQuery(): GeneratorFn<void>;
|
47
|
+
cancelQuery(): GeneratorFn<void>;
|
47
48
|
generatePlan(debug: boolean): GeneratorFn<void>;
|
48
49
|
}
|
49
50
|
//# sourceMappingURL=QueryBuilderResultState.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultState.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EACL,KAAK,WAAW,EAIhB,KAAK,WAAW,EAEhB,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,8BAA8B,EAMpC,MAAM,qBAA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
52
52
|
exportData: flow,
|
53
53
|
runQuery: flow,
|
54
|
+
cancelQuery: flow,
|
54
55
|
generatePlan: flow,
|
55
56
|
});
|
56
57
|
this.queryBuilderState = queryBuilderState;
|
@@ -100,7 +101,9 @@ export class QueryBuilderResultState {
|
|
100
101
|
const contentType = exportData.contentType;
|
101
102
|
const serializationFormat = exportData.serializationFormat;
|
102
103
|
this.exportDataState.inProgress();
|
103
|
-
const query = this.buildExecutionRawLambda(
|
104
|
+
const query = this.buildExecutionRawLambda({
|
105
|
+
isExportingResult: true,
|
106
|
+
});
|
104
107
|
const result = (yield this.queryBuilderState.graphManagerState.graphManager.runQuery(query, this.queryBuilderState.mapping, this.queryBuilderState.runtimeValue, this.queryBuilderState.graphManagerState.graph, {
|
105
108
|
serializationFormat,
|
106
109
|
parameterValues: buildExecutionParameterValues(this.queryBuilderState.parametersState.parameterStates, this.queryBuilderState.graphManagerState),
|
@@ -124,6 +127,7 @@ export class QueryBuilderResultState {
|
|
124
127
|
}
|
125
128
|
}
|
126
129
|
*runQuery() {
|
130
|
+
let promise;
|
127
131
|
try {
|
128
132
|
this.setIsRunningQuery(true);
|
129
133
|
const currentHashCode = this.queryBuilderState.hashCode;
|
@@ -134,7 +138,7 @@ export class QueryBuilderResultState {
|
|
134
138
|
QueryBuilderTelemetryHelper.logEvent_QueryRunLaunched(this.queryBuilderState.applicationStore.telemetryService);
|
135
139
|
const stopWatch = new StopWatch();
|
136
140
|
const report = reportGraphAnalytics(this.queryBuilderState.graphManagerState.graph);
|
137
|
-
|
141
|
+
promise = this.queryBuilderState.graphManagerState.graphManager.runQuery(query, mapping, runtime, this.queryBuilderState.graphManagerState.graph, {
|
138
142
|
parameterValues,
|
139
143
|
});
|
140
144
|
this.setQueryRunPromise(promise);
|
@@ -149,15 +153,32 @@ export class QueryBuilderResultState {
|
|
149
153
|
}
|
150
154
|
}
|
151
155
|
catch (error) {
|
152
|
-
|
153
|
-
this.
|
154
|
-
|
156
|
+
// When user cancels the query by calling the cancelQuery api, it will throw an exeuction failure error.
|
157
|
+
// For now, we don't want to notify users about this failure. Therefore we check to ensure the promise is still the same one.
|
158
|
+
// When cancelled the query, we set the queryRunPromise as undefined.
|
159
|
+
if (this.queryRunPromise === promise) {
|
160
|
+
assertErrorThrown(error);
|
161
|
+
this.queryBuilderState.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
|
162
|
+
this.queryBuilderState.applicationStore.notificationService.notifyError(error);
|
163
|
+
}
|
155
164
|
}
|
156
165
|
finally {
|
157
166
|
this.setIsRunningQuery(false);
|
158
167
|
this.pressedRunQuery.complete();
|
159
168
|
}
|
160
169
|
}
|
170
|
+
*cancelQuery() {
|
171
|
+
this.pressedRunQuery.complete();
|
172
|
+
this.setIsRunningQuery(false);
|
173
|
+
this.setQueryRunPromise(undefined);
|
174
|
+
try {
|
175
|
+
yield this.queryBuilderState.graphManagerState.graphManager.cancelUserExecutions(true);
|
176
|
+
}
|
177
|
+
catch (error) {
|
178
|
+
// Don't notify users about success or failure
|
179
|
+
this.queryBuilderState.applicationStore.logService.error(LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE), error);
|
180
|
+
}
|
181
|
+
}
|
161
182
|
*generatePlan(debug) {
|
162
183
|
try {
|
163
184
|
this.isGeneratingPlan = true;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderResultState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EAEpB,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAKL,mBAAmB,EACnB,kBAAkB,EAClB,gCAA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cAAc,EACd,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CACzC,CAAC;SACH;aAAM;YACL,KAAK,GAAG,oBAAoB,CAC1B,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,SAAS,EACtD,qCAAqC,CACtC,CAAC;YACF,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,0BAA0B,EAAE;gBACtD,OAAO,8BAA8B,CACnC,KAAK,EACL,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,eAAe,EACtD,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,CACzC,CAAC;aACH;SACF;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,CAAC,UAAU,CAAC,MAAc;QACxB,IAAI;YACF,MAAM,UAAU,GACd,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,CAAC,iBAAiB,CACzE,MAAM,CACP,CAAC;YACJ,MAAM,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;YAC3C,MAAM,mBAAmB,GAAG,UAAU,CAAC,mBAAmB,CAAC;YAC3D,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC;YAClC,MAAM,KAAK,GAAG,IAAI,CAAC,uBAAuB,EAAE,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderResultState.js","sourceRoot":"","sources":["../../src/stores/QueryBuilderResultState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EAEL,iBAAiB,EACjB,QAAQ,EACR,oBAAoB,EAEpB,wBAAwB,EACxB,WAAW,EACX,SAAS,EACT,2BAA2B,GAC5B,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAKL,mBAAmB,EACnB,kBAAkB,EAClB,gCAAgC,EAChC,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,E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C;aACvC;YAAC,MAAM;gBACN,aAAa;aACd;YACD,SAAS,CAAC,MAAM,CAAC,mBAAmB,CAAC,6BAA6B,CAAC,CAAC;YAEpE,SAAS;YACT,MAAM,CAAC,OAAO;gBACZ,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,WAAW,CAAC,qBAAqB,CACvE,SAAS,EACT,MAAM,CAAC,OAAO,CACf,CAAC;YACJ,IAAI,KAAK,EAAE;gBACT,2BAA2B,CAAC,oCAAoC,CAC9D,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,gBAAgB,EACxD,MAAM,CACP,CAAC;aACH;iBAAM;gBACL,2BAA2B,CAAC,yCAAyC,CACnE,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,gBAAgB,EACxD,MAAM,CACP,CAAC;aACH;SACF;QAAC,OAAO,KAAK,EAAE;YACd,iBAAiB,CAAC,KAAK,CAAC,CAAC;YACzB,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,CACtD,QAAQ,CAAC,MAAM,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,EACtD,KAAK,CACN,CAAC;YACF,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,mBAAmB,CAAC,WAAW,CACrE,KAAK,CACN,CAAC;SACH;gBAAS;YACR,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;SAC/B;IACH,CAAC;CACF"}
|
@@ -29,5 +29,10 @@ export type LambdaFunctionBuilderOption = {
|
|
29
29
|
*/
|
30
30
|
useAllVersionsForMilestoning?: boolean | undefined;
|
31
31
|
keepSourceInformation?: boolean | undefined;
|
32
|
+
/**
|
33
|
+
* Set this to `true` when we export query results since we do want to ignore an overriding
|
34
|
+
* limit for the query results if it exists so the exported results contain all the data
|
35
|
+
*/
|
36
|
+
isExportingResult?: boolean | undefined;
|
32
37
|
};
|
33
38
|
//# sourceMappingURL=QueryBuilderValueSpecificationBuilderHelper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderValueSpecificationBuilderHelper.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAS1B,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAqBhE,eAAO,MAAM,4BAA4B,uBACnB,0BAA0B,qBAC3B,iBAAiB,uBACf,MAAM,YACjB,2BAA2B,sCAOD,OAAO,KAC1C,kBAiHF,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE/C;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnD,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderValueSpecificationBuilderHelper.d.ts","sourceRoot":"","sources":["../../src/stores/QueryBuilderValueSpecificationBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,0BAA0B,EAS1B,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAC;AAO7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAqBhE,eAAO,MAAM,4BAA4B,uBACnB,0BAA0B,qBAC3B,iBAAiB,uBACf,MAAM,YACjB,2BAA2B,sCAOD,OAAO,KAC1C,kBAiHF,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAE/C;;;;OAIG;IACH,4BAA4B,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnD,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5C;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,CAAC"}
|
package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,mCAAmC,EAExC,KAAK,cAAc,EACnB,0BAA0B,EAK1B,wBAAwB,EAIzB,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,mCAAmC,EAExC,KAAK,cAAc,EACnB,0BAA0B,EAK1B,wBAAwB,EAIzB,MAAM,qBAAqB,CAAC;AAW7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAkBvE,eAAO,MAAM,2BAA2B,eAC1B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAyEF,CAAC;AAEF,eAAO,MAAM,4CAA4C,eAC3C,0BAA0B,qBACnB,iBAAiB,KACnC,IAgEF,CAAC;AAEF,eAAO,MAAM,wCAAwC,UAC5C,mCAAmC,oBACxB,wBAAwB,qBACvB,iBAAiB,KACnC,IAwBF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA4CF,CAAC;AAEF,eAAO,MAAM,4BAA4B,eAC3B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IAwCF,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA8CF,CAAC;AAEF,eAAO,MAAM,iCAAiC,eAChC,wBAAwB,oBAClB,wBAAwB,GAAG,SAAS,qBACnC,iBAAiB,KACnC,IA+CF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,wBAAwB,EACxB,mCAAmC,EACnC,YAAY,EACZ,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,kBAAkB,
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAIL,0BAA0B,EAC1B,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,wBAAwB,EACxB,mCAAmC,EACnC,YAAY,EACZ,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,oBAAoB,EACpB,aAAa,EACb,aAAa,EACb,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AAEpG,OAAO,EAAE,uCAAuC,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EACL,sCAAsC,EACtC,sCAAsC,EACtC,+BAA+B,GACh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OAAO,CACL,gBAAgB;QACd,iBAAiB,CACf,gBAAgB,CAAC,YAAY,EAC7B,iCAAiC,CAAC,QAAQ,CAC3C,CACJ,EACD,iBAAiB,YAAY,+BAA+B,YAAY,oCAAoC,CAC7G,CAAC;IAEF,mBAAmB;IACnB,UAAU,CACR,UAAU,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,EACxC,iBAAiB,YAAY,kBAAkB,YAAY,wBAAwB,CACpF,CAAC;IAEF,cAAc;IACd,IACE,iBAAiB,CAAC,mBAAmB,CAAC,cAAc;QACpD,oBAAoB,EACpB;QACA,MAAM,eAAe,GACnB,iBAAiB,CAAC,mBAAmB,CAAC,cAAc,CAAC;QACvD,MAAM,cAAc,GAAG,sCAAsC,CAC3D,oBAAoB,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CACrD,CAAC;QACF,MAAM,iCAAiC,GAAG,eAAe,CAAC,UAAU,CAAC,IAAI,CACvE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,cAAc,CACvC,CAAC;QACF,IAAI,iCAAiC,EAAE;YACrC,MAAM,eAAe,GAAG,IAAI,eAAe,CACzC,iCAAiC,CAClC,CAAC;YACF,eAAe,CAAC,QAAQ,GAAG,iBAAiB,CAC1C,YAAY,EACZ,iCAAiC,CAAC,OAAO,CAC1C;gBACC,CAAC,CAAC,gBAAgB,CAAC,GAAG;gBACtB,CAAC,CAAC,gBAAgB,CAAC,IAAI,CAAC;YAC1B,eAAe,CAAC,sBAAsB,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;SACvE;KACF;AACH,CAAC,CAAC"}
|
@@ -22,5 +22,6 @@ export declare const appendProjection: (tdsState: QueryBuilderTDSState, lambdaFu
|
|
22
22
|
*/
|
23
23
|
isBuildingExecutionQuery?: boolean | undefined;
|
24
24
|
keepSourceInformation?: boolean | undefined;
|
25
|
+
isExportingResult?: boolean | undefined;
|
25
26
|
}) => void;
|
26
27
|
//# sourceMappingURL=QueryBuilderProjectionValueSpecificationBuilder.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EAcpB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAoHvE,eAAO,MAAM,gBAAgB,aACjB,oBAAoB,kBACd,cAAc,YACpB;IACR;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EAcpB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAoHvE,eAAO,MAAM,gBAAgB,aACjB,oBAAoB,kBACd,cAAc,YACpB;IACR;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/C,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5C,iBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,KACA,IA0OF,CAAC"}
|
package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js
CHANGED
@@ -189,7 +189,7 @@ export const appendProjection = (tdsState, lambdaFunction, options) => {
|
|
189
189
|
appendPostFilter(tdsState.postFilterState, lambdaFunction);
|
190
190
|
// build result set modifiers
|
191
191
|
appendResultSetModifier(tdsState.resultSetModifierState, lambdaFunction, {
|
192
|
-
overridingLimit: options?.isBuildingExecutionQuery
|
192
|
+
overridingLimit: options?.isBuildingExecutionQuery && !options.isExportingResult
|
193
193
|
? queryBuilderState.resultState.previewLimit
|
194
194
|
: undefined,
|
195
195
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EAExB,mCAAmC,EACnC,iCAAiC,EACjC,qBAAqB,EACrB,iCAAiC,EACjC,iBAAiB,EACjB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GACxC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,gBAAgB,GAGjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mEAAmE,CAAC;AAErG,MAAM,mBAAmB,GAAG,CAC1B,eAAgC,EACN,EAAE;IAC5B,MAAM,kBAAkB,GAAG,IAAI,wBAAwB,CACrD,0BAA0B,CACxB,eAAe,CAAC,QAAQ,KAAK,gBAAgB,CAAC,GA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ACzC,iBAAiB,GAAG,YAAY,CAAC;iBAClC;gBACD,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,iBAAiB,CAAC;gBACzD,OAAO,cAAc,CAAC;aACvB;SACF;KACF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,QAA8B,EAC9B,cAA8B,EAC9B,
|
1
|
+
{"version":3,"file":"QueryBuilderProjectionValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EAExB,mCAAmC,EACnC,iCAAiC,EACjC,qBAAqB,EACrB,iCAAiC,EACjC,iBAAiB,EACjB,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,2CAA2C,EAC3C,uCAAuC,GACxC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,gBAAgB,GAGjB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,iCAAiC,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EAAE,4BAA4B,EAAE,MAAM,yDAAyD,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,gBAAgB,EAAE,MAAM,mEAAmE,CAAC;AAErG,MAAM,mBAAmB,GAAG,CAC1B,eAAgC,EACN,EAAE;IAC5B,MAAM,kBAAkB,GAAG,IAAI,wBAAwB,CACrD,0BAA0B,CACxB,eAAe,CAAC,QAAQ,KAA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
-
"version": "3.2.
|
3
|
+
"version": "3.2.10",
|
4
4
|
"description": "Legend query builder core",
|
5
5
|
"keywords": [
|
6
6
|
"legend",
|
@@ -42,13 +42,13 @@
|
|
42
42
|
"test:watch": "jest --watch"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@finos/legend-application": "15.0.
|
46
|
-
"@finos/legend-art": "7.0.
|
47
|
-
"@finos/legend-graph": "
|
48
|
-
"@finos/legend-lego": "1.0.
|
49
|
-
"@finos/legend-server-depot": "6.0.
|
50
|
-
"@finos/legend-shared": "10.0.
|
51
|
-
"@finos/legend-storage": "3.0.
|
45
|
+
"@finos/legend-application": "15.0.14",
|
46
|
+
"@finos/legend-art": "7.0.15",
|
47
|
+
"@finos/legend-graph": "29.0.1",
|
48
|
+
"@finos/legend-lego": "1.0.8",
|
49
|
+
"@finos/legend-server-depot": "6.0.7",
|
50
|
+
"@finos/legend-shared": "10.0.6",
|
51
|
+
"@finos/legend-storage": "3.0.56",
|
52
52
|
"@testing-library/react": "14.0.0",
|
53
53
|
"@types/react": "18.2.6",
|
54
54
|
"@types/react-dom": "18.2.4",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"sql-formatter": "12.2.0"
|
66
66
|
},
|
67
67
|
"devDependencies": {
|
68
|
-
"@finos/legend-dev-utils": "2.0.
|
68
|
+
"@finos/legend-dev-utils": "2.0.61",
|
69
69
|
"@jest/globals": "29.5.0",
|
70
70
|
"cross-env": "7.0.3",
|
71
71
|
"eslint": "8.40.0",
|
@@ -105,6 +105,15 @@ import {
|
|
105
105
|
} from '@finos/legend-lego/code-editor';
|
106
106
|
import { ExecutionPlanViewer } from './execution-plan/ExecutionPlanViewer.js';
|
107
107
|
|
108
|
+
export const tryToFormatSql = (sql: string): string => {
|
109
|
+
try {
|
110
|
+
const formattedSql = formatSQL(sql);
|
111
|
+
return formattedSql;
|
112
|
+
} catch {
|
113
|
+
return sql;
|
114
|
+
}
|
115
|
+
};
|
116
|
+
|
108
117
|
const QueryBuilderGridResultContextMenu = observer(
|
109
118
|
forwardRef<
|
110
119
|
HTMLDivElement,
|
@@ -531,17 +540,17 @@ export const QueryBuilderResultPanel = observer(
|
|
531
540
|
),
|
532
541
|
PARAMETER_SUBMIT_ACTION.RUN,
|
533
542
|
);
|
534
|
-
resultState.pressedRunQuery.complete();
|
535
543
|
} else {
|
536
544
|
flowResult(resultState.runQuery()).catch(
|
537
545
|
applicationStore.alertUnhandledError,
|
538
546
|
);
|
539
547
|
}
|
548
|
+
resultState.pressedRunQuery.complete();
|
540
549
|
};
|
541
|
-
const cancelQuery = ()
|
542
|
-
resultState.
|
543
|
-
|
544
|
-
|
550
|
+
const cancelQuery = applicationStore.guardUnhandledError(() =>
|
551
|
+
flowResult(resultState.cancelQuery()),
|
552
|
+
);
|
553
|
+
|
545
554
|
const generatePlan = applicationStore.guardUnhandledError(() =>
|
546
555
|
flowResult(resultState.generatePlan(false)),
|
547
556
|
);
|
@@ -612,7 +621,7 @@ export const QueryBuilderResultPanel = observer(
|
|
612
621
|
<ModalBody className="query-builder__sql__modal">
|
613
622
|
<>
|
614
623
|
<CodeEditor
|
615
|
-
inputValue={
|
624
|
+
inputValue={tryToFormatSql(executedSql)}
|
616
625
|
isReadOnly={true}
|
617
626
|
language={CODE_EDITOR_LANGUAGE.SQL}
|
618
627
|
hideMinimap={true}
|
@@ -19,7 +19,6 @@ import {
|
|
19
19
|
type ExecutionPlanState,
|
20
20
|
EXECUTION_PLAN_VIEW_MODE,
|
21
21
|
} from '../../stores/execution-plan/ExecutionPlanState.js';
|
22
|
-
import { format as formatSQL } from 'sql-formatter';
|
23
22
|
import { type SQLResultColumn, stringifyDataType } from '@finos/legend-graph';
|
24
23
|
import {
|
25
24
|
PanelListItem,
|
@@ -28,6 +27,7 @@ import {
|
|
28
27
|
Button,
|
29
28
|
PanelContent,
|
30
29
|
} from '@finos/legend-art';
|
30
|
+
import { tryToFormatSql } from '../QueryBuilderResultPanel.js';
|
31
31
|
|
32
32
|
/**
|
33
33
|
* TODO: Create a new `AbstractPlugin` for this, called `ExecutionPlanViewerPlugin`
|
@@ -82,7 +82,7 @@ export const SQLExecutionNodeViewer: React.FC<{
|
|
82
82
|
</PanelListItem>
|
83
83
|
</div>
|
84
84
|
<PanelListItem className="query-builder__sql__container__item">
|
85
|
-
<pre>{
|
85
|
+
<pre>{tryToFormatSql(query)} </pre>
|
86
86
|
</PanelListItem>
|
87
87
|
<PanelDivider />
|
88
88
|
</div>
|
@@ -433,26 +433,42 @@ const QueryBuilderProjectionColumnEditor = observer(
|
|
433
433
|
if (option?.value !== aggregateColumnState?.calendarFunction) {
|
434
434
|
const lambdaParameterName =
|
435
435
|
aggregateColumnState?.calendarFunction?.lambdaParameterName;
|
436
|
+
const dateColumn = aggregateColumnState?.calendarFunction?.dateColumn;
|
437
|
+
const endDate = aggregateColumnState?.calendarFunction?.endDate;
|
438
|
+
const calendarType =
|
439
|
+
aggregateColumnState?.calendarFunction?.calendarType;
|
436
440
|
aggregateColumnState?.setCalendarFunction(option?.value ?? undefined);
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
aggregateColumnState.calendarFunction.setDateColumn(
|
445
|
-
guaranteeNonNullable(calendarFunctionDateColumnOptions[0]).value,
|
446
|
-
);
|
441
|
+
const calendarFunction = aggregateColumnState?.calendarFunction;
|
442
|
+
if (calendarFunction) {
|
443
|
+
if (lambdaParameterName) {
|
444
|
+
calendarFunction.setLambdaParameterName(lambdaParameterName);
|
445
|
+
}
|
446
|
+
if (dateColumn) {
|
447
|
+
calendarFunction.setDateColumn(dateColumn);
|
447
448
|
} else {
|
448
|
-
|
449
|
-
|
449
|
+
if (calendarFunctionDateColumnOptions[0]) {
|
450
|
+
calendarFunction.setDateColumn(
|
451
|
+
guaranteeNonNullable(calendarFunctionDateColumnOptions[0])
|
452
|
+
.value,
|
453
|
+
);
|
454
|
+
} else {
|
455
|
+
applicationStore.notificationService.notifyWarning(
|
456
|
+
'Please provide a date attribute for the calendar function',
|
457
|
+
);
|
458
|
+
}
|
459
|
+
}
|
460
|
+
if (endDate) {
|
461
|
+
calendarFunction.setEndDate(endDate);
|
462
|
+
} else {
|
463
|
+
calendarFunction.setEndDate(defaultEndDate);
|
464
|
+
}
|
465
|
+
if (calendarType) {
|
466
|
+
calendarFunction.setCalendarType(calendarType);
|
467
|
+
} else {
|
468
|
+
calendarFunction.setCalendarType(
|
469
|
+
guaranteeNonNullable(calendarTypeOptions[0]).value,
|
450
470
|
);
|
451
471
|
}
|
452
|
-
aggregateColumnState.calendarFunction.setCalendarType(
|
453
|
-
guaranteeNonNullable(calendarTypeOptions[0]).value,
|
454
|
-
);
|
455
|
-
aggregateColumnState.calendarFunction.setEndDate(defaultEndDate);
|
456
472
|
}
|
457
473
|
}
|
458
474
|
};
|
@@ -86,6 +86,7 @@ export class QueryBuilderResultState {
|
|
86
86
|
setQueryRunPromise: action,
|
87
87
|
exportData: flow,
|
88
88
|
runQuery: flow,
|
89
|
+
cancelQuery: flow,
|
89
90
|
generatePlan: flow,
|
90
91
|
});
|
91
92
|
|
@@ -163,7 +164,9 @@ export class QueryBuilderResultState {
|
|
163
164
|
const contentType = exportData.contentType;
|
164
165
|
const serializationFormat = exportData.serializationFormat;
|
165
166
|
this.exportDataState.inProgress();
|
166
|
-
const query = this.buildExecutionRawLambda(
|
167
|
+
const query = this.buildExecutionRawLambda({
|
168
|
+
isExportingResult: true,
|
169
|
+
});
|
167
170
|
const result =
|
168
171
|
(yield this.queryBuilderState.graphManagerState.graphManager.runQuery(
|
169
172
|
query,
|
@@ -205,6 +208,7 @@ export class QueryBuilderResultState {
|
|
205
208
|
}
|
206
209
|
|
207
210
|
*runQuery(): GeneratorFn<void> {
|
211
|
+
let promise;
|
208
212
|
try {
|
209
213
|
this.setIsRunningQuery(true);
|
210
214
|
const currentHashCode = this.queryBuilderState.hashCode;
|
@@ -231,16 +235,15 @@ export class QueryBuilderResultState {
|
|
231
235
|
this.queryBuilderState.graphManagerState.graph,
|
232
236
|
);
|
233
237
|
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
);
|
238
|
+
promise = this.queryBuilderState.graphManagerState.graphManager.runQuery(
|
239
|
+
query,
|
240
|
+
mapping,
|
241
|
+
runtime,
|
242
|
+
this.queryBuilderState.graphManagerState.graph,
|
243
|
+
{
|
244
|
+
parameterValues,
|
245
|
+
},
|
246
|
+
);
|
244
247
|
|
245
248
|
this.setQueryRunPromise(promise);
|
246
249
|
const result = (yield promise) as ExecutionResult;
|
@@ -260,17 +263,39 @@ export class QueryBuilderResultState {
|
|
260
263
|
);
|
261
264
|
}
|
262
265
|
} catch (error) {
|
263
|
-
|
266
|
+
// When user cancels the query by calling the cancelQuery api, it will throw an exeuction failure error.
|
267
|
+
// For now, we don't want to notify users about this failure. Therefore we check to ensure the promise is still the same one.
|
268
|
+
// When cancelled the query, we set the queryRunPromise as undefined.
|
269
|
+
if (this.queryRunPromise === promise) {
|
270
|
+
assertErrorThrown(error);
|
271
|
+
this.queryBuilderState.applicationStore.logService.error(
|
272
|
+
LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE),
|
273
|
+
error,
|
274
|
+
);
|
275
|
+
this.queryBuilderState.applicationStore.notificationService.notifyError(
|
276
|
+
error,
|
277
|
+
);
|
278
|
+
}
|
279
|
+
} finally {
|
280
|
+
this.setIsRunningQuery(false);
|
281
|
+
this.pressedRunQuery.complete();
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
*cancelQuery(): GeneratorFn<void> {
|
286
|
+
this.pressedRunQuery.complete();
|
287
|
+
this.setIsRunningQuery(false);
|
288
|
+
this.setQueryRunPromise(undefined);
|
289
|
+
try {
|
290
|
+
yield this.queryBuilderState.graphManagerState.graphManager.cancelUserExecutions(
|
291
|
+
true,
|
292
|
+
);
|
293
|
+
} catch (error) {
|
294
|
+
// Don't notify users about success or failure
|
264
295
|
this.queryBuilderState.applicationStore.logService.error(
|
265
296
|
LogEvent.create(GRAPH_MANAGER_EVENT.EXECUTION_FAILURE),
|
266
297
|
error,
|
267
298
|
);
|
268
|
-
this.queryBuilderState.applicationStore.notificationService.notifyError(
|
269
|
-
error,
|
270
|
-
);
|
271
|
-
} finally {
|
272
|
-
this.setIsRunningQuery(false);
|
273
|
-
this.pressedRunQuery.complete();
|
274
299
|
}
|
275
300
|
}
|
276
301
|
|
@@ -194,4 +194,9 @@ export type LambdaFunctionBuilderOption = {
|
|
194
194
|
*/
|
195
195
|
useAllVersionsForMilestoning?: boolean | undefined;
|
196
196
|
keepSourceInformation?: boolean | undefined;
|
197
|
+
/**
|
198
|
+
* Set this to `true` when we export query results since we do want to ignore an overriding
|
199
|
+
* limit for the query results if it exists so the exported results contain all the data
|
200
|
+
*/
|
201
|
+
isExportingResult?: boolean | undefined;
|
197
202
|
};
|
@@ -36,7 +36,6 @@ import {
|
|
36
36
|
guaranteeType,
|
37
37
|
isNonNullable,
|
38
38
|
returnUndefOnError,
|
39
|
-
type PlainObject,
|
40
39
|
} from '@finos/legend-shared';
|
41
40
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graph/QueryBuilderMetaModelConst.js';
|
42
41
|
import type { QueryBuilderState } from '../../../QueryBuilderState.js';
|
@@ -218,9 +217,7 @@ export const processTDSProjectionDerivationExpression = (
|
|
218
217
|
queryBuilderState.fetchStructureState.implementation;
|
219
218
|
const rawLambdaProtocol = returnUndefOnError(() =>
|
220
219
|
guaranteeType(
|
221
|
-
V1_deserializeRawValueSpecification(
|
222
|
-
value.content as PlainObject<V1_RawLambda>,
|
223
|
-
),
|
220
|
+
V1_deserializeRawValueSpecification(value.content),
|
224
221
|
V1_RawLambda,
|
225
222
|
),
|
226
223
|
);
|
package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts
CHANGED
@@ -164,6 +164,7 @@ export const appendProjection = (
|
|
164
164
|
*/
|
165
165
|
isBuildingExecutionQuery?: boolean | undefined;
|
166
166
|
keepSourceInformation?: boolean | undefined;
|
167
|
+
isExportingResult?: boolean | undefined;
|
167
168
|
},
|
168
169
|
): void => {
|
169
170
|
const queryBuilderState = tdsState.queryBuilderState;
|
@@ -394,8 +395,9 @@ export const appendProjection = (
|
|
394
395
|
|
395
396
|
// build result set modifiers
|
396
397
|
appendResultSetModifier(tdsState.resultSetModifierState, lambdaFunction, {
|
397
|
-
overridingLimit:
|
398
|
-
|
399
|
-
|
398
|
+
overridingLimit:
|
399
|
+
options?.isBuildingExecutionQuery && !options.isExportingResult
|
400
|
+
? queryBuilderState.resultState.previewLimit
|
401
|
+
: undefined,
|
400
402
|
});
|
401
403
|
};
|