@finos/legend-query-builder 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/components/QueryBuilder.js +2 -2
- package/lib/components/QueryBuilderDiffPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderDiffPanel.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +4 -5
- package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
- package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -3
- package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
- package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderResultPanel.js.map +1 -1
- package/lib/components/QueryBuilderSideBar.js +3 -3
- package/lib/components/QueryBuilderSideBar.js.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js +3 -3
- package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
- package/lib/components/fetch-structure/{QueryBuilderOlapGroupByPanel.d.ts → QueryBuilderOLAPGroupByPanel_.d.ts} +3 -3
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.d.ts.map +1 -0
- package/lib/components/fetch-structure/{QueryBuilderOlapGroupByPanel.js → QueryBuilderOLAPGroupByPanel_.js} +63 -25
- package/lib/components/fetch-structure/QueryBuilderOLAPGroupByPanel_.js.map +1 -0
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js +1 -1
- package/lib/components/fetch-structure/QueryBuilderPostFilterPanel.js.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/QueryBuilderTDSComponentHelper.d.ts +1 -1
- package/lib/components/fetch-structure/QueryBuilderTDSComponentHelper.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.d.ts.map +1 -1
- package/lib/components/shared/BasicValueSpecificationEditor.js +7 -8
- package/lib/components/shared/BasicValueSpecificationEditor.js.map +1 -1
- package/lib/components/shared/CustomDatePicker.d.ts.map +1 -1
- package/lib/components/shared/CustomDatePicker.js +30 -35
- package/lib/components/shared/CustomDatePicker.js.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
- package/lib/components/shared/LambdaParameterValuesEditor.js +3 -5
- package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -1
- package/lib/components/watermark/QueryBuilderWatermark.js +6 -4
- package/lib/components/watermark/QueryBuilderWatermark.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/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +2 -2
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js +3 -3
- package/lib/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +7 -8
- 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 +5 -5
- package/lib/stores/QueryBuilderMilestoningState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderMilestoningState.js +2 -2
- package/lib/stores/QueryBuilderMilestoningState.js.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts +5 -0
- package/lib/stores/QueryBuilderPropertyEditorState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderPropertyEditorState.js +13 -22
- package/lib/stores/QueryBuilderPropertyEditorState.js.map +1 -1
- package/lib/stores/QueryBuilderResultState.d.ts +2 -1
- package/lib/stores/QueryBuilderResultState.d.ts.map +1 -1
- package/lib/stores/QueryBuilderResultState.js +14 -16
- package/lib/stores/QueryBuilderResultState.js.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.d.ts +7 -13
- package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderStateBuilder.js +18 -36
- package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js +6 -22
- package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +3 -4
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +6 -2
- package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationHelper.js +12 -11
- package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderExplorerState.js +8 -9
- package/lib/stores/explorer/QueryBuilderExplorerState.js.map +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchState.d.ts.map +1 -1
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js +2 -4
- package/lib/stores/explorer/QueryBuilderPropertySearchState.js.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js +8 -10
- package/lib/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.d.ts → QueryBuilderTDSColumnState.d.ts} +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.js → QueryBuilderTDSColumnState.js} +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState.js.map +1 -0
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSHelper.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts +5 -5
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +4 -4
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js +3 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js +4 -5
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js +8 -11
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.js.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js +2 -4
- package/lib/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.js.map +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByOperatorLoader.d.ts → QueryBuilderOLAPGroupByOperatorLoader_.d.ts} +3 -3
- 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/{QueryBuilderOlapGroupByStateBuilder.d.ts → QueryBuilderOLAPGroupByStateBuilder_.d.ts} +2 -2
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.js → QueryBuilderOLAPGroupByStateBuilder_.js} +8 -8
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.d.ts → QueryBuilderOLAPGroupByState_.d.ts} +35 -35
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.js → QueryBuilderOLAPGroupByState_.js} +21 -21
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByState_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.d.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.js → QueryBuilderOLAPGroupByValueSpecificationBuilder_.js} +17 -19
- package/lib/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByValueSpecificationBuilder_.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.d.ts → QueryBuilderTDS_OLAPOperator.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.d.ts.map → QueryBuilderTDS_OLAPOperator.d.ts.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.js → QueryBuilderTDS_OLAPOperator.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.d.ts → QueryBuilderTDS_OLAPOperator_Average.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.js → QueryBuilderTDS_OLAPOperator_Average.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Average.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.d.ts → QueryBuilderTDS_OLAPOperator_Count.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.js → QueryBuilderTDS_OLAPOperator_Count.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Count.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.d.ts → QueryBuilderTDS_OLAPOperator_Max.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.js → QueryBuilderTDS_OLAPOperator_Max.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Max.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.d.ts → QueryBuilderTDS_OLAPOperator_Min.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.js → QueryBuilderTDS_OLAPOperator_Min.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Min.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.d.ts → QueryBuilderTDS_OLAPOperator_Sum.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.js → QueryBuilderTDS_OLAPOperator_Sum.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPOperator_Sum.js.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts → QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_AverageRank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.js → QueryBuilderTDS_OLAPRankOperator_AverageRank.js} +6 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.js.map → QueryBuilderTDS_OLAPRankOperator_AverageRank.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts → QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_DenseRank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.js → QueryBuilderTDS_OLAPRankOperator_DenseRank.js} +6 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.js.map → QueryBuilderTDS_OLAPRankOperator_DenseRank.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.d.ts → QueryBuilderTDS_OLAPRankOperator_Rank.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_Rank.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.js → QueryBuilderTDS_OLAPRankOperator_Rank.js} +4 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.js.map → QueryBuilderTDS_OLAPRankOperator_Rank.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts → QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts} +3 -3
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDS_OLAPRankOperator_RowNumber.d.ts.map +1 -0
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.js → QueryBuilderTDS_OLAPRankOperator_RowNumber.js} +6 -4
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.js.map → QueryBuilderTDS_OLAPRankOperator_RowNumber.js.map} +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js +10 -10
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +4 -6
- package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.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 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js +5 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js +4 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js +4 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js +3 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js +3 -7
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js +2 -3
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js +4 -10
- package/lib/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.d.ts.map +1 -1
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.js +5 -5
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.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 +14 -18
- package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +4 -6
- package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js +10 -13
- package/lib/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js +6 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Contain.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js +6 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_EndWith.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js +3 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_Equal.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js +3 -5
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_In.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js +4 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.js.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.d.ts.map +1 -1
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js +6 -7
- package/lib/stores/filter/operators/QueryBuilderFilterOperator_StartWith.js.map +1 -1
- package/lib/stores/shared/LambdaParameterState.d.ts +1 -2
- package/lib/stores/shared/LambdaParameterState.d.ts.map +1 -1
- package/lib/stores/shared/LambdaParameterState.js +2 -22
- package/lib/stores/shared/LambdaParameterState.js.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.d.ts.map +1 -1
- package/lib/stores/shared/ValueSpecificationEditorHelper.js +6 -7
- package/lib/stores/shared/ValueSpecificationEditorHelper.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +1 -2
- package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkState.js +2 -7
- package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts.map +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +1 -1
- package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -1
- package/package.json +12 -12
- package/src/components/QueryBuilder.tsx +2 -2
- package/src/components/QueryBuilderDiffPanel.tsx +4 -16
- package/src/components/QueryBuilderParametersPanel.tsx +14 -23
- package/src/components/QueryBuilderPropertyExpressionEditor.tsx +1 -4
- package/src/components/QueryBuilderResultPanel.tsx +2 -1
- package/src/components/QueryBuilderSideBar.tsx +3 -3
- package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +3 -13
- package/src/components/fetch-structure/{QueryBuilderOlapGroupByPanel.tsx → QueryBuilderOLAPGroupByPanel_.tsx} +168 -87
- package/src/components/fetch-structure/QueryBuilderPostFilterPanel.tsx +4 -4
- package/src/components/fetch-structure/QueryBuilderPostTDSPanel.tsx +5 -5
- package/src/components/fetch-structure/QueryBuilderTDSComponentHelper.tsx +1 -1
- package/src/components/shared/BasicValueSpecificationEditor.tsx +1 -10
- package/src/components/shared/CustomDatePicker.tsx +37 -47
- package/src/components/shared/LambdaParameterValuesEditor.tsx +4 -6
- package/src/components/watermark/QueryBuilderWatermark.tsx +16 -6
- package/src/graphManager/QueryBuilderHashUtils.ts +14 -14
- package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +2 -2
- package/src/graphManager/protocol/pure/v1/V1_QueryBuilder_PureGraphManagerExtension.ts +3 -4
- package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +18 -12
- package/src/stores/QueryBuilderMilestoningState.ts +4 -12
- package/src/stores/QueryBuilderPropertyEditorState.ts +15 -30
- package/src/stores/QueryBuilderResultState.ts +19 -22
- package/src/stores/QueryBuilderStateBuilder.ts +44 -78
- package/src/stores/QueryBuilderValueSpecificationBuilder.ts +8 -33
- package/src/stores/QueryBuilderValueSpecificationBuilderHelper.ts +2 -10
- package/src/stores/QueryBuilderValueSpecificationHelper.ts +24 -25
- package/src/stores/explorer/QueryBuilderExplorerState.ts +6 -19
- package/src/stores/explorer/QueryBuilderPropertySearchState.ts +2 -8
- package/src/stores/fetch-structure/graph-fetch/QueryBuilderGraphFetchTreeValueSpecificationBuilder.ts +5 -30
- package/src/stores/fetch-structure/tds/{QueryBuilderTDSColumnState_.ts → QueryBuilderTDSColumnState.ts} +0 -0
- package/src/stores/fetch-structure/tds/QueryBuilderTDSHelper.ts +1 -1
- package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +8 -8
- package/src/stores/fetch-structure/tds/aggregation/QueryBuilderAggregationState.ts +1 -1
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperatorValueSpecificationBuilder.ts +2 -6
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Average.ts +2 -4
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_Count.ts +2 -4
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_DistinctCount.ts +2 -7
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_JoinString.ts +10 -17
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Population.ts +2 -4
- package/src/stores/fetch-structure/tds/aggregation/operators/QueryBuilderAggregateOperator_StdDev_Sample.ts +2 -4
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByOperatorLoader_.ts +39 -0
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByStateBuilder.ts → QueryBuilderOLAPGroupByStateBuilder_.ts} +14 -14
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByState.ts → QueryBuilderOLAPGroupByState_.ts} +51 -51
- package/src/stores/fetch-structure/tds/olapGroupBy/{QueryBuilderOlapGroupByValueSpecificationBuilder.ts → QueryBuilderOLAPGroupByValueSpecificationBuilder_.ts} +28 -33
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_.ts → QueryBuilderTDS_OLAPOperator.ts} +4 -4
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Average.ts → QueryBuilderTDS_OLAPOperator_Average.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Count.ts → QueryBuilderTDS_OLAPOperator_Count.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Max.ts → QueryBuilderTDS_OLAPOperator_Max.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Min.ts → QueryBuilderTDS_OLAPOperator_Min.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapOperator_Sum.ts → QueryBuilderTDS_OLAPOperator_Sum.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_AverageRank_.ts → QueryBuilderTDS_OLAPRankOperator_AverageRank.ts} +5 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_DenseRank_.ts → QueryBuilderTDS_OLAPRankOperator_DenseRank.ts} +5 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_Rank_.ts → QueryBuilderTDS_OLAPRankOperator_Rank.ts} +3 -3
- package/src/stores/fetch-structure/tds/olapGroupBy/operators/{QueryBuilderTDSOlapRankOperator_RowNumber_.ts → QueryBuilderTDS_OLAPRankOperator_RowNumber.ts} +5 -3
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterState.ts +11 -10
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterStateBuilder.ts +1 -1
- package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +0 -12
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts +8 -14
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorValueSpecificationBuilder.ts +5 -14
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Contain.ts +4 -12
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_EndWith.ts +4 -12
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_Equal.ts +1 -13
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_In.ts +3 -13
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_IsEmpty.ts +2 -5
- package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperator_StartWith.ts +4 -12
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionColumnState.ts +7 -11
- package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +11 -44
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -12
- package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +5 -28
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Contain.ts +6 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_EndWith.ts +6 -6
- package/src/stores/filter/operators/QueryBuilderFilterOperator_Equal.ts +0 -8
- package/src/stores/filter/operators/QueryBuilderFilterOperator_In.ts +2 -8
- package/src/stores/filter/operators/QueryBuilderFilterOperator_IsEmpty.ts +4 -8
- package/src/stores/filter/operators/QueryBuilderFilterOperator_StartWith.ts +6 -6
- package/src/stores/shared/LambdaParameterState.ts +0 -49
- package/src/stores/shared/ValueSpecificationEditorHelper.ts +2 -9
- package/src/stores/watermark/QueryBuilderWatermarkState.ts +2 -29
- package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +0 -2
- package/tsconfig.json +16 -16
- 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/QueryBuilderTDSColumnState_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/QueryBuilderTDSColumnState_.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.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/QueryBuilderTDSOlapOperator_.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Average.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Count.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Max.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Min.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapOperator_Sum.js.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_AverageRank_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_DenseRank_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_Rank_.d.ts.map +0 -1
- package/lib/stores/fetch-structure/tds/olapGroupBy/operators/QueryBuilderTDSOlapRankOperator_RowNumber_.d.ts.map +0 -1
- package/src/stores/fetch-structure/tds/olapGroupBy/QueryBuilderOlapGroupByOperatorLoader.ts +0 -39
@@ -21,38 +21,35 @@ import {
|
|
21
21
|
GenericType,
|
22
22
|
GenericTypeExplicitReference,
|
23
23
|
PrimitiveInstanceValue,
|
24
|
-
PRIMITIVE_TYPE,
|
25
24
|
SimpleFunctionExpression,
|
26
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
27
25
|
VariableExpression,
|
26
|
+
Multiplicity,
|
27
|
+
PrimitiveType,
|
28
28
|
} from '@finos/legend-graph';
|
29
29
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
30
30
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
31
31
|
import { buildGenericLambdaFunctionInstanceValue } from '../../../QueryBuilderValueSpecificationHelper.js';
|
32
32
|
import { getFunctionNameFromTDSSortColumn } from '../QueryBuilderTDSHelper.js';
|
33
33
|
import {
|
34
|
-
type
|
35
|
-
type
|
36
|
-
|
37
|
-
} from './
|
34
|
+
type QueryBuilderOLAPGroupByColumnState,
|
35
|
+
type QueryBuilderOLAPGroupByState,
|
36
|
+
QueryBuilderTDS_OLAPAggreationOperatorState,
|
37
|
+
} from './QueryBuilderOLAPGroupByState_.js';
|
38
38
|
|
39
|
-
const
|
40
|
-
olapGroupByColumnState:
|
39
|
+
const appendOLAPGroupByColumnState = (
|
40
|
+
olapGroupByColumnState: QueryBuilderOLAPGroupByColumnState,
|
41
41
|
lambda: LambdaFunction,
|
42
42
|
): LambdaFunction => {
|
43
43
|
const graph =
|
44
44
|
olapGroupByColumnState.olapState.tdsState.queryBuilderState
|
45
45
|
.graphManagerState.graph;
|
46
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
47
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
48
|
-
);
|
49
|
-
const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
50
46
|
|
51
47
|
// create window cols expression
|
52
48
|
const windowColumns = olapGroupByColumnState.windowColumns.map((column) => {
|
53
49
|
const stringInstance = new PrimitiveInstanceValue(
|
54
|
-
GenericTypeExplicitReference.create(
|
55
|
-
|
50
|
+
GenericTypeExplicitReference.create(
|
51
|
+
new GenericType(PrimitiveType.STRING),
|
52
|
+
),
|
56
53
|
);
|
57
54
|
stringInstance.values = [column.columnName];
|
58
55
|
return stringInstance;
|
@@ -69,11 +66,11 @@ const appendOlapGroupByColumnState = (
|
|
69
66
|
const sortByState = olapGroupByColumnState.sortByState;
|
70
67
|
sortByFunction = new SimpleFunctionExpression(
|
71
68
|
getFunctionNameFromTDSSortColumn(sortByState.sortType),
|
72
|
-
multiplicityOne,
|
73
69
|
);
|
74
70
|
const sortColInstance = new PrimitiveInstanceValue(
|
75
|
-
GenericTypeExplicitReference.create(
|
76
|
-
|
71
|
+
GenericTypeExplicitReference.create(
|
72
|
+
new GenericType(PrimitiveType.STRING),
|
73
|
+
),
|
77
74
|
);
|
78
75
|
sortColInstance.values = [sortByState.columnState.columnName];
|
79
76
|
sortByFunction.parametersValues[0] = sortColInstance;
|
@@ -82,12 +79,12 @@ const appendOlapGroupByColumnState = (
|
|
82
79
|
// create olap operation expression
|
83
80
|
const operationState = olapGroupByColumnState.operationState;
|
84
81
|
const olapFunc = extractElementNameFromPath(operationState.operator.pureFunc);
|
85
|
-
const olapFuncExpression = new SimpleFunctionExpression(
|
86
|
-
olapFunc,
|
87
|
-
multiplicityOne,
|
88
|
-
);
|
82
|
+
const olapFuncExpression = new SimpleFunctionExpression(olapFunc);
|
89
83
|
olapFuncExpression.parametersValues = [
|
90
|
-
new VariableExpression(
|
84
|
+
new VariableExpression(
|
85
|
+
operationState.lambdaParameterName,
|
86
|
+
Multiplicity.ONE,
|
87
|
+
),
|
91
88
|
];
|
92
89
|
const olapLambdaFuncInstance = buildGenericLambdaFunctionInstanceValue(
|
93
90
|
operationState.lambdaParameterName,
|
@@ -95,17 +92,17 @@ const appendOlapGroupByColumnState = (
|
|
95
92
|
graph,
|
96
93
|
);
|
97
94
|
let olapAggregationExpression: SimpleFunctionExpression | undefined;
|
98
|
-
if (operationState instanceof
|
95
|
+
if (operationState instanceof QueryBuilderTDS_OLAPAggreationOperatorState) {
|
99
96
|
// column param
|
100
97
|
const olapAggregateColumn = new PrimitiveInstanceValue(
|
101
|
-
GenericTypeExplicitReference.create(
|
102
|
-
|
98
|
+
GenericTypeExplicitReference.create(
|
99
|
+
new GenericType(PrimitiveType.STRING),
|
100
|
+
),
|
103
101
|
);
|
104
102
|
olapAggregateColumn.values = [operationState.columnState.columnName];
|
105
103
|
// build `meta::pure::tds::func`
|
106
104
|
olapAggregationExpression = new SimpleFunctionExpression(
|
107
105
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FUNC),
|
108
|
-
multiplicityOne,
|
109
106
|
);
|
110
107
|
olapAggregationExpression.parametersValues = [
|
111
108
|
olapAggregateColumn,
|
@@ -115,17 +112,15 @@ const appendOlapGroupByColumnState = (
|
|
115
112
|
const olapOperationExpression =
|
116
113
|
olapAggregationExpression ?? olapLambdaFuncInstance;
|
117
114
|
|
118
|
-
// OLAP column
|
115
|
+
// OLAP column name expression
|
119
116
|
const olapColumn = new PrimitiveInstanceValue(
|
120
|
-
GenericTypeExplicitReference.create(new GenericType(
|
121
|
-
multiplicityOne,
|
117
|
+
GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)),
|
122
118
|
);
|
123
119
|
olapColumn.values = [olapGroupByColumnState.columnName];
|
124
120
|
|
125
121
|
// create main expression
|
126
122
|
const olapExpression = new SimpleFunctionExpression(
|
127
123
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_GROUPBY),
|
128
|
-
multiplicityOne,
|
129
124
|
);
|
130
125
|
const currentExpression = guaranteeNonNullable(lambda.expressionSequence[0]);
|
131
126
|
olapExpression.parametersValues = [
|
@@ -137,12 +132,12 @@ const appendOlapGroupByColumnState = (
|
|
137
132
|
return lambda;
|
138
133
|
};
|
139
134
|
|
140
|
-
export const
|
141
|
-
olapGroupByState:
|
135
|
+
export const appendOLAPGroupByState = (
|
136
|
+
olapGroupByState: QueryBuilderOLAPGroupByState,
|
142
137
|
lambda: LambdaFunction,
|
143
138
|
): LambdaFunction => {
|
144
139
|
olapGroupByState.olapColumns.forEach((c) =>
|
145
|
-
|
140
|
+
appendOLAPGroupByColumnState(c, lambda),
|
146
141
|
);
|
147
142
|
return lambda;
|
148
143
|
};
|
@@ -14,11 +14,11 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
17
|
+
import { PrimitiveType, type PureModel, type Type } from '@finos/legend-graph';
|
18
18
|
import { type Hashable, uuid } from '@finos/legend-shared';
|
19
|
-
import type { QueryBuilderTDSColumnState } from '../../
|
19
|
+
import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState.js';
|
20
20
|
|
21
|
-
export abstract class
|
21
|
+
export abstract class QueryBuilderTDS_OLAPOperator implements Hashable {
|
22
22
|
readonly uuid = uuid();
|
23
23
|
|
24
24
|
abstract getLabel(): string;
|
@@ -34,7 +34,7 @@ export abstract class QueryBuilderTDSOlapOperator implements Hashable {
|
|
34
34
|
}
|
35
35
|
|
36
36
|
getOperatorReturnType(graph: PureModel): Type {
|
37
|
-
return
|
37
|
+
return PrimitiveType.NUMBER;
|
38
38
|
}
|
39
39
|
|
40
40
|
isCompatibleWithColumn(column: QueryBuilderTDSColumnState): boolean {
|
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
import { hashArray } from '@finos/legend-shared';
|
18
18
|
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
-
import {
|
19
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
20
20
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
21
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPOperator_Average extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
override isColumnAggregator(): boolean {
|
25
25
|
return true;
|
26
26
|
}
|
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Average extends QueryBuilderTDSOlapOper
|
|
33
33
|
}
|
34
34
|
|
35
35
|
get hashCode(): string {
|
36
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_AVERAGE]);
|
37
37
|
}
|
38
38
|
|
39
39
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
import { hashArray } from '@finos/legend-shared';
|
18
18
|
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
-
import {
|
19
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
20
20
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
21
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPOperator_Count extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
override isColumnAggregator(): boolean {
|
25
25
|
return true;
|
26
26
|
}
|
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Count extends QueryBuilderTDSOlapOperat
|
|
33
33
|
}
|
34
34
|
|
35
35
|
get hashCode(): string {
|
36
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_COUNT]);
|
37
37
|
}
|
38
38
|
|
39
39
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
import { hashArray } from '@finos/legend-shared';
|
18
18
|
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
-
import {
|
19
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
20
20
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
21
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPOperator_Max extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
override isColumnAggregator(): boolean {
|
25
25
|
return true;
|
26
26
|
}
|
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Max extends QueryBuilderTDSOlapOperator
|
|
33
33
|
}
|
34
34
|
|
35
35
|
get hashCode(): string {
|
36
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_MAX]);
|
37
37
|
}
|
38
38
|
|
39
39
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
import { hashArray } from '@finos/legend-shared';
|
18
18
|
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
-
import {
|
19
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
20
20
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
21
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPOperator_Min extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
override isColumnAggregator(): boolean {
|
25
25
|
return true;
|
26
26
|
}
|
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Min extends QueryBuilderTDSOlapOperator
|
|
33
33
|
}
|
34
34
|
|
35
35
|
get hashCode(): string {
|
36
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_MIN]);
|
37
37
|
}
|
38
38
|
|
39
39
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -16,11 +16,11 @@
|
|
16
16
|
|
17
17
|
import { hashArray } from '@finos/legend-shared';
|
18
18
|
import { type Type, PRIMITIVE_TYPE } from '@finos/legend-graph';
|
19
|
-
import {
|
19
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
20
20
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
21
21
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPOperator_Sum extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
override isColumnAggregator(): boolean {
|
25
25
|
return true;
|
26
26
|
}
|
@@ -33,7 +33,7 @@ export class QueryBuilderTDSOlapOperator_Sum extends QueryBuilderTDSOlapOperator
|
|
33
33
|
}
|
34
34
|
|
35
35
|
get hashCode(): string {
|
36
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
36
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_SUM]);
|
37
37
|
}
|
38
38
|
|
39
39
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
|
|
18
18
|
import { hashArray } from '@finos/legend-shared';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
-
import {
|
21
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPRankOperator_AverageRank extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
getLabel(): string {
|
25
25
|
return 'average rank';
|
26
26
|
}
|
@@ -30,7 +30,9 @@ export class QueryBuilderTDSOlapRankOperator_AverageRank extends QueryBuilderTDS
|
|
30
30
|
}
|
31
31
|
|
32
32
|
get hashCode(): string {
|
33
|
-
return hashArray([
|
33
|
+
return hashArray([
|
34
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_DENSE_RANK,
|
35
|
+
]);
|
34
36
|
}
|
35
37
|
|
36
38
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
|
|
18
18
|
import { hashArray } from '@finos/legend-shared';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
-
import {
|
21
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPRankOperator_DenseRank extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
getLabel(): string {
|
25
25
|
return 'dense rank';
|
26
26
|
}
|
@@ -30,7 +30,9 @@ export class QueryBuilderTDSOlapRankOperator_DenseRank extends QueryBuilderTDSOl
|
|
30
30
|
}
|
31
31
|
|
32
32
|
get hashCode(): string {
|
33
|
-
return hashArray([
|
33
|
+
return hashArray([
|
34
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_DENSE_RANK,
|
35
|
+
]);
|
34
36
|
}
|
35
37
|
|
36
38
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
|
|
18
18
|
import { hashArray } from '@finos/legend-shared';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
-
import {
|
21
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPRankOperator_Rank extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
getLabel(): string {
|
25
25
|
return 'rank';
|
26
26
|
}
|
@@ -30,7 +30,7 @@ export class QueryBuilderTDSOlapRankOperator_Rank extends QueryBuilderTDSOlapOpe
|
|
30
30
|
}
|
31
31
|
|
32
32
|
get hashCode(): string {
|
33
|
-
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.
|
33
|
+
return hashArray([QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_RANK]);
|
34
34
|
}
|
35
35
|
|
36
36
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -18,9 +18,9 @@ import { PRIMITIVE_TYPE, type Type } from '@finos/legend-graph';
|
|
18
18
|
import { hashArray } from '@finos/legend-shared';
|
19
19
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../../graphManager/QueryBuilderHashUtils.js';
|
20
20
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../../../graphManager/QueryBuilderSupportedFunctions.js';
|
21
|
-
import {
|
21
|
+
import { QueryBuilderTDS_OLAPOperator } from './QueryBuilderTDS_OLAPOperator.js';
|
22
22
|
|
23
|
-
export class
|
23
|
+
export class QueryBuilderTDS_OLAPRankOperator_RowNumber extends QueryBuilderTDS_OLAPOperator {
|
24
24
|
getLabel(): string {
|
25
25
|
return 'row number';
|
26
26
|
}
|
@@ -30,7 +30,9 @@ export class QueryBuilderTDSOlapRankOperator_RowNumber extends QueryBuilderTDSOl
|
|
30
30
|
}
|
31
31
|
|
32
32
|
get hashCode(): string {
|
33
|
-
return hashArray([
|
33
|
+
return hashArray([
|
34
|
+
QUERY_BUILDER_HASH_STRUCTURE.TDS_OLAP_OPERATOR_ROW_NUMBER,
|
35
|
+
]);
|
34
36
|
}
|
35
37
|
|
36
38
|
isCompatibleWithType(type: Type | undefined): boolean {
|
@@ -23,6 +23,7 @@ import {
|
|
23
23
|
Enumeration,
|
24
24
|
PRIMITIVE_TYPE,
|
25
25
|
observe_ValueSpecification,
|
26
|
+
PrimitiveType,
|
26
27
|
} from '@finos/legend-graph';
|
27
28
|
import {
|
28
29
|
type GeneratorFn,
|
@@ -66,7 +67,7 @@ import {
|
|
66
67
|
import { QUERY_BUILDER_GROUP_OPERATION } from '../../../QueryBuilderGroupOperationHelper.js';
|
67
68
|
import type { QueryBuilderTDSState } from '../QueryBuilderTDSState.js';
|
68
69
|
import { QUERY_BUILDER_HASH_STRUCTURE } from '../../../../graphManager/QueryBuilderHashUtils.js';
|
69
|
-
import type { QueryBuilderTDSColumnState } from '../
|
70
|
+
import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
70
71
|
|
71
72
|
export enum QUERY_BUILDER_POST_FILTER_DND_TYPE {
|
72
73
|
GROUP_CONDITION = 'GROUP_CONDITION',
|
@@ -127,23 +128,23 @@ export const getTypeFromDerivedProperty = (
|
|
127
128
|
): Type | undefined => {
|
128
129
|
switch (derivedProperty) {
|
129
130
|
case TDS_COLUMN_GETTER.GET_STRING:
|
130
|
-
return
|
131
|
+
return PrimitiveType.STRING;
|
131
132
|
case TDS_COLUMN_GETTER.GET_NUMBER:
|
132
|
-
return
|
133
|
+
return PrimitiveType.NUMBER;
|
133
134
|
case TDS_COLUMN_GETTER.GET_INTEGER:
|
134
|
-
return
|
135
|
+
return PrimitiveType.INTEGER;
|
135
136
|
case TDS_COLUMN_GETTER.GET_FLOAT:
|
136
|
-
return
|
137
|
+
return PrimitiveType.FLOAT;
|
137
138
|
case TDS_COLUMN_GETTER.GET_DECIMAL:
|
138
|
-
return
|
139
|
+
return PrimitiveType.DECIMAL;
|
139
140
|
case TDS_COLUMN_GETTER.GET_DATE:
|
140
|
-
return
|
141
|
+
return PrimitiveType.DATE;
|
141
142
|
case TDS_COLUMN_GETTER.GET_DATETIME:
|
142
|
-
return
|
143
|
+
return PrimitiveType.DATETIME;
|
143
144
|
case TDS_COLUMN_GETTER.GET_STRICTDATE:
|
144
|
-
return
|
145
|
+
return PrimitiveType.STRICTDATE;
|
145
146
|
case TDS_COLUMN_GETTER.GET_BOOLEAN:
|
146
|
-
return
|
147
|
+
return PrimitiveType.BOOLEAN;
|
147
148
|
default:
|
148
149
|
return undefined;
|
149
150
|
}
|
@@ -33,7 +33,7 @@ import {
|
|
33
33
|
UnsupportedOperationError,
|
34
34
|
} from '@finos/legend-shared';
|
35
35
|
import { QueryBuilderDerivationProjectionColumnState } from '../projection/QueryBuilderProjectionColumnState.js';
|
36
|
-
import type { QueryBuilderTDSColumnState } from '../
|
36
|
+
import type { QueryBuilderTDSColumnState } from '../QueryBuilderTDSColumnState.js';
|
37
37
|
import { getTDSColumnState } from '../QueryBuilderTDSHelper.js';
|
38
38
|
import type { QueryBuilderPostFilterOperator } from './QueryBuilderPostFilterOperator.js';
|
39
39
|
import {
|
@@ -17,7 +17,6 @@
|
|
17
17
|
import {
|
18
18
|
extractElementNameFromPath,
|
19
19
|
SimpleFunctionExpression,
|
20
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
21
20
|
type LambdaFunction,
|
22
21
|
type ValueSpecification,
|
23
22
|
} from '@finos/legend-graph';
|
@@ -41,13 +40,8 @@ const buildPostFilterExpression = (
|
|
41
40
|
node.condition,
|
42
41
|
);
|
43
42
|
} else if (node instanceof QueryBuilderPostFilterTreeGroupNodeData) {
|
44
|
-
const multiplicityOne =
|
45
|
-
postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
46
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
47
|
-
);
|
48
43
|
const func = new SimpleFunctionExpression(
|
49
44
|
extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
|
50
|
-
multiplicityOne,
|
51
45
|
);
|
52
46
|
const clauses = node.childrenIds
|
53
47
|
.map((e) => postFilterState.nodes.get(e))
|
@@ -72,7 +66,6 @@ const buildPostFilterExpression = (
|
|
72
66
|
const clause2 = currentClause;
|
73
67
|
const groupClause = new SimpleFunctionExpression(
|
74
68
|
extractElementNameFromPath(fromGroupOperation(node.groupOperation)),
|
75
|
-
multiplicityOne,
|
76
69
|
);
|
77
70
|
groupClause.parametersValues = [clause1, clause2];
|
78
71
|
currentClause = groupClause;
|
@@ -100,10 +93,6 @@ export const appendPostFilter = (
|
|
100
93
|
) {
|
101
94
|
return lambdaFunction;
|
102
95
|
}
|
103
|
-
const multiplicityOne =
|
104
|
-
postFilterState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
105
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
106
|
-
);
|
107
96
|
const filterLambda = buildGenericLambdaFunctionInstanceValue(
|
108
97
|
postFilterState.lambdaParameterName,
|
109
98
|
postFilterConditionExpressions,
|
@@ -112,7 +101,6 @@ export const appendPostFilter = (
|
|
112
101
|
// main filter expression
|
113
102
|
const filterExpression = new SimpleFunctionExpression(
|
114
103
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_FILTER),
|
115
|
-
multiplicityOne,
|
116
104
|
);
|
117
105
|
const currentExpression = guaranteeNonNullable(
|
118
106
|
lambdaFunction.expressionSequence[0],
|
package/src/stores/fetch-structure/tds/post-filter/operators/QueryBuilderPostFilterOperatorHelper.ts
CHANGED
@@ -14,27 +14,21 @@
|
|
14
14
|
* limitations under the License.
|
15
15
|
*/
|
16
16
|
|
17
|
-
import {
|
18
|
-
type Multiplicity,
|
19
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
20
|
-
} from '@finos/legend-graph';
|
17
|
+
import { Multiplicity } from '@finos/legend-graph';
|
21
18
|
import { UnsupportedOperationError } from '@finos/legend-shared';
|
22
19
|
import { QueryBuilderAggregateColumnState } from '../../aggregation/QueryBuilderAggregationState.js';
|
23
|
-
import {
|
20
|
+
import { QueryBuilderOLAPGroupByColumnState } from '../../olapGroupBy/QueryBuilderOLAPGroupByState_.js';
|
24
21
|
import { QueryBuilderSimpleProjectionColumnState } from '../../projection/QueryBuilderProjectionColumnState.js';
|
25
|
-
import type { QueryBuilderTDSColumnState } from '../../
|
22
|
+
import type { QueryBuilderTDSColumnState } from '../../QueryBuilderTDSColumnState.js';
|
26
23
|
|
27
24
|
export const getColumnMultiplicity = (
|
28
25
|
columnState: QueryBuilderTDSColumnState | QueryBuilderAggregateColumnState,
|
29
26
|
): Multiplicity => {
|
30
|
-
if (
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
return columnState.olapState.tdsState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
36
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
37
|
-
);
|
27
|
+
if (
|
28
|
+
columnState instanceof QueryBuilderAggregateColumnState ||
|
29
|
+
columnState instanceof QueryBuilderOLAPGroupByColumnState
|
30
|
+
) {
|
31
|
+
return Multiplicity.ONE;
|
38
32
|
} else if (columnState instanceof QueryBuilderSimpleProjectionColumnState) {
|
39
33
|
return columnState.propertyExpressionState.propertyExpression.func.value
|
40
34
|
.multiplicity;
|
@@ -21,13 +21,13 @@ import {
|
|
21
21
|
GenericType,
|
22
22
|
GenericTypeExplicitReference,
|
23
23
|
PrimitiveInstanceValue,
|
24
|
-
PRIMITIVE_TYPE,
|
25
24
|
SimpleFunctionExpression,
|
26
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
27
25
|
VariableExpression,
|
28
26
|
getAllClassDerivedProperties,
|
29
27
|
CORE_PURE_PATH,
|
30
28
|
PropertyExplicitReference,
|
29
|
+
Multiplicity,
|
30
|
+
PrimitiveType,
|
31
31
|
} from '@finos/legend-graph';
|
32
32
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
33
33
|
import type { QueryBuilderPostFilterOperator } from '../QueryBuilderPostFilterOperator.js';
|
@@ -52,16 +52,9 @@ export const buildPostFilterConditionExpression = (
|
|
52
52
|
const graph =
|
53
53
|
filterConditionState.postFilterState.tdsState.queryBuilderState
|
54
54
|
.graphManagerState.graph;
|
55
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
56
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
57
|
-
);
|
58
|
-
const typeString = graph.getPrimitiveType(PRIMITIVE_TYPE.STRING);
|
59
55
|
// property expression
|
60
56
|
const colState = filterConditionState.columnState;
|
61
|
-
const tdsPropertyExpression = new AbstractPropertyExpression(
|
62
|
-
'',
|
63
|
-
multiplicityOne,
|
64
|
-
);
|
57
|
+
const tdsPropertyExpression = new AbstractPropertyExpression('');
|
65
58
|
let tdsDerivedPropertyName: TDS_COLUMN_GETTER;
|
66
59
|
const correspondingTDSDerivedProperty = operator.getTDSColumnGetter();
|
67
60
|
if (correspondingTDSDerivedProperty) {
|
@@ -79,11 +72,10 @@ export const buildPostFilterConditionExpression = (
|
|
79
72
|
);
|
80
73
|
const variableName = new VariableExpression(
|
81
74
|
filterConditionState.postFilterState.lambdaParameterName,
|
82
|
-
|
75
|
+
Multiplicity.ONE,
|
83
76
|
);
|
84
77
|
const colInstanceValue = new PrimitiveInstanceValue(
|
85
|
-
GenericTypeExplicitReference.create(new GenericType(
|
86
|
-
multiplicityOne,
|
78
|
+
GenericTypeExplicitReference.create(new GenericType(PrimitiveType.STRING)),
|
87
79
|
);
|
88
80
|
colInstanceValue.values = [colState.columnName];
|
89
81
|
tdsPropertyExpression.parametersValues = [variableName, colInstanceValue];
|
@@ -91,7 +83,6 @@ export const buildPostFilterConditionExpression = (
|
|
91
83
|
if (operatorFunctionFullPath) {
|
92
84
|
const expression = new SimpleFunctionExpression(
|
93
85
|
extractElementNameFromPath(operatorFunctionFullPath),
|
94
|
-
multiplicityOne,
|
95
86
|
);
|
96
87
|
expression.parametersValues.push(tdsPropertyExpression);
|
97
88
|
if (filterConditionState.value) {
|
@@ -20,6 +20,7 @@ import {
|
|
20
20
|
type ValueSpecification,
|
21
21
|
type FunctionExpression,
|
22
22
|
PRIMITIVE_TYPE,
|
23
|
+
PrimitiveType,
|
23
24
|
} from '@finos/legend-graph';
|
24
25
|
import {
|
25
26
|
guaranteeNonNullable,
|
@@ -53,10 +54,7 @@ export class QueryBuilderPostFilterOperator_Contain
|
|
53
54
|
}
|
54
55
|
|
55
56
|
isCompatibleWithType(type: Type): boolean {
|
56
|
-
|
57
|
-
return true;
|
58
|
-
}
|
59
|
-
return false;
|
57
|
+
return type === PrimitiveType.STRING;
|
60
58
|
}
|
61
59
|
|
62
60
|
isCompatibleWithConditionValue(
|
@@ -65,7 +63,7 @@ export class QueryBuilderPostFilterOperator_Contain
|
|
65
63
|
const type = postFilterConditionState.value
|
66
64
|
? getNonCollectionValueSpecificationType(postFilterConditionState.value)
|
67
65
|
: undefined;
|
68
|
-
return
|
66
|
+
return PrimitiveType.STRING === type;
|
69
67
|
}
|
70
68
|
|
71
69
|
getDefaultFilterConditionValue(
|
@@ -131,13 +129,7 @@ export class QueryBuilderPostFilterOperator_NotContain extends QueryBuilderPostF
|
|
131
129
|
const expression = super.buildPostFilterConditionExpression(
|
132
130
|
postFilterConditionState,
|
133
131
|
);
|
134
|
-
return expression
|
135
|
-
? buildNotExpression(
|
136
|
-
expression,
|
137
|
-
postFilterConditionState.postFilterState.tdsState.queryBuilderState
|
138
|
-
.graphManagerState.graph,
|
139
|
-
)
|
140
|
-
: undefined;
|
132
|
+
return expression ? buildNotExpression(expression) : undefined;
|
141
133
|
}
|
142
134
|
|
143
135
|
override buildPostFilterConditionState(
|