@finos/legend-query-builder 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.d.ts +0 -1
- package/lib/components/QueryBuilder.d.ts.map +1 -1
- package/lib/components/QueryBuilder.js +42 -9
- package/lib/components/QueryBuilder.js.map +1 -1
- package/lib/components/QueryBuilderComponentTestUtils.d.ts.map +1 -1
- package/lib/components/QueryBuilderComponentTestUtils.js +2 -5
- package/lib/components/QueryBuilderComponentTestUtils.js.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts +0 -1
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js +2 -2
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts +0 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts +0 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts +0 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js +3 -3
- package/lib/components/QueryBuilderSideBar.d.ts +0 -1
- package/lib/components/QueryBuilderSideBar.d.ts.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +2 -1
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/QueryBuilderTextEditor.d.ts +0 -1
- package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts +0 -1
- package/lib/components/QueryBuilderUnsupportedQueryEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilder_TestID.d.ts +1 -0
- package/lib/components/QueryBuilder_TestID.d.ts.map +1 -1
- package/lib/components/QueryBuilder_TestID.js +1 -0
- package/lib/components/QueryBuilder_TestID.js.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js +5 -5
- package/lib/components/explorer/QueryBuilderFunctionsExplorerPanel.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +2 -2
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts +0 -1
- package/lib/components/explorer/QueryBuilderPropertySearchPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderFetchStructurePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderGraphFetchTreePanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js +363 -0
- package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +21 -53
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts +22 -0
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js +32 -0
- package/lib/components/fetch-structure/QueryBuilderPostTDSPanel.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +2 -1
- package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts +27 -0
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js +61 -0
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts +0 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.d.ts.map +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js +4 -13
- package/lib/components/fetch-structure/QueryBuilderTDSPanel.js.map +1 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts +0 -1
- package/lib/components/filter/QueryBuilderFilterPanel.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.d.ts +0 -1
- package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaEditor.js +23 -7
- package/lib/components/shared/LambdaEditor.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts +0 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.d.ts.map +1 -1
- package/lib/components/workflows/ServiceQueryBuilder.js +5 -1
- package/lib/components/workflows/ServiceQueryBuilder.js.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.d.ts +14 -0
- package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderHashUtils.js +15 -0
- package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +7 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
- package/lib/graphManager/QueryBuilderSupportedFunctions.js +7 -0
- package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +4 -1
- package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +50 -0
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.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/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +7 -1
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderStateTestUtils.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateTestUtils.js +2 -4
- package/lib/stores/QueryBuilderStateTestUtils.js.map +1 -1
- package/lib/stores/QueryBuilderTypeaheadHelper.js +2 -2
- package/lib/stores/explorer/QueryBuilderExplorerState.js +3 -3
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts +1 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js +3 -0
- package/lib/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js +2 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.d.ts +24 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.js +20 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +23 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js +41 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.js.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +11 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +44 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js +2 -2
- package/lib/stores/fetch-structure/tds/QueryResultSetModifierState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +4 -4
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +8 -7
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.d.ts +18 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js +36 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.d.ts +91 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.js +272 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.d.ts +19 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.js +100 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts +19 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.js +83 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.d.ts +29 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.js +30 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.d.ts +25 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.js +50 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.d.ts +25 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.js +51 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.d.ts +25 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.js +50 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.d.ts +25 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.js +50 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.d.ts +25 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.js +51 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts +24 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.js +48 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts +24 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.js +48 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.d.ts +24 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.js +48 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts +24 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.js +48 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.js +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +6 -4
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +14 -3
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js +8 -11
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js +5 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +4 -4
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts +2 -2
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.js +3 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.js +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +4 -6
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +6 -5
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js.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 +1 -0
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.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 +6 -3
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.d.ts +2 -0
- package/lib/stores/filter/QueryBuilderFilterState.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterState.js +6 -0
- package/lib/stores/filter/QueryBuilderFilterState.js.map +1 -1
- package/package.json +13 -13
- package/src/components/QueryBuilder.tsx +110 -35
- package/src/components/QueryBuilderComponentTestUtils.tsx +9 -11
- package/src/components/QueryBuilderDiffPanel.tsx +2 -2
- package/src/components/QueryBuilderResultPanel.tsx +4 -4
- package/src/components/QueryBuilderSideBar.tsx +4 -1
- package/src/components/QueryBuilder_TestID.ts +1 -0
- package/src/components/explorer/QueryBuilderFunctionsExplorerPanel.tsx +6 -6
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +2 -3
- package/src/components/fetch-structure/QueryBuilderOlapGroupByPanel.tsx +1140 -0
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +31 -106
- package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +69 -0
- package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +4 -1
- package/src/components/fetch-structure/QueryBuilderTDSComponentHelper.tsx +118 -0
- package/src/components/fetch-structure/QueryBuilderTDSPanel.tsx +4 -23
- package/src/components/shared/LambdaEditor.tsx +25 -22
- package/src/components/workflows/ServiceQueryBuilder.tsx +10 -2
- package/src/graphManager/QueryBuilderHashUtils.ts +16 -0
- package/src/graphManager/QueryBuilderSupportedFunctions.ts +7 -0
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +14 -0
- package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +129 -0
- package/src/stores/QueryBuilderStateBuilder.ts +14 -1
- package/src/stores/QueryBuilderStateTestUtils.ts +9 -13
- package/src/stores/QueryBuilderTypeaheadHelper.ts +2 -2
- package/src/stores/explorer/QueryBuilderExplorerState.ts +3 -3
- package/src/stores/fetch-structure/QueryBuilderFetchStructureImplementationState.ts +4 -0
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeState.ts +2 -1
- package/src/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.ts +28 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +79 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +68 -1
- package/src/stores/fetch-structure/tds/QueryResultSetModifierState.ts +2 -2
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregateOperator.ts +1 -1
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +11 -9
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.ts +39 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByState.ts +377 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByStateBuilder.ts +237 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByValueSpecificationBuilder.ts +148 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_.ts +43 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.ts +56 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.ts +57 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.ts +56 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.ts +56 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.ts +57 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.ts +54 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.ts +54 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.ts +54 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.ts +54 -0
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterOperator.ts +2 -2
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +22 -10
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +11 -19
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +8 -7
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +4 -4
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +3 -3
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThan.ts +3 -3
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_GreaterThanEqual.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +2 -2
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +3 -3
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThan.ts +3 -3
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_LessThanEqual.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +1 -1
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +9 -11
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +1 -0
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +8 -4
- package/src/stores/filter/QueryBuilderFilterState.ts +7 -0
- package/tsconfig.json +19 -0
@@ -0,0 +1,148 @@
|
|
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
|
+
|
17
|
+
import {
|
18
|
+
type LambdaFunction,
|
19
|
+
CollectionInstanceValue,
|
20
|
+
extractElementNameFromPath,
|
21
|
+
GenericType,
|
22
|
+
GenericTypeExplicitReference,
|
23
|
+
PrimitiveInstanceValue,
|
24
|
+
PRIMITIVE_TYPE,
|
25
|
+
SimpleFunctionExpression,
|
26
|
+
TYPICAL_MULTIPLICITY_TYPE,
|
27
|
+
VariableExpression,
|
28
|
+
} from '@finos/legend-graph';
|
29
|
+
import { guaranteeNonNullable } from '@finos/legend-shared';
|
30
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
31
|
+
import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
32
|
+
import { getFunctionNameFromTDSSortColumn } from '../QueryBuilderTDSHelper.js';
|
33
|
+
import {
|
34
|
+
type QueryBuilderOlapGroupByColumnState,
|
35
|
+
type QueryBuilderOlapGroupByState,
|
36
|
+
QueryBuilderTDSOlapAggreationOperatorState,
|
37
|
+
} from './QueryBuilderOlapGroupByState.js';
|
38
|
+
|
39
|
+
const appendOlapGroupByColumnState = (
|
40
|
+
olapGroupByColumnState: QueryBuilderOlapGroupByColumnState,
|
41
|
+
lambda: LambdaFunction,
|
42
|
+
): LambdaFunction => {
|
43
|
+
const graph =
|
44
|
+
olapGroupByColumnState.olapState.tdsState.queryBuilderState
|
45
|
+
.graphManagerState.graph;
|
46
|
+
const multiplicityOne = graph.getTypicalMultiplicity(
|
47
|
+
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
48
|
+
);
|
49
|
+
const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
50
|
+
|
51
|
+
// create window cols expression
|
52
|
+
const windowColumns = olapGroupByColumnState.windowColumns.map((column) => {
|
53
|
+
const stringInstance = new PrimitiveInstanceValue(
|
54
|
+
GenericTypeExplicitReference.create(new GenericType(typeString)),
|
55
|
+
multiplicityOne,
|
56
|
+
);
|
57
|
+
stringInstance.values = [column.columnName];
|
58
|
+
return stringInstance;
|
59
|
+
});
|
60
|
+
|
61
|
+
const windowCollectionExpression = new CollectionInstanceValue(
|
62
|
+
graph.getMultiplicity(windowColumns.length, windowColumns.length),
|
63
|
+
);
|
64
|
+
windowCollectionExpression.values = windowColumns;
|
65
|
+
|
66
|
+
// create sortBy expression
|
67
|
+
let sortByFunction: SimpleFunctionExpression | undefined;
|
68
|
+
if (olapGroupByColumnState.sortByState) {
|
69
|
+
const sortByState = olapGroupByColumnState.sortByState;
|
70
|
+
sortByFunction = new SimpleFunctionExpression(
|
71
|
+
getFunctionNameFromTDSSortColumn(sortByState.sortType),
|
72
|
+
multiplicityOne,
|
73
|
+
);
|
74
|
+
const sortColInstance = new PrimitiveInstanceValue(
|
75
|
+
GenericTypeExplicitReference.create(new GenericType(typeString)),
|
76
|
+
multiplicityOne,
|
77
|
+
);
|
78
|
+
sortColInstance.values = [sortByState.columnState.columnName];
|
79
|
+
sortByFunction.parametersValues[0] = sortColInstance;
|
80
|
+
}
|
81
|
+
|
82
|
+
// create olap operation expression
|
83
|
+
const operationState = olapGroupByColumnState.operationState;
|
84
|
+
const olapFunc = extractElementNameFromPath(operationState.operator.pureFunc);
|
85
|
+
const olapFuncExpression = new SimpleFunctionExpression(
|
86
|
+
olapFunc,
|
87
|
+
multiplicityOne,
|
88
|
+
);
|
89
|
+
olapFuncExpression.parametersValues = [
|
90
|
+
new VariableExpression(operationState.lambdaParameterName, multiplicityOne),
|
91
|
+
];
|
92
|
+
const olapLambdaFuncInstance = buildGenericLambdaFunctionInstanceValue(
|
93
|
+
operationState.lambdaParameterName,
|
94
|
+
[olapFuncExpression],
|
95
|
+
graph,
|
96
|
+
);
|
97
|
+
let olapAggregationExpression: SimpleFunctionExpression | undefined;
|
98
|
+
if (operationState instanceof QueryBuilderTDSOlapAggreationOperatorState) {
|
99
|
+
// column param
|
100
|
+
const olapAggregateColumn = new PrimitiveInstanceValue(
|
101
|
+
GenericTypeExplicitReference.create(new GenericType(typeString)),
|
102
|
+
multiplicityOne,
|
103
|
+
);
|
104
|
+
olapAggregateColumn.values = [operationState.columnState.columnName];
|
105
|
+
// build `meta::pure::tds::func`
|
106
|
+
olapAggregationExpression = new SimpleFunctionExpression(
|
107
|
+
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FUNC),
|
108
|
+
multiplicityOne,
|
109
|
+
);
|
110
|
+
olapAggregationExpression.parametersValues = [
|
111
|
+
olapAggregateColumn,
|
112
|
+
olapLambdaFuncInstance,
|
113
|
+
];
|
114
|
+
}
|
115
|
+
const olapOperationExpression =
|
116
|
+
olapAggregationExpression ?? olapLambdaFuncInstance;
|
117
|
+
|
118
|
+
// OLAP column nam expression
|
119
|
+
const olapColumn = new PrimitiveInstanceValue(
|
120
|
+
GenericTypeExplicitReference.create(new GenericType(typeString)),
|
121
|
+
multiplicityOne,
|
122
|
+
);
|
123
|
+
olapColumn.values = [olapGroupByColumnState.columnName];
|
124
|
+
|
125
|
+
// create main expression
|
126
|
+
const olapExpression = new SimpleFunctionExpression(
|
127
|
+
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_GROUPBY),
|
128
|
+
multiplicityOne,
|
129
|
+
);
|
130
|
+
const currentExpression = guaranteeNonNullable(lambda.expressionSequence[0]);
|
131
|
+
olapExpression.parametersValues = [
|
132
|
+
...[currentExpression, windowCollectionExpression],
|
133
|
+
...(sortByFunction ? [sortByFunction] : []),
|
134
|
+
...[olapOperationExpression, olapColumn],
|
135
|
+
];
|
136
|
+
lambda.expressionSequence[0] = olapExpression;
|
137
|
+
return lambda;
|
138
|
+
};
|
139
|
+
|
140
|
+
export const appendOlapGroupByState = (
|
141
|
+
olapGroupByState: QueryBuilderOlapGroupByState,
|
142
|
+
lambda: LambdaFunction,
|
143
|
+
): LambdaFunction => {
|
144
|
+
olapGroupByState.olapColumns.forEach((c) =>
|
145
|
+
appendOlapGroupByColumnState(c, lambda),
|
146
|
+
);
|
147
|
+
return lambda;
|
148
|
+
};
|
@@ -0,0 +1,43 @@
|
|
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
|
+
|
17
|
+
import { PRIMITIVE_TYPE, type PureModel, type Type } from '@finos/legend-graph';
|
18
|
+
import { type Hashable, uuid } from '@finos/legend-shared';
|
19
|
+
import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState_.js';
|
20
|
+
|
21
|
+
export abstract class QueryBuilderTDSOlapOperator implements Hashable {
|
22
|
+
readonly uuid = uuid();
|
23
|
+
|
24
|
+
abstract getLabel(): string;
|
25
|
+
|
26
|
+
abstract get hashCode(): string;
|
27
|
+
|
28
|
+
abstract get pureFunc(): string;
|
29
|
+
|
30
|
+
abstract isCompatibleWithType(type: Type | undefined): boolean;
|
31
|
+
|
32
|
+
isColumnAggregator(): boolean {
|
33
|
+
return false;
|
34
|
+
}
|
35
|
+
|
36
|
+
getOperatorReturnType(graph: PureModel): Type {
|
37
|
+
return graph.getPrimitiveType(PRIMITIVE_TYPE.NUMBER);
|
38
|
+
}
|
39
|
+
|
40
|
+
isCompatibleWithColumn(column: QueryBuilderTDSColumnState): boolean {
|
41
|
+
return this.isCompatibleWithType(column.getColumnType());
|
42
|
+
}
|
43
|
+
}
|
package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.ts
ADDED
@@ -0,0 +1,56 @@
|
|
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
|
+
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
18
|
+
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
20
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapOperator_Average extends QueryBuilderTDSOlapOperator {
|
24
|
+
override isColumnAggregator(): boolean {
|
25
|
+
return true;
|
26
|
+
}
|
27
|
+
|
28
|
+
getLabel(): string {
|
29
|
+
return 'avg';
|
30
|
+
}
|
31
|
+
get pureFunc(): string {
|
32
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.AVERAGE;
|
33
|
+
}
|
34
|
+
|
35
|
+
get hashCode(): string {
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_AVERAGE]);
|
37
|
+
}
|
38
|
+
|
39
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
40
|
+
if (type) {
|
41
|
+
return (
|
42
|
+
[
|
43
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
44
|
+
PRIMITIVE_TYPE.NUMBER,
|
45
|
+
PRIMITIVE_TYPE.INTEGER,
|
46
|
+
PRIMITIVE_TYPE.DECIMAL,
|
47
|
+
PRIMITIVE_TYPE.FLOAT,
|
48
|
+
PRIMITIVE_TYPE.DATE,
|
49
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
50
|
+
PRIMITIVE_TYPE.DATETIME,
|
51
|
+
] as string[]
|
52
|
+
).includes(type.path);
|
53
|
+
}
|
54
|
+
return true;
|
55
|
+
}
|
56
|
+
}
|
package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.ts
ADDED
@@ -0,0 +1,57 @@
|
|
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
|
+
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
18
|
+
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
20
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapOperator_Count extends QueryBuilderTDSOlapOperator {
|
24
|
+
override isColumnAggregator(): boolean {
|
25
|
+
return true;
|
26
|
+
}
|
27
|
+
|
28
|
+
getLabel(): string {
|
29
|
+
return 'count';
|
30
|
+
}
|
31
|
+
get pureFunc(): string {
|
32
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.COUNT;
|
33
|
+
}
|
34
|
+
|
35
|
+
get hashCode(): string {
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_COUNT]);
|
37
|
+
}
|
38
|
+
|
39
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
40
|
+
if (type) {
|
41
|
+
return (
|
42
|
+
[
|
43
|
+
PRIMITIVE_TYPE.STRING,
|
44
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
45
|
+
PRIMITIVE_TYPE.NUMBER,
|
46
|
+
PRIMITIVE_TYPE.INTEGER,
|
47
|
+
PRIMITIVE_TYPE.DECIMAL,
|
48
|
+
PRIMITIVE_TYPE.FLOAT,
|
49
|
+
PRIMITIVE_TYPE.DATE,
|
50
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
51
|
+
PRIMITIVE_TYPE.DATETIME,
|
52
|
+
] as string[]
|
53
|
+
).includes(type.path);
|
54
|
+
}
|
55
|
+
return true;
|
56
|
+
}
|
57
|
+
}
|
package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.ts
ADDED
@@ -0,0 +1,56 @@
|
|
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
|
+
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
18
|
+
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
20
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapOperator_Max extends QueryBuilderTDSOlapOperator {
|
24
|
+
override isColumnAggregator(): boolean {
|
25
|
+
return true;
|
26
|
+
}
|
27
|
+
|
28
|
+
getLabel(): string {
|
29
|
+
return 'max';
|
30
|
+
}
|
31
|
+
get pureFunc(): string {
|
32
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.MAX;
|
33
|
+
}
|
34
|
+
|
35
|
+
get hashCode(): string {
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_MAX]);
|
37
|
+
}
|
38
|
+
|
39
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
40
|
+
if (type) {
|
41
|
+
return (
|
42
|
+
[
|
43
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
44
|
+
PRIMITIVE_TYPE.NUMBER,
|
45
|
+
PRIMITIVE_TYPE.INTEGER,
|
46
|
+
PRIMITIVE_TYPE.DECIMAL,
|
47
|
+
PRIMITIVE_TYPE.FLOAT,
|
48
|
+
PRIMITIVE_TYPE.DATE,
|
49
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
50
|
+
PRIMITIVE_TYPE.DATETIME,
|
51
|
+
] as string[]
|
52
|
+
).includes(type.path);
|
53
|
+
}
|
54
|
+
return true;
|
55
|
+
}
|
56
|
+
}
|
package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.ts
ADDED
@@ -0,0 +1,56 @@
|
|
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
|
+
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
18
|
+
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
20
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapOperator_Min extends QueryBuilderTDSOlapOperator {
|
24
|
+
override isColumnAggregator(): boolean {
|
25
|
+
return true;
|
26
|
+
}
|
27
|
+
|
28
|
+
getLabel(): string {
|
29
|
+
return 'min';
|
30
|
+
}
|
31
|
+
get pureFunc(): string {
|
32
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.MIN;
|
33
|
+
}
|
34
|
+
|
35
|
+
get hashCode(): string {
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_MIN]);
|
37
|
+
}
|
38
|
+
|
39
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
40
|
+
if (type) {
|
41
|
+
return (
|
42
|
+
[
|
43
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
44
|
+
PRIMITIVE_TYPE.NUMBER,
|
45
|
+
PRIMITIVE_TYPE.INTEGER,
|
46
|
+
PRIMITIVE_TYPE.DECIMAL,
|
47
|
+
PRIMITIVE_TYPE.FLOAT,
|
48
|
+
PRIMITIVE_TYPE.DATE,
|
49
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
50
|
+
PRIMITIVE_TYPE.DATETIME,
|
51
|
+
] as string[]
|
52
|
+
).includes(type.path);
|
53
|
+
}
|
54
|
+
return true;
|
55
|
+
}
|
56
|
+
}
|
package/src/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.ts
ADDED
@@ -0,0 +1,57 @@
|
|
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
|
+
|
17
|
+
import { hashArray } from '@finos/legend-shared';
|
18
|
+
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
20
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapOperator_Sum extends QueryBuilderTDSOlapOperator {
|
24
|
+
override isColumnAggregator(): boolean {
|
25
|
+
return true;
|
26
|
+
}
|
27
|
+
|
28
|
+
getLabel(): string {
|
29
|
+
return 'sum';
|
30
|
+
}
|
31
|
+
get pureFunc(): string {
|
32
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUM;
|
33
|
+
}
|
34
|
+
|
35
|
+
get hashCode(): string {
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_SUM]);
|
37
|
+
}
|
38
|
+
|
39
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
40
|
+
if (type) {
|
41
|
+
return (
|
42
|
+
[
|
43
|
+
PRIMITIVE_TYPE.STRING,
|
44
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
45
|
+
PRIMITIVE_TYPE.NUMBER,
|
46
|
+
PRIMITIVE_TYPE.INTEGER,
|
47
|
+
PRIMITIVE_TYPE.DECIMAL,
|
48
|
+
PRIMITIVE_TYPE.FLOAT,
|
49
|
+
PRIMITIVE_TYPE.DATE,
|
50
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
51
|
+
PRIMITIVE_TYPE.DATETIME,
|
52
|
+
] as string[]
|
53
|
+
).includes(type.path);
|
54
|
+
}
|
55
|
+
return true;
|
56
|
+
}
|
57
|
+
}
|
@@ -0,0 +1,54 @@
|
|
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
|
+
|
17
|
+
import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
|
18
|
+
import { hashArray } from '@finos/legend-shared';
|
19
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapRankOperator_AverageRank extends QueryBuilderTDSOlapOperator {
|
24
|
+
getLabel(): string {
|
25
|
+
return 'average rank';
|
26
|
+
}
|
27
|
+
|
28
|
+
get pureFunc(): string {
|
29
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_AVERAGE_RANK;
|
30
|
+
}
|
31
|
+
|
32
|
+
get hashCode(): string {
|
33
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_DENSE_RANK]);
|
34
|
+
}
|
35
|
+
|
36
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
37
|
+
if (type) {
|
38
|
+
return (
|
39
|
+
[
|
40
|
+
PRIMITIVE_TYPE.STRING,
|
41
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
42
|
+
PRIMITIVE_TYPE.NUMBER,
|
43
|
+
PRIMITIVE_TYPE.INTEGER,
|
44
|
+
PRIMITIVE_TYPE.DECIMAL,
|
45
|
+
PRIMITIVE_TYPE.FLOAT,
|
46
|
+
PRIMITIVE_TYPE.DATE,
|
47
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
48
|
+
PRIMITIVE_TYPE.DATETIME,
|
49
|
+
] as string[]
|
50
|
+
).includes(type.path);
|
51
|
+
}
|
52
|
+
return true;
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,54 @@
|
|
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
|
+
|
17
|
+
import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
|
18
|
+
import { hashArray } from '@finos/legend-shared';
|
19
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapRankOperator_DenseRank extends QueryBuilderTDSOlapOperator {
|
24
|
+
getLabel(): string {
|
25
|
+
return 'dense rank';
|
26
|
+
}
|
27
|
+
|
28
|
+
get pureFunc(): string {
|
29
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_DENSE_RANK;
|
30
|
+
}
|
31
|
+
|
32
|
+
get hashCode(): string {
|
33
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_DENSE_RANK]);
|
34
|
+
}
|
35
|
+
|
36
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
37
|
+
if (type) {
|
38
|
+
return (
|
39
|
+
[
|
40
|
+
PRIMITIVE_TYPE.STRING,
|
41
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
42
|
+
PRIMITIVE_TYPE.NUMBER,
|
43
|
+
PRIMITIVE_TYPE.INTEGER,
|
44
|
+
PRIMITIVE_TYPE.DECIMAL,
|
45
|
+
PRIMITIVE_TYPE.FLOAT,
|
46
|
+
PRIMITIVE_TYPE.DATE,
|
47
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
48
|
+
PRIMITIVE_TYPE.DATETIME,
|
49
|
+
] as string[]
|
50
|
+
).includes(type.path);
|
51
|
+
}
|
52
|
+
return true;
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,54 @@
|
|
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
|
+
|
17
|
+
import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
|
18
|
+
import { hashArray } from '@finos/legend-shared';
|
19
|
+
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
|
+
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
+
import { QueryBuilderTDSOlapOperator } from './QueryBuilderTDSOlapOperator_.js';
|
22
|
+
|
23
|
+
export class QueryBuilderTDSOlapRankOperator_Rank extends QueryBuilderTDSOlapOperator {
|
24
|
+
getLabel(): string {
|
25
|
+
return 'rank';
|
26
|
+
}
|
27
|
+
|
28
|
+
get pureFunc(): string {
|
29
|
+
return QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_RANK;
|
30
|
+
}
|
31
|
+
|
32
|
+
get hashCode(): string {
|
33
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.OLAP_OPERATOR_RANK]);
|
34
|
+
}
|
35
|
+
|
36
|
+
isCompatibleWithType(type: Type | undefined): boolean {
|
37
|
+
if (type) {
|
38
|
+
return (
|
39
|
+
[
|
40
|
+
PRIMITIVE_TYPE.STRING,
|
41
|
+
PRIMITIVE_TYPE.BOOLEAN,
|
42
|
+
PRIMITIVE_TYPE.NUMBER,
|
43
|
+
PRIMITIVE_TYPE.INTEGER,
|
44
|
+
PRIMITIVE_TYPE.DECIMAL,
|
45
|
+
PRIMITIVE_TYPE.FLOAT,
|
46
|
+
PRIMITIVE_TYPE.DATE,
|
47
|
+
PRIMITIVE_TYPE.STRICTDATE,
|
48
|
+
PRIMITIVE_TYPE.DATETIME,
|
49
|
+
] as string[]
|
50
|
+
).includes(type.path);
|
51
|
+
}
|
52
|
+
return true;
|
53
|
+
}
|
54
|
+
}
|