@finos/legend-query-builder 0.6.22 → 0.6.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +8 -5
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js +1 -1
- package/lib/components/QueryBuilderConstantExpressionPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +3 -3
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +8 -3
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +2 -2
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderTextEditor.js +4 -3
- package/lib/components/QueryBuilderTextEditor.js.map +1 -1
- package/lib/components/QueryBuilder_TestID.d.ts +1 -1
- package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
- package/lib/components/QueryBuilder_TestID.js +1 -1
- package/lib/components/QueryBuilder_TestID.js.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderExplorerPanel.js +8 -7
- package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +5 -5
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +3 -3
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -1
- package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.d.ts → QueryBuilderTDSWindowPanel.d.ts} +4 -4
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.js → QueryBuilderTDSWindowPanel.js} +94 -94
- package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -0
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +10 -4
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js +1 -1
- package/lib/components/shared/QueryBuilderVariableSelector.js.map +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js +1 -1
- package/lib/components/workflows/ClassQueryBuilder.js.map +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js +1 -1
- package/lib/components/workflows/MappingQueryBuilder.js.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.d.ts +14 -14
- package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.js +14 -14
- package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.js +1 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +6 -6
- package/lib/stores/QueryBuilderPreviewDataHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPreviewDataHelper.js +6 -2
- package/lib/stores/QueryBuilderPreviewDataHelper.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +3 -1
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +4 -1
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +26 -9
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts +7 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +50 -32
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +6 -6
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +13 -13
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +4 -4
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts → window/QueryBuilderWindowGroupByOperatorLoader.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js +36 -0
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts +91 -0
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByState.js → window/QueryBuilderWindowState.js} +55 -53
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowState.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts → window/QueryBuilderWindowStateBuilder.d.ts} +1 -1
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js → window/QueryBuilderWindowStateBuilder.js} +10 -10
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts → window/QueryBuilderWindowValueSpecificationBuilder.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js → window/QueryBuilderWindowValueSpecificationBuilder.js} +5 -5
- package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.d.ts → window/operators/QueryBuilderTDS_WindowOperator.d.ts} +2 -2
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js → window/operators/QueryBuilderTDS_WindowOperator.js} +2 -2
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.js.map +1 -0
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.d.ts +25 -0
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js → window/operators/QueryBuilderTDS_WindowOperator_Average.js} +6 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js → window/operators/QueryBuilderTDS_WindowOperator_Count.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js → window/operators/QueryBuilderTDS_WindowOperator_Max.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js → window/operators/QueryBuilderTDS_WindowOperator_Min.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts → window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js → window/operators/QueryBuilderTDS_WindowOperator_Sum.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.js → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.js → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.js → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_Rank.js.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.js → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js} +4 -4
- package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -0
- package/lib/stores/shared/LambdaParameterState.d.ts +1 -1
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
- package/lib/stores/shared/LambdaParameterState.js +1 -1
- package/lib/stores/shared/LambdaParameterState.js.map +1 -1
- package/package.json +13 -13
- package/src/components/QueryBuilder.tsx +16 -6
- package/src/components/QueryBuilderConstantExpressionPanel.tsx +1 -1
- package/src/components/QueryBuilderParametersPanel.tsx +3 -4
- package/src/components/QueryBuilderResultPanel.tsx +17 -3
- package/src/components/QueryBuilderSideBar.tsx +2 -2
- package/src/components/QueryBuilderTextEditor.tsx +10 -2
- package/src/components/QueryBuilder_TestID.ts +1 -1
- package/src/components/explorer/QueryBuilderExplorerPanel.tsx +12 -1
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +8 -8
- package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +6 -8
- package/src/components/fetch-structure/{QueryBuilderOLAPGroupByPanel.tsx → QueryBuilderTDSWindowPanel.tsx} +166 -166
- package/src/components/shared/LambdaParameterValuesEditor.tsx +24 -11
- package/src/components/shared/QueryBuilderVariableSelector.tsx +1 -1
- package/src/components/workflows/ClassQueryBuilder.tsx +1 -1
- package/src/components/workflows/MappingQueryBuilder.tsx +1 -1
- package/src/graphManager/QueryBuilderHashUtils.ts +14 -14
- package/src/graphManager/QueryBuilderSupportedFunctions.ts +1 -0
- package/src/stores/QueryBuilderPreviewDataHelper.ts +6 -2
- package/src/stores/QueryBuilderResultState.ts +7 -1
- package/src/stores/QueryBuilderStateBuilder.ts +1 -1
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +42 -10
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +79 -34
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +16 -16
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +2 -2
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +4 -2
- package/src/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.ts +39 -0
- package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByState.ts → window/QueryBuilderWindowState.ts} +83 -76
- package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.ts → window/QueryBuilderWindowStateBuilder.ts} +19 -19
- package/src/stores/fetch-structure/tds/{olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.ts → window/QueryBuilderWindowValueSpecificationBuilder.ts} +9 -9
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.ts → window/operators/QueryBuilderTDS_WindowOperator.ts} +1 -1
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.ts → window/operators/QueryBuilderTDS_WindowOperator_Average.ts} +5 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.ts → window/operators/QueryBuilderTDS_WindowOperator_Count.ts} +3 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.ts → window/operators/QueryBuilderTDS_WindowOperator_Max.ts} +3 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.ts → window/operators/QueryBuilderTDS_WindowOperator_Min.ts} +3 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.ts → window/operators/QueryBuilderTDS_WindowOperator_Sum.ts} +3 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_AverageRank.ts} +3 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_DenseRank.ts} +3 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.ts → window/operators/QueryBuilderTDS_WindowRankOperator_Rank.ts} +3 -3
- package/src/stores/fetch-structure/tds/{olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.ts → window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.ts} +3 -3
- package/src/stores/shared/LambdaParameterState.ts +2 -1
- package/tsconfig.json +15 -15
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.d.ts.map +0 -1
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js +0 -36
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts +0 -91
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts +0 -25
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.js.map +0 -1
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader.ts +0 -39
@@ -19,8 +19,8 @@ import { action, makeObservable, observable } from 'mobx';
|
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { DEFAULT_LAMBDA_VARIABLE_NAME } from '../../../QueryBuilderConfig.js';
|
21
21
|
import { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
22
|
-
export const
|
23
|
-
export class
|
22
|
+
export const QUERY_BUILDER_WINDOW_COLUMN_DND_TYPE = 'WINDOW_COLUMN';
|
23
|
+
export class WindowGroupByColumnSortByState {
|
24
24
|
columnState;
|
25
25
|
sortType;
|
26
26
|
constructor(columnState, sortType) {
|
@@ -41,18 +41,18 @@ export class OLAPGroupByColumnSortByState {
|
|
41
41
|
}
|
42
42
|
get hashCode() {
|
43
43
|
return hashArray([
|
44
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
44
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_COLUMN_SORTBY_STATE,
|
45
45
|
this.sortType,
|
46
46
|
this.columnState.columnName,
|
47
47
|
]);
|
48
48
|
}
|
49
49
|
}
|
50
|
-
export class
|
51
|
-
|
50
|
+
export class QueryBuilderTDS_WindowOperatorState {
|
51
|
+
windowState;
|
52
52
|
lambdaParameterName = DEFAULT_LAMBDA_VARIABLE_NAME;
|
53
53
|
operator;
|
54
|
-
constructor(
|
55
|
-
this.
|
54
|
+
constructor(windowState, operator) {
|
55
|
+
this.windowState = windowState;
|
56
56
|
this.operator = operator;
|
57
57
|
}
|
58
58
|
setLambdaParameterName(paramName) {
|
@@ -63,24 +63,24 @@ export class QueryBuilderTDS_OLAPOperatorState {
|
|
63
63
|
}
|
64
64
|
get hashCode() {
|
65
65
|
return hashArray([
|
66
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
66
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_GROUPBY_OPERATION_STATE,
|
67
67
|
this.lambdaParameterName,
|
68
68
|
this.operator,
|
69
69
|
]);
|
70
70
|
}
|
71
71
|
}
|
72
|
-
export class
|
73
|
-
constructor(
|
74
|
-
super(
|
72
|
+
export class QueryBuilderTDS_WindowRankOperatorState extends QueryBuilderTDS_WindowOperatorState {
|
73
|
+
constructor(windowState, operator) {
|
74
|
+
super(windowState, operator);
|
75
75
|
makeObservable(this, {
|
76
76
|
setLambdaParameterName: action,
|
77
77
|
});
|
78
78
|
}
|
79
79
|
}
|
80
|
-
export class
|
80
|
+
export class QueryBuilderTDS_WindowAggreationOperatorState extends QueryBuilderTDS_WindowOperatorState {
|
81
81
|
columnState;
|
82
|
-
constructor(
|
83
|
-
super(
|
82
|
+
constructor(windowState, operator, columnState) {
|
83
|
+
super(windowState, operator);
|
84
84
|
makeObservable(this, {
|
85
85
|
columnState: observable,
|
86
86
|
setColumnState: action,
|
@@ -93,20 +93,20 @@ export class QueryBuilderTDS_OLAPAggreationOperatorState extends QueryBuilderTDS
|
|
93
93
|
}
|
94
94
|
get hashCode() {
|
95
95
|
return hashArray([
|
96
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
96
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_GROUPBY_AGG_OPERATION_STATE,
|
97
97
|
this.lambdaParameterName,
|
98
98
|
this.operator,
|
99
99
|
this.columnState.columnName,
|
100
100
|
]);
|
101
101
|
}
|
102
102
|
}
|
103
|
-
export class
|
104
|
-
|
103
|
+
export class QueryBuilderWindowColumnState extends QueryBuilderTDSColumnState {
|
104
|
+
windowState;
|
105
105
|
windowColumns = [];
|
106
106
|
sortByState;
|
107
107
|
operationState;
|
108
108
|
columnName;
|
109
|
-
constructor(
|
109
|
+
constructor(windowState, windowColumns, sortType, operationState, columnName) {
|
110
110
|
super();
|
111
111
|
makeObservable(this, {
|
112
112
|
windowColumns: observable,
|
@@ -122,25 +122,26 @@ export class QueryBuilderOLAPGroupByColumnState extends QueryBuilderTDSColumnSta
|
|
122
122
|
changeOperator: action,
|
123
123
|
changeSortBy: action,
|
124
124
|
});
|
125
|
-
this.
|
125
|
+
this.windowState = windowState;
|
126
126
|
this.windowColumns = windowColumns;
|
127
127
|
this.sortByState = sortType;
|
128
128
|
this.operationState = operationState;
|
129
129
|
this.columnName = columnName;
|
130
130
|
}
|
131
|
-
get
|
132
|
-
return this.
|
131
|
+
get columnWindowGroupIdx() {
|
132
|
+
return this.windowState.windowColumns.findIndex((e) => e === this);
|
133
133
|
}
|
134
134
|
get possibleReferencedColumns() {
|
135
|
-
// column can only reference TDS columns already defined, i.e in an earlier index of the
|
136
|
-
const idx = this.
|
135
|
+
// column can only reference TDS columns already defined, i.e in an earlier index of the window columns
|
136
|
+
const idx = this.windowState.tdsState.tdsColumns.findIndex((e) => e === this);
|
137
137
|
if (idx === -1) {
|
138
|
-
return this.
|
138
|
+
return this.windowState.tdsState.tdsColumns;
|
139
139
|
}
|
140
|
-
return this.
|
140
|
+
return this.windowState.tdsState.tdsColumns.slice(0, idx);
|
141
141
|
}
|
142
142
|
get referencedTDSColumns() {
|
143
|
-
const operatorReference = this.operationState instanceof
|
143
|
+
const operatorReference = this.operationState instanceof
|
144
|
+
QueryBuilderTDS_WindowAggreationOperatorState
|
144
145
|
? [this.operationState.columnState]
|
145
146
|
: [];
|
146
147
|
const soryByReference = this.sortByState
|
@@ -149,7 +150,7 @@ export class QueryBuilderOLAPGroupByColumnState extends QueryBuilderTDSColumnSta
|
|
149
150
|
return [...this.windowColumns, ...soryByReference, ...operatorReference];
|
150
151
|
}
|
151
152
|
getColumnType() {
|
152
|
-
return this.operationState.operator.getOperatorReturnType(this.
|
153
|
+
return this.operationState.operator.getOperatorReturnType(this.windowState.tdsState.queryBuilderState.graphManagerState.graph);
|
153
154
|
}
|
154
155
|
setColumnName(val) {
|
155
156
|
this.columnName = val;
|
@@ -175,23 +176,24 @@ export class QueryBuilderOLAPGroupByColumnState extends QueryBuilderTDSColumnSta
|
|
175
176
|
}
|
176
177
|
return [];
|
177
178
|
}
|
178
|
-
changeOperator(
|
179
|
+
changeOperator(windowOp) {
|
179
180
|
const currentOperator = this.operationState.operator;
|
180
|
-
const currentAggregateColumn = this.operationState instanceof
|
181
|
+
const currentAggregateColumn = this.operationState instanceof
|
182
|
+
QueryBuilderTDS_WindowAggreationOperatorState
|
181
183
|
? this.operationState.columnState
|
182
184
|
: undefined;
|
183
|
-
if (currentOperator !==
|
184
|
-
if (
|
185
|
+
if (currentOperator !== windowOp) {
|
186
|
+
if (windowOp.isColumnAggregator()) {
|
185
187
|
const compatibleAggCol = currentAggregateColumn &&
|
186
|
-
|
188
|
+
windowOp.isCompatibleWithColumn(currentAggregateColumn)
|
187
189
|
? currentAggregateColumn
|
188
|
-
: this.possibleAggregatedColumns(
|
190
|
+
: this.possibleAggregatedColumns(windowOp)[0];
|
189
191
|
if (compatibleAggCol) {
|
190
|
-
this.setOperatorState(new
|
192
|
+
this.setOperatorState(new QueryBuilderTDS_WindowAggreationOperatorState(this.windowState, windowOp, compatibleAggCol));
|
191
193
|
}
|
192
194
|
}
|
193
195
|
else {
|
194
|
-
this.setOperatorState(new
|
196
|
+
this.setOperatorState(new QueryBuilderTDS_WindowRankOperatorState(this.windowState, windowOp));
|
195
197
|
}
|
196
198
|
}
|
197
199
|
}
|
@@ -200,7 +202,7 @@ export class QueryBuilderOLAPGroupByColumnState extends QueryBuilderTDSColumnSta
|
|
200
202
|
if (sortByState?.sortType !== sortOp) {
|
201
203
|
if (sortOp) {
|
202
204
|
const sortInfoOpState = sortByState ??
|
203
|
-
new
|
205
|
+
new WindowGroupByColumnSortByState(guaranteeNonNullable(this.possibleReferencedColumns[0]), sortOp);
|
204
206
|
sortInfoOpState.setSortType(sortOp);
|
205
207
|
this.setSortBy(sortInfoOpState);
|
206
208
|
}
|
@@ -211,7 +213,7 @@ export class QueryBuilderOLAPGroupByColumnState extends QueryBuilderTDSColumnSta
|
|
211
213
|
}
|
212
214
|
get hashCode() {
|
213
215
|
return hashArray([
|
214
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
216
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_COLUMN_STATE,
|
215
217
|
hashArray(this.windowColumns),
|
216
218
|
this.sortByState ?? '',
|
217
219
|
this.operationState,
|
@@ -219,16 +221,16 @@ export class QueryBuilderOLAPGroupByColumnState extends QueryBuilderTDSColumnSta
|
|
219
221
|
]);
|
220
222
|
}
|
221
223
|
}
|
222
|
-
export class
|
224
|
+
export class QueryBuilderWindowState {
|
223
225
|
tdsState;
|
224
|
-
|
226
|
+
windowColumns = [];
|
225
227
|
operators;
|
226
228
|
editColumn;
|
227
229
|
constructor(tdsState, operators) {
|
228
230
|
makeObservable(this, {
|
229
|
-
|
231
|
+
windowColumns: observable,
|
230
232
|
editColumn: observable,
|
231
|
-
|
233
|
+
addWindowColumn: action,
|
232
234
|
removeColumn: action,
|
233
235
|
moveColumn: action,
|
234
236
|
setEditColumn: action,
|
@@ -237,10 +239,10 @@ export class QueryBuilderOLAPGroupByState {
|
|
237
239
|
this.operators = operators;
|
238
240
|
}
|
239
241
|
get isEmpty() {
|
240
|
-
return !this.
|
242
|
+
return !this.windowColumns.length;
|
241
243
|
}
|
242
244
|
get referencedTDSColumns() {
|
243
|
-
return uniq(this.
|
245
|
+
return uniq(this.windowColumns.map((c) => c.referencedTDSColumns).flat());
|
244
246
|
}
|
245
247
|
setEditColumn(col) {
|
246
248
|
this.editColumn = col;
|
@@ -248,25 +250,25 @@ export class QueryBuilderOLAPGroupByState {
|
|
248
250
|
findOperator(func) {
|
249
251
|
return this.operators.find((o) => matchFunctionName(func, o.pureFunc));
|
250
252
|
}
|
251
|
-
|
252
|
-
addUniqueEntry(this.
|
253
|
+
addWindowColumn(windowCol) {
|
254
|
+
addUniqueEntry(this.windowColumns, windowCol);
|
253
255
|
}
|
254
256
|
removeColumn(column) {
|
255
|
-
deleteEntry(this.
|
257
|
+
deleteEntry(this.windowColumns, column);
|
256
258
|
}
|
257
259
|
moveColumn(fromIndex, toIndex) {
|
258
|
-
const fromCol = this.
|
259
|
-
const toCol = this.
|
260
|
+
const fromCol = this.windowColumns[fromIndex];
|
261
|
+
const toCol = this.windowColumns[toIndex];
|
260
262
|
if (fromCol && toCol) {
|
261
|
-
this.
|
262
|
-
this.
|
263
|
+
this.windowColumns[fromIndex] = toCol;
|
264
|
+
this.windowColumns[toIndex] = fromCol;
|
263
265
|
}
|
264
266
|
}
|
265
267
|
get hashCode() {
|
266
268
|
return hashArray([
|
267
|
-
QUERY_BUILDER_HASH_STRUCTURE.
|
268
|
-
hashArray(this.
|
269
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_GROUPBY_STATE,
|
270
|
+
hashArray(this.windowColumns),
|
269
271
|
]);
|
270
272
|
}
|
271
273
|
}
|
272
|
-
//# sourceMappingURL=
|
274
|
+
//# sourceMappingURL=QueryBuilderWindowState.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderWindowState.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/window/QueryBuilderWindowState.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,iBAAiB,EAAa,MAAM,qBAAqB,CAAC;AACnE,OAAO,EACL,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,SAAS,EACT,IAAI,GAEL,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAK9E,MAAM,CAAC,MAAM,oCAAoC,GAAG,eAAe,CAAC;AAUpE,MAAM,OAAO,8BAA8B;IACzC,WAAW,CAA6B;IACxC,QAAQ,CAAmB;IAE3B,YACE,WAAuC,EACvC,QAA0B;QAE1B,cAAc,CAAC,IAAI,EAAE;YACnB,WAAW,EAAE,UAAU;YACvB,QAAQ,EAAE,UAAU;YACpB,cAAc,EAAE,MAAM;YACtB,WAAW,EAAE,MAAM;SACpB,CAAC,CAAC;QAEH,I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CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;YACtC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;SACvC;IACH,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,wBAAwB;YACrD,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;CACF"}
|
@@ -16,4 +16,4 @@
|
|
16
16
|
import { LambdaFunction, SimpleFunctionExpression } from '@finos/legend-graph';
|
17
17
|
import type { QueryBuilderState } from '../../../QueryBuilderState.js';
|
18
18
|
export declare const processTDS_OLAPGroupByExpression: (expression: SimpleFunctionExpression, queryBuilderState: QueryBuilderState, parentLambda: LambdaFunction) => void;
|
19
|
-
//# sourceMappingURL=
|
19
|
+
//# sourceMappingURL=QueryBuilderWindowStateBuilder.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderWindowStateBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,cAAc,EAId,wBAAwB,EAEzB,MAAM,qBAAqB,CAAC;AAS7B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAevE,eAAO,MAAM,gCAAgC,eAC/B,wBAAwB,qBACjB,iBAAiB,gBACtB,cAAc,KAC3B,IA0LF,CAAC"}
|
@@ -19,7 +19,7 @@ import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/Quer
|
|
19
19
|
import { QueryBuilderValueSpecificationProcessor } from '../../../QueryBuilderStateBuilder.js';
|
20
20
|
import { getTDSColumnState, getTDSColSortTypeFromFunctionName, } from '../QueryBuilderTDSHelper.js';
|
21
21
|
import { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
22
|
-
import {
|
22
|
+
import { WindowGroupByColumnSortByState, QueryBuilderWindowColumnState, QueryBuilderTDS_WindowAggreationOperatorState, QueryBuilderTDS_WindowRankOperatorState, } from './QueryBuilderWindowState.js';
|
23
23
|
export const processTDS_OLAPGroupByExpression = (expression, queryBuilderState, parentLambda) => {
|
24
24
|
// check parameters
|
25
25
|
const parametersLength = expression.parametersValues.length;
|
@@ -63,7 +63,7 @@ export const processTDS_OLAPGroupByExpression = (expression, queryBuilderState,
|
|
63
63
|
const colSortType = getTDSColSortTypeFromFunctionName(sortByFunctionName);
|
64
64
|
const colSortVal = guaranteeIsString(guaranteeType(sortByExpression.parametersValues[0], PrimitiveInstanceValue, 'Can`t process OLAP sort column : OLAP sort column should be a primitive instance value').values[0], 'Can`t process OLAP sort column: OLAP sort column should be a string primitive instance value');
|
65
65
|
const sortColState = getTDSColumnState(tdsState, colSortVal);
|
66
|
-
sortByState = new
|
66
|
+
sortByState = new WindowGroupByColumnSortByState(sortColState, colSortType);
|
67
67
|
}
|
68
68
|
// process olap operation
|
69
69
|
let operatorState;
|
@@ -77,8 +77,8 @@ export const processTDS_OLAPGroupByExpression = (expression, queryBuilderState,
|
|
77
77
|
const operationLambda = guaranteeType(guaranteeType(olapOperationExpressionParams[1], LambdaFunctionInstanceValue).values[0], LambdaFunction);
|
78
78
|
assertTrue(operationLambda.expressionSequence.length === 1);
|
79
79
|
const operationFunctionExp = guaranteeType(operationLambda.expressionSequence[0], SimpleFunctionExpression);
|
80
|
-
const operation = guaranteeNonNullable(tdsState.
|
81
|
-
operatorState = new
|
80
|
+
const operation = guaranteeNonNullable(tdsState.windowState.findOperator(operationFunctionExp.functionName), `olapGroupBy() operator '${operationFunctionExp.functionName}' not supported`);
|
81
|
+
operatorState = new QueryBuilderTDS_WindowAggreationOperatorState(tdsState.windowState, operation, oppColumnState);
|
82
82
|
operatorState.setLambdaParameterName(guaranteeType(operationLambda.functionType.parameters[0], VariableExpression, `Can't process olapGroupBy() operation lambda: only support olapGroupBy() operation lambda with 1 parameter of type 'VariableExpression'`).name);
|
83
83
|
}
|
84
84
|
else {
|
@@ -86,15 +86,15 @@ export const processTDS_OLAPGroupByExpression = (expression, queryBuilderState,
|
|
86
86
|
.values[0], LambdaFunction);
|
87
87
|
assertTrue(operationLambda.expressionSequence.length === 1);
|
88
88
|
const operationFunctionExp = guaranteeType(operationLambda.expressionSequence[0], SimpleFunctionExpression);
|
89
|
-
const operation = guaranteeNonNullable(tdsState.
|
89
|
+
const operation = guaranteeNonNullable(tdsState.windowState.findOperator(operationFunctionExp.functionName), `olapGroupBy() operator '${operationFunctionExp.functionName}' not supported`);
|
90
90
|
assertTrue(!operation.isColumnAggregator(), `Operator '${operation.getLabel()}' expects a TDS column to aggregate against`);
|
91
|
-
operatorState = new
|
91
|
+
operatorState = new QueryBuilderTDS_WindowRankOperatorState(tdsState.windowState, operation);
|
92
92
|
operatorState.setLambdaParameterName(guaranteeType(operationLambda.functionType.parameters[0], VariableExpression, `Can't process olapGroupBy() operation lambda: only support olapGroupBy() operation lambda with 1 parameter of type 'VariableExpression'`).name);
|
93
93
|
}
|
94
94
|
// main col
|
95
95
|
const olapColumnValue = guaranteeIsString(guaranteeType(olapColumnExpression, PrimitiveInstanceValue, 'Can`t process OLAP column: OLAP column should be a primitive instance value').values[0], 'Can`t process OLAP column: OLAP column should be a string primitive instance value');
|
96
|
-
const olapGroupByColumnState = new
|
97
|
-
tdsState.
|
98
|
-
tdsState.
|
96
|
+
const olapGroupByColumnState = new QueryBuilderWindowColumnState(tdsState.windowState, windowColumns, sortByState, operatorState, olapColumnValue);
|
97
|
+
tdsState.windowState.addWindowColumn(olapGroupByColumnState);
|
98
|
+
tdsState.setShowWindowFuncPanel(true);
|
99
99
|
};
|
100
|
-
//# sourceMappingURL=
|
100
|
+
//# sourceMappingURL=QueryBuilderWindowStateBuilder.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderWindowStateBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/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,CACV,CAAC;QACF,aAAa,CAAC,sBAAsB,CAClC,aAAa,CACX,eAAe,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,EAC1C,kBAAkB,EAClB,yIAAyI,CAC1I,CAAC,IAAI,CACP,CAAC;KACH;IAED,WAAW;IACX,MAAM,eAAe,GAAG,iBAAiB,CACvC,aAAa,CACX,oBAAoB,EACpB,sBAAsB,EACtB,6EAA6E,CAC9E,CAAC,MAAM,CAAC,CAAC,CAAC,EACX,oFAAoF,CACrF,CAAC;IACF,MAAM,sBAAsB,GAAG,IAAI,6BAA6B,CAC9D,QAAQ,CAAC,WAAW,EACpB,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,CAChB,CAAC;IACF,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC;IAC7D,QAAQ,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC"}
|
@@ -14,6 +14,6 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type LambdaFunction } from '@finos/legend-graph';
|
17
|
-
import { type
|
18
|
-
export declare const appendOLAPGroupByState: (olapGroupByState:
|
19
|
-
//# sourceMappingURL=
|
17
|
+
import { type QueryBuilderWindowState } from './QueryBuilderWindowState.js';
|
18
|
+
export declare const appendOLAPGroupByState: (olapGroupByState: QueryBuilderWindowState, lambda: LambdaFunction) => LambdaFunction;
|
19
|
+
//# sourceMappingURL=QueryBuilderWindowValueSpecificationBuilder.d.ts.map
|
package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderWindowValueSpecificationBuilder.d.ts","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,cAAc,EAUpB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAEL,KAAK,uBAAuB,EAE7B,MAAM,8BAA8B,CAAC;AAkGtC,eAAO,MAAM,sBAAsB,qBACf,uBAAuB,UACjC,cAAc,KACrB,cAKF,CAAC"}
|
@@ -18,9 +18,9 @@ import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
18
18
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
19
19
|
import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
20
20
|
import { getFunctionNameFromTDSSortColumn } from '../QueryBuilderTDSHelper.js';
|
21
|
-
import {
|
21
|
+
import { QueryBuilderTDS_WindowAggreationOperatorState, } from './QueryBuilderWindowState.js';
|
22
22
|
const appendOLAPGroupByColumnState = (olapGroupByColumnState, lambda) => {
|
23
|
-
const graph = olapGroupByColumnState.
|
23
|
+
const graph = olapGroupByColumnState.windowState.tdsState.queryBuilderState
|
24
24
|
.graphManagerState.graph;
|
25
25
|
// create window cols expression
|
26
26
|
const windowColumns = olapGroupByColumnState.windowColumns.map((column) => {
|
@@ -48,7 +48,7 @@ const appendOLAPGroupByColumnState = (olapGroupByColumnState, lambda) => {
|
|
48
48
|
];
|
49
49
|
const olapLambdaFuncInstance = buildGenericLambdaFunctionInstanceValue(operationState.lambdaParameterName, [olapFuncExpression], graph);
|
50
50
|
let olapAggregationExpression;
|
51
|
-
if (operationState instanceof
|
51
|
+
if (operationState instanceof QueryBuilderTDS_WindowAggreationOperatorState) {
|
52
52
|
// column param
|
53
53
|
const olapAggregateColumn = new PrimitiveInstanceValue(GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)));
|
54
54
|
olapAggregateColumn.values = [operationState.columnState.columnName];
|
@@ -75,7 +75,7 @@ const appendOLAPGroupByColumnState = (olapGroupByColumnState, lambda) => {
|
|
75
75
|
return lambda;
|
76
76
|
};
|
77
77
|
export const appendOLAPGroupByState = (olapGroupByState, lambda) => {
|
78
|
-
olapGroupByState.
|
78
|
+
olapGroupByState.windowColumns.forEach((c) => appendOLAPGroupByColumnState(c, lambda));
|
79
79
|
return lambda;
|
80
80
|
};
|
81
|
-
//# sourceMappingURL=
|
81
|
+
//# sourceMappingURL=QueryBuilderWindowValueSpecificationBuilder.js.map
|
package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderWindowValueSpecificationBuilder.js","sourceRoot":"","sources":["../../../../../src/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,uBAAuB,EACvB,0BAA0B,EAC1B,WAAW,EACX,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACZ,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,iCAAiC,EAAE,MAAM,4DAA4D,CAAC;AAC/G,OAAO,EAAE,uCAAuC,EAAE,MAAM,kDAAkD,CAAC;AAC3G,OAAO,EAAE,gCAAgC,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAGL,6CAA6C,GAC9C,MAAM,8BAA8B,CAAC;AAEtC,MAAM,4BAA4B,GAAG,CACnC,sBAAqD,EACrD,MAAsB,EACN,EAAE;IAClB,MAAM,KAAK,GACT,sBAAsB,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAiB;SAC1D,iBAAiB,CAAC,KAAK,CAAC;IAE7B,gCAAgC;IAChC,MAAM,aAAa,GAAG,sBAAsB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;QACxE,MAAM,cAAc,GAAG,IAAI,sBAAsB,CAC/C,4BAA4B,CAAC,MAA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AU,CAAC;KACzC,CAAC;IACF,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC;IAC9C,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,gBAAyC,EACzC,MAAsB,EACN,EAAE;IAClB,gBAAgB,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAC3C,4BAA4B,CAAC,CAAC,EAAE,MAAM,CAAC,CACxC,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
@@ -16,7 +16,7 @@
|
|
16
16
|
import { type PureModel, type Type } from '@finos/legend-graph';
|
17
17
|
import { type Hashable } from '@finos/legend-shared';
|
18
18
|
import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState.js';
|
19
|
-
export declare abstract class
|
19
|
+
export declare abstract class QueryBuilderTDS_WindowOperator implements Hashable {
|
20
20
|
readonly uuid: string;
|
21
21
|
abstract getLabel(): string;
|
22
22
|
abstract get hashCode(): string;
|
@@ -26,4 +26,4 @@ export declare abstract class QueryBuilderTDS_OLAPOperator implements Hashable {
|
|
26
26
|
getOperatorReturnType(graph: PureModel): Type;
|
27
27
|
isCompatibleWithColumn(column: QueryBuilderTDSColumnState): boolean;
|
28
28
|
}
|
29
|
-
//# sourceMappingURL=
|
29
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator.d.ts.map
|
package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderTDS_WindowOperator.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,KAAK,QAAQ,EAAQ,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AAEtF,8BAAsB,8BAA+B,YAAW,QAAQ;IACtE,QAAQ,CAAC,IAAI,SAAU;IAEvB,QAAQ,CAAC,QAAQ,IAAI,MAAM;IAE3B,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;IAEhC,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;IAEhC,QAAQ,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO;IAE9D,kBAAkB,IAAI,OAAO;IAI7B,qBAAqB,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAI7C,sBAAsB,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO;CAGpE"}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
*/
|
16
16
|
import { PrimitiveType } from '@finos/legend-graph';
|
17
17
|
import { uuid } from '@finos/legend-shared';
|
18
|
-
export class
|
18
|
+
export class QueryBuilderTDS_WindowOperator {
|
19
19
|
uuid = uuid();
|
20
20
|
isColumnAggregator() {
|
21
21
|
return false;
|
@@ -27,4 +27,4 @@ export class QueryBuilderTDS_OLAPOperator {
|
|
27
27
|
return this.isCompatibleWithType(column.getColumnType());
|
28
28
|
}
|
29
29
|
}
|
30
|
-
//# sourceMappingURL=
|
30
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderTDS_WindowOperator.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,aAAa,EAA6B,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAiB,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAG3D,MAAM,OAAgB,8BAA8B;IACzC,IAAI,GAAG,IAAI,EAAE,CAAC;IAUvB,kBAAkB;QAChB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,qBAAqB,CAAC,KAAgB;QACpC,OAAO,aAAa,CAAC,MAAM,CAAC;IAC9B,CAAC;IAED,sBAAsB,CAAC,MAAkC;QACvD,OAAO,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.d.ts
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
3
|
+
*
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
* you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
* See the License for the specific language governing permissions and
|
14
|
+
* limitations under the License.
|
15
|
+
*/
|
16
|
+
import { type Type } from '@finos/legend-graph';
|
17
|
+
import { QueryBuilderTDS_WindowOperator } from './QueryBuilderTDS_WindowOperator.js';
|
18
|
+
export declare class QueryBuilderTDS_WindowOperator_Average extends QueryBuilderTDS_WindowOperator {
|
19
|
+
isColumnAggregator(): boolean;
|
20
|
+
getLabel(): string;
|
21
|
+
get pureFunc(): string;
|
22
|
+
get hashCode(): string;
|
23
|
+
isCompatibleWithType(type: Type | undefined): boolean;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator_Average.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderTDS_WindowOperator_Average.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,IAAI,EAAkB,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAIrF,qBAAa,sCAAuC,SAAQ,8BAA8B;IAC/E,kBAAkB,IAAI,OAAO;IAItC,QAAQ,IAAI,MAAM;IAGlB,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,IAAI,MAAM,CAIrB;IAED,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO;CAiBtD"}
|
@@ -15,10 +15,10 @@
|
|
15
15
|
*/
|
16
16
|
import { hashArray } from '@finos/legend-shared';
|
17
17
|
import { PRIMITIVE_TYPE } from '@finos/legend-graph';
|
18
|
-
import {
|
18
|
+
import { QueryBuilderTDS_WindowOperator } from './QueryBuilderTDS_WindowOperator.js';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
-
export class
|
21
|
+
export class QueryBuilderTDS_WindowOperator_Average extends QueryBuilderTDS_WindowOperator {
|
22
22
|
isColumnAggregator() {
|
23
23
|
return true;
|
24
24
|
}
|
@@ -29,7 +29,9 @@ export class QueryBuilderTDS_OLAPOperator_Average extends QueryBuilderTDS_OLAPOp
|
|
29
29
|
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.AVERAGE;
|
30
30
|
}
|
31
31
|
get hashCode() {
|
32
|
-
return hashArray([
|
32
|
+
return hashArray([
|
33
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_OPERATOR_AVERAGE,
|
34
|
+
]);
|
33
35
|
}
|
34
36
|
isCompatibleWithType(type) {
|
35
37
|
if (type) {
|
@@ -47,4 +49,4 @@ export class QueryBuilderTDS_OLAPOperator_Average extends QueryBuilderTDS_OLAPOp
|
|
47
49
|
return true;
|
48
50
|
}
|
49
51
|
}
|
50
|
-
//# sourceMappingURL=
|
52
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator_Average.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderTDS_WindowOperator_Average.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAa,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAElH,MAAM,OAAO,sCAAuC,SAAQ,8BAA8B;IAC/E,kBAAkB;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,QAAQ;QACN,OAAO,KAAK,CAAC;IACf,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,iCAAiC,CAAC,OAAO,CAAC;IACnD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,4BAA4B,CAAC,2BAA2B;SACzD,CAAC,CAAC;IACL,CAAC;IAED,oBAAoB,CAAC,IAAsB;QACzC,IAAI,IAAI,EAAE;YACR,OACE;gBACE,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;gBACpB,cAAc,CAAC,IAAI;gBACnB,cAAc,CAAC,UAAU;gBACzB,cAAc,CAAC,QAAQ;aAE1B,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACvB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
@@ -14,12 +14,12 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type Type } from '@finos/legend-graph';
|
17
|
-
import {
|
18
|
-
export declare class
|
17
|
+
import { QueryBuilderTDS_WindowOperator } from './QueryBuilderTDS_WindowOperator.js';
|
18
|
+
export declare class QueryBuilderTDS_WindowOperator_Count extends QueryBuilderTDS_WindowOperator {
|
19
19
|
isColumnAggregator(): boolean;
|
20
20
|
getLabel(): string;
|
21
21
|
get pureFunc(): string;
|
22
22
|
get hashCode(): string;
|
23
23
|
isCompatibleWithType(type: Type | undefined): boolean;
|
24
24
|
}
|
25
|
-
//# sourceMappingURL=
|
25
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator_Count.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderTDS_WindowOperator_Count.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,IAAI,EAAkB,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAIrF,qBAAa,oCAAqC,SAAQ,8BAA8B;IAC7E,kBAAkB,IAAI,OAAO;IAItC,QAAQ,IAAI,MAAM;IAGlB,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO;CAkBtD"}
|
@@ -15,10 +15,10 @@
|
|
15
15
|
*/
|
16
16
|
import { hashArray } from '@finos/legend-shared';
|
17
17
|
import { PRIMITIVE_TYPE } from '@finos/legend-graph';
|
18
|
-
import {
|
18
|
+
import { QueryBuilderTDS_WindowOperator } from './QueryBuilderTDS_WindowOperator.js';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
-
export class
|
21
|
+
export class QueryBuilderTDS_WindowOperator_Count extends QueryBuilderTDS_WindowOperator {
|
22
22
|
isColumnAggregator() {
|
23
23
|
return true;
|
24
24
|
}
|
@@ -29,7 +29,7 @@ export class QueryBuilderTDS_OLAPOperator_Count extends QueryBuilderTDS_OLAPOper
|
|
29
29
|
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.COUNT;
|
30
30
|
}
|
31
31
|
get hashCode() {
|
32
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
32
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_OPERATOR_COUNT]);
|
33
33
|
}
|
34
34
|
isCompatibleWithType(type) {
|
35
35
|
if (type) {
|
@@ -48,4 +48,4 @@ export class QueryBuilderTDS_OLAPOperator_Count extends QueryBuilderTDS_OLAPOper
|
|
48
48
|
return true;
|
49
49
|
}
|
50
50
|
}
|
51
|
-
//# sourceMappingURL=
|
51
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator_Count.js.map
|
package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderTDS_WindowOperator_Count.js","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAa,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AACrF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,EAAE,iCAAiC,EAAE,MAAM,+DAA+D,CAAC;AAElH,MAAM,OAAO,oCAAqC,SAAQ,8BAA8B;IAC7E,kBAAkB;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,QAAQ;QACN,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,IAAI,QAAQ;QACV,OAAO,iCAAiC,CAAC,KAAK,CAAC;IACjD,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,4BAA4B,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAC7E,CAAC;IAED,oBAAoB,CAAC,IAAsB;QACzC,IAAI,IAAI,EAAE;YACR,OACE;gBACE,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,MAAM;gBACrB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,OAAO;gBACtB,cAAc,CAAC,KAAK;gBACpB,cAAc,CAAC,IAAI;gBACnB,cAAc,CAAC,UAAU;gBACzB,cAAc,CAAC,QAAQ;aAE1B,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACvB;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
@@ -14,12 +14,12 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
import { type Type } from '@finos/legend-graph';
|
17
|
-
import {
|
18
|
-
export declare class
|
17
|
+
import { QueryBuilderTDS_WindowOperator } from './QueryBuilderTDS_WindowOperator.js';
|
18
|
+
export declare class QueryBuilderTDS_WindowOperator_Max extends QueryBuilderTDS_WindowOperator {
|
19
19
|
isColumnAggregator(): boolean;
|
20
20
|
getLabel(): string;
|
21
21
|
get pureFunc(): string;
|
22
22
|
get hashCode(): string;
|
23
23
|
isCompatibleWithType(type: Type | undefined): boolean;
|
24
24
|
}
|
25
|
-
//# sourceMappingURL=
|
25
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator_Max.d.ts.map
|
package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.d.ts.map
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"QueryBuilderTDS_WindowOperator_Max.d.ts","sourceRoot":"","sources":["../../../../../../src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,IAAI,EAAkB,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAIrF,qBAAa,kCAAmC,SAAQ,8BAA8B;IAC3E,kBAAkB,IAAI,OAAO;IAItC,QAAQ,IAAI,MAAM;IAGlB,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO;CAiBtD"}
|
@@ -15,10 +15,10 @@
|
|
15
15
|
*/
|
16
16
|
import { hashArray } from '@finos/legend-shared';
|
17
17
|
import { PRIMITIVE_TYPE } from '@finos/legend-graph';
|
18
|
-
import {
|
18
|
+
import { QueryBuilderTDS_WindowOperator } from './QueryBuilderTDS_WindowOperator.js';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
-
export class
|
21
|
+
export class QueryBuilderTDS_WindowOperator_Max extends QueryBuilderTDS_WindowOperator {
|
22
22
|
isColumnAggregator() {
|
23
23
|
return true;
|
24
24
|
}
|
@@ -29,7 +29,7 @@ export class QueryBuilderTDS_OLAPOperator_Max extends QueryBuilderTDS_OLAPOperat
|
|
29
29
|
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.MAX;
|
30
30
|
}
|
31
31
|
get hashCode() {
|
32
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
32
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_WINDOW_OPERATOR_MAX]);
|
33
33
|
}
|
34
34
|
isCompatibleWithType(type) {
|
35
35
|
if (type) {
|
@@ -47,4 +47,4 @@ export class QueryBuilderTDS_OLAPOperator_Max extends QueryBuilderTDS_OLAPOperat
|
|
47
47
|
return true;
|
48
48
|
}
|
49
49
|
}
|
50
|
-
//# sourceMappingURL=
|
50
|
+
//# sourceMappingURL=QueryBuilderTDS_WindowOperator_Max.js.map
|