@finos/legend-query-builder 0.4.1 → 0.4.3
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/QueryBuilderNavigationBlocker.d.ts.map +1 -1
- package/lib/components/QueryBuilderNavigationBlocker.js +1 -1
- package/lib/components/QueryBuilderNavigationBlocker.js.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
- package/lib/components/QueryBuilderParametersPanel.js +20 -23
- 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 +1 -17
- 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 +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.d.ts.map +1 -1
- package/lib/stores/QueryBuilderValueSpecificationBuilderHelper.js +8 -5
- 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 +16 -20
- 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 +12 -15
- 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/QueryBuilderNavigationBlocker.tsx +4 -0
- package/src/components/QueryBuilderParametersPanel.tsx +51 -70
- 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 +9 -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 +13 -44
- package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +0 -12
- package/src/stores/filter/operators/QueryBuilderFilterOperatorValueSpecificationBuilder.ts +7 -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
@@ -35,10 +35,10 @@ import {
|
|
35
35
|
EXECUTION_SERIALIZATION_FORMAT,
|
36
36
|
RawExecutionResult,
|
37
37
|
buildRawLambdaFromLambdaFunction,
|
38
|
+
ParameterValue,
|
38
39
|
} from '@finos/legend-graph';
|
39
40
|
import { buildLambdaFunction } from './QueryBuilderValueSpecificationBuilder.js';
|
40
41
|
import { ExecutionPlanState } from '@finos/legend-application';
|
41
|
-
import { buildParametersLetLambdaFunc } from './shared/LambdaParameterState.js';
|
42
42
|
|
43
43
|
const DEFAULT_LIMIT = 1000;
|
44
44
|
|
@@ -125,31 +125,24 @@ export class QueryBuilderResultState {
|
|
125
125
|
this.queryBuilderState.unsupportedQueryState.rawLambda,
|
126
126
|
'Lambda is required to execute query',
|
127
127
|
);
|
128
|
-
if (
|
129
|
-
!this.queryBuilderState.isParameterSupportDisabled &&
|
130
|
-
this.queryBuilderState.parametersState.parameterStates.length
|
131
|
-
) {
|
132
|
-
const letlambdaFunction = buildParametersLetLambdaFunc(
|
133
|
-
this.queryBuilderState.graphManagerState.graph,
|
134
|
-
this.queryBuilderState.parametersState.parameterStates,
|
135
|
-
);
|
136
|
-
const letRawLambda = buildRawLambdaFromLambdaFunction(
|
137
|
-
letlambdaFunction,
|
138
|
-
this.queryBuilderState.graphManagerState,
|
139
|
-
);
|
140
|
-
// reset paramaters
|
141
|
-
if (Array.isArray(query.body) && Array.isArray(letRawLambda.body)) {
|
142
|
-
letRawLambda.body = [
|
143
|
-
...(letRawLambda.body as object[]),
|
144
|
-
...(query.body as object[]),
|
145
|
-
];
|
146
|
-
query = letRawLambda;
|
147
|
-
}
|
148
|
-
}
|
149
128
|
}
|
150
129
|
return query;
|
151
130
|
}
|
152
131
|
|
132
|
+
buildExecutionParameterValues(): ParameterValue[] {
|
133
|
+
return this.queryBuilderState.parametersState.parameterStates.map(
|
134
|
+
(queryParamState) => {
|
135
|
+
const paramValue = new ParameterValue();
|
136
|
+
paramValue.name = queryParamState.parameter.name;
|
137
|
+
paramValue.value =
|
138
|
+
this.queryBuilderState.graphManagerState.graphManager.serializeValueSpecification(
|
139
|
+
guaranteeNonNullable(queryParamState.value),
|
140
|
+
);
|
141
|
+
return paramValue;
|
142
|
+
},
|
143
|
+
);
|
144
|
+
}
|
145
|
+
|
153
146
|
*exportData(
|
154
147
|
serializationFormat: EXECUTION_SERIALIZATION_FORMAT,
|
155
148
|
): GeneratorFn<void> {
|
@@ -217,6 +210,7 @@ export class QueryBuilderResultState {
|
|
217
210
|
`Runtime is required to execute query`,
|
218
211
|
);
|
219
212
|
const query = this.buildExecutionRawLambda();
|
213
|
+
const parameterValues = this.buildExecutionParameterValues();
|
220
214
|
const startTime = Date.now();
|
221
215
|
const promise =
|
222
216
|
this.queryBuilderState.graphManagerState.graphManager.executeMapping(
|
@@ -224,6 +218,9 @@ export class QueryBuilderResultState {
|
|
224
218
|
mapping,
|
225
219
|
runtime,
|
226
220
|
this.queryBuilderState.graphManagerState.graph,
|
221
|
+
{
|
222
|
+
parameterValues: parameterValues,
|
223
|
+
},
|
227
224
|
);
|
228
225
|
this.setQueryRunPromise(promise);
|
229
226
|
const result = (yield promise) as ExecutionResult;
|
@@ -23,15 +23,9 @@ import {
|
|
23
23
|
} from '@finos/legend-shared';
|
24
24
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
25
25
|
import {
|
26
|
-
type AlloySerializationConfigInstanceValue,
|
27
26
|
type EnumValueInstanceValue,
|
28
27
|
type FunctionExpression,
|
29
|
-
type
|
30
|
-
type PairInstanceValue,
|
31
|
-
type PropertyGraphFetchTreeInstanceValue,
|
32
|
-
type PureListInstanceValue,
|
33
|
-
type RootGraphFetchTreeInstanceValue,
|
34
|
-
type RuntimeInstanceValue,
|
28
|
+
type GraphFetchTreeInstanceValue,
|
35
29
|
type ValueSpecificationVisitor,
|
36
30
|
type InstanceValue,
|
37
31
|
type INTERNAL__UnknownValueSpecification,
|
@@ -70,7 +64,7 @@ import {
|
|
70
64
|
} from './fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js';
|
71
65
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
72
66
|
import { LambdaParameterState } from './shared/LambdaParameterState.js';
|
73
|
-
import {
|
67
|
+
import { processTDS_OLAPGroupByExpression } from './fetch-structure/tds/olapGroupBy/QueryBuilderOLAPGroupByStateBuilder_.js';
|
74
68
|
import { processWatermarkExpression } from './watermark/QueryBuilderWatermarkStateBuilder.js';
|
75
69
|
|
76
70
|
const processGetAllExpression = (
|
@@ -278,54 +272,8 @@ export class QueryBuilderValueSpecificationProcessor
|
|
278
272
|
);
|
279
273
|
}
|
280
274
|
|
281
|
-
|
282
|
-
valueSpecification:
|
283
|
-
): void {
|
284
|
-
throw new UnsupportedOperationError();
|
285
|
-
}
|
286
|
-
|
287
|
-
visit_PropertyGraphFetchTreeInstanceValue(
|
288
|
-
valueSpecification: PropertyGraphFetchTreeInstanceValue,
|
289
|
-
): void {
|
290
|
-
throw new UnsupportedOperationError();
|
291
|
-
}
|
292
|
-
|
293
|
-
visit_AlloySerializationConfigInstanceValue(
|
294
|
-
valueSpecification: AlloySerializationConfigInstanceValue,
|
295
|
-
): void {
|
296
|
-
throw new UnsupportedOperationError();
|
297
|
-
}
|
298
|
-
|
299
|
-
visit_PrimitiveInstanceValue(
|
300
|
-
valueSpecification: PrimitiveInstanceValue,
|
301
|
-
): void {
|
302
|
-
throw new UnsupportedOperationError();
|
303
|
-
}
|
304
|
-
|
305
|
-
visit_EnumValueInstanceValue(
|
306
|
-
valueSpecification: EnumValueInstanceValue,
|
307
|
-
): void {
|
308
|
-
throw new UnsupportedOperationError();
|
309
|
-
}
|
310
|
-
|
311
|
-
visit_RuntimeInstanceValue(valueSpecification: RuntimeInstanceValue): void {
|
312
|
-
throw new UnsupportedOperationError();
|
313
|
-
}
|
314
|
-
|
315
|
-
visit_PairInstanceValue(valueSpecification: PairInstanceValue): void {
|
316
|
-
throw new UnsupportedOperationError();
|
317
|
-
}
|
318
|
-
|
319
|
-
visit_MappingInstanceValue(valueSpecification: MappingInstanceValue): void {
|
320
|
-
throw new UnsupportedOperationError();
|
321
|
-
}
|
322
|
-
|
323
|
-
visit_PureListInstanceValue(valueSpecification: PureListInstanceValue): void {
|
324
|
-
throw new UnsupportedOperationError();
|
325
|
-
}
|
326
|
-
|
327
|
-
visit_CollectionInstanceValue(
|
328
|
-
valueSpecification: CollectionInstanceValue,
|
275
|
+
visit_INTERNAL__PropagatedValue(
|
276
|
+
valueSpecification: INTERNAL__PropagatedValue,
|
329
277
|
): void {
|
330
278
|
throw new UnsupportedOperationError();
|
331
279
|
}
|
@@ -334,12 +282,6 @@ export class QueryBuilderValueSpecificationProcessor
|
|
334
282
|
throw new UnsupportedOperationError();
|
335
283
|
}
|
336
284
|
|
337
|
-
visit_INTERNAL__PropagatedValue(
|
338
|
-
valueSpecification: INTERNAL__PropagatedValue,
|
339
|
-
): void {
|
340
|
-
throw new UnsupportedOperationError();
|
341
|
-
}
|
342
|
-
|
343
285
|
visit_SimpleFunctionExpression(
|
344
286
|
valueSpecification: SimpleFunctionExpression,
|
345
287
|
): void {
|
@@ -498,7 +440,7 @@ export class QueryBuilderValueSpecificationProcessor
|
|
498
440
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.OLAP_GROUPBY,
|
499
441
|
)
|
500
442
|
) {
|
501
|
-
|
443
|
+
processTDS_OLAPGroupByExpression(
|
502
444
|
valueSpecification,
|
503
445
|
this.queryBuilderState,
|
504
446
|
);
|
@@ -532,21 +474,6 @@ export class QueryBuilderValueSpecificationProcessor
|
|
532
474
|
throw new UnsupportedOperationError();
|
533
475
|
}
|
534
476
|
|
535
|
-
visit_LambdaFunctionInstanceValue(
|
536
|
-
valueSpecification: LambdaFunctionInstanceValue,
|
537
|
-
): void {
|
538
|
-
valueSpecification.values.forEach((value) =>
|
539
|
-
value.expressionSequence.forEach((expression) =>
|
540
|
-
expression.accept_ValueSpecificationVisitor(
|
541
|
-
new QueryBuilderValueSpecificationProcessor(
|
542
|
-
this.queryBuilderState,
|
543
|
-
this.parentExpression,
|
544
|
-
),
|
545
|
-
),
|
546
|
-
),
|
547
|
-
);
|
548
|
-
}
|
549
|
-
|
550
477
|
visit_AbstractPropertyExpression(
|
551
478
|
valueSpecification: AbstractPropertyExpression,
|
552
479
|
): void {
|
@@ -577,6 +504,45 @@ export class QueryBuilderValueSpecificationProcessor
|
|
577
504
|
visit_InstanceValue(valueSpecification: InstanceValue): void {
|
578
505
|
throw new UnsupportedOperationError();
|
579
506
|
}
|
507
|
+
|
508
|
+
visit_CollectionInstanceValue(
|
509
|
+
valueSpecification: CollectionInstanceValue,
|
510
|
+
): void {
|
511
|
+
throw new UnsupportedOperationError();
|
512
|
+
}
|
513
|
+
|
514
|
+
visit_EnumValueInstanceValue(
|
515
|
+
valueSpecification: EnumValueInstanceValue,
|
516
|
+
): void {
|
517
|
+
throw new UnsupportedOperationError();
|
518
|
+
}
|
519
|
+
|
520
|
+
visit_PrimitiveInstanceValue(
|
521
|
+
valueSpecification: PrimitiveInstanceValue,
|
522
|
+
): void {
|
523
|
+
throw new UnsupportedOperationError();
|
524
|
+
}
|
525
|
+
|
526
|
+
visit_LambdaFunctionInstanceValue(
|
527
|
+
valueSpecification: LambdaFunctionInstanceValue,
|
528
|
+
): void {
|
529
|
+
valueSpecification.values.forEach((value) =>
|
530
|
+
value.expressionSequence.forEach((expression) =>
|
531
|
+
expression.accept_ValueSpecificationVisitor(
|
532
|
+
new QueryBuilderValueSpecificationProcessor(
|
533
|
+
this.queryBuilderState,
|
534
|
+
this.parentExpression,
|
535
|
+
),
|
536
|
+
),
|
537
|
+
),
|
538
|
+
);
|
539
|
+
}
|
540
|
+
|
541
|
+
visit_GraphFetchTreeInstanceValue(
|
542
|
+
valueSpecification: GraphFetchTreeInstanceValue,
|
543
|
+
): void {
|
544
|
+
throw new UnsupportedOperationError();
|
545
|
+
}
|
580
546
|
}
|
581
547
|
|
582
548
|
export const processParameters = (
|
@@ -17,7 +17,7 @@
|
|
17
17
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
18
18
|
import {
|
19
19
|
type Class,
|
20
|
-
|
20
|
+
Multiplicity,
|
21
21
|
getMilestoneTemporalStereotype,
|
22
22
|
extractElementNameFromPath,
|
23
23
|
InstanceValue,
|
@@ -28,7 +28,6 @@ import {
|
|
28
28
|
GenericTypeExplicitReference,
|
29
29
|
LambdaFunction,
|
30
30
|
SimpleFunctionExpression,
|
31
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
32
31
|
MILESTONING_STEREOTYPE,
|
33
32
|
} from '@finos/legend-graph';
|
34
33
|
import type { QueryBuilderState } from './QueryBuilderState.js';
|
@@ -36,7 +35,6 @@ import { buildFilterExpression } from './filter/QueryBuilderFilterValueSpecifica
|
|
36
35
|
import type { LambdaFunctionBuilderOption } from './QueryBuilderValueSpecificationBuilderHelper.js';
|
37
36
|
import type { QueryBuilderFetchStructureState } from './fetch-structure/QueryBuilderFetchStructureState.js';
|
38
37
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../graphManager/QueryBuilderSupportedFunctions.js';
|
39
|
-
import { buildParametersLetLambdaFunc } from './shared/LambdaParameterState.js';
|
40
38
|
import { buildWatermarkExpression } from './watermark/QueryBuilderWatermarkValueSpecificationBuilder.js';
|
41
39
|
|
42
40
|
const buildGetAllFunction = (
|
@@ -45,7 +43,6 @@ const buildGetAllFunction = (
|
|
45
43
|
): SimpleFunctionExpression => {
|
46
44
|
const _func = new SimpleFunctionExpression(
|
47
45
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.GET_ALL),
|
48
|
-
multiplicity,
|
49
46
|
);
|
50
47
|
const classInstance = new InstanceValue(
|
51
48
|
multiplicity,
|
@@ -75,22 +72,17 @@ export const buildLambdaFunction = (
|
|
75
72
|
queryBuilderState.class,
|
76
73
|
'Class is required to build query',
|
77
74
|
);
|
78
|
-
const multiplicityOne =
|
79
|
-
queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
80
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
81
|
-
);
|
82
|
-
const typeAny = queryBuilderState.graphManagerState.graph.getType(
|
83
|
-
CORE_PURE_PATH.ANY,
|
84
|
-
);
|
85
75
|
const lambdaFunction = new LambdaFunction(
|
86
76
|
new FunctionType(
|
87
|
-
PackageableElementExplicitReference.create(
|
88
|
-
|
77
|
+
PackageableElementExplicitReference.create(
|
78
|
+
queryBuilderState.graphManagerState.graph.getType(CORE_PURE_PATH.ANY),
|
79
|
+
),
|
80
|
+
Multiplicity.ONE,
|
89
81
|
),
|
90
82
|
);
|
91
83
|
|
92
84
|
// build getAll()
|
93
|
-
const getAllFunction = buildGetAllFunction(_class,
|
85
|
+
const getAllFunction = buildGetAllFunction(_class, Multiplicity.ONE);
|
94
86
|
|
95
87
|
// build milestoning parameter(s) for getAll()
|
96
88
|
const milestoningStereotype = getMilestoneTemporalStereotype(
|
@@ -167,25 +159,8 @@ export const buildLambdaFunction = (
|
|
167
159
|
!queryBuilderState.isParameterSupportDisabled &&
|
168
160
|
queryBuilderState.parametersState.parameterStates.length
|
169
161
|
) {
|
170
|
-
|
171
|
-
|
172
|
-
// 2. add let statements for each parameter
|
173
|
-
if (options?.isBuildingExecutionQuery) {
|
174
|
-
lambdaFunction.functionType.parameters = [];
|
175
|
-
const letsFuncs = buildParametersLetLambdaFunc(
|
176
|
-
queryBuilderState.graphManagerState.graph,
|
177
|
-
queryBuilderState.parametersState.parameterStates,
|
178
|
-
);
|
179
|
-
lambdaFunction.expressionSequence = [
|
180
|
-
...letsFuncs.expressionSequence,
|
181
|
-
...lambdaFunction.expressionSequence,
|
182
|
-
];
|
183
|
-
} else {
|
184
|
-
lambdaFunction.functionType.parameters =
|
185
|
-
queryBuilderState.parametersState.parameterStates.map(
|
186
|
-
(e) => e.parameter,
|
187
|
-
);
|
188
|
-
}
|
162
|
+
lambdaFunction.functionType.parameters =
|
163
|
+
queryBuilderState.parametersState.parameterStates.map((e) => e.parameter);
|
189
164
|
}
|
190
165
|
|
191
166
|
return lambdaFunction;
|
@@ -23,7 +23,7 @@ import {
|
|
23
23
|
matchFunctionName,
|
24
24
|
MILESTONING_STEREOTYPE,
|
25
25
|
SimpleFunctionExpression,
|
26
|
-
|
26
|
+
VariableExpression,
|
27
27
|
type ValueSpecification,
|
28
28
|
} from '@finos/legend-graph';
|
29
29
|
import {
|
@@ -134,6 +134,7 @@ const isDefaultDatePropagationSupported = (
|
|
134
134
|
export const buildPropertyExpressionChain = (
|
135
135
|
propertyExpression: AbstractPropertyExpression,
|
136
136
|
queryBuilderState: QueryBuilderState,
|
137
|
+
lambdaParameterName: string,
|
137
138
|
/**
|
138
139
|
* As of now, we don't support date propagation for aggregation-class functions
|
139
140
|
* so we have this temporary flag to disable date propagation, there could be other
|
@@ -142,11 +143,7 @@ export const buildPropertyExpressionChain = (
|
|
142
143
|
*/
|
143
144
|
TEMPORARY__disableDatePropagation?: boolean,
|
144
145
|
): ValueSpecification => {
|
145
|
-
const
|
146
|
-
const newPropertyExpression = new AbstractPropertyExpression(
|
147
|
-
'',
|
148
|
-
graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE),
|
149
|
-
);
|
146
|
+
const newPropertyExpression = new AbstractPropertyExpression('');
|
150
147
|
newPropertyExpression.func = propertyExpression.func;
|
151
148
|
newPropertyExpression.parametersValues = [
|
152
149
|
...propertyExpression.parametersValues,
|
@@ -159,10 +156,7 @@ export const buildPropertyExpressionChain = (
|
|
159
156
|
currentExpression.parametersValues,
|
160
157
|
);
|
161
158
|
if (nextExpression instanceof AbstractPropertyExpression) {
|
162
|
-
const parameterValue = new AbstractPropertyExpression(
|
163
|
-
'',
|
164
|
-
graph.getTypicalMultiplicity(TYPICAL_MULTIPLICITY_TYPE.ONE),
|
165
|
-
);
|
159
|
+
const parameterValue = new AbstractPropertyExpression('');
|
166
160
|
parameterValue.func = nextExpression.func;
|
167
161
|
parameterValue.parametersValues = [...nextExpression.parametersValues];
|
168
162
|
nextExpression = parameterValue;
|
@@ -231,6 +225,11 @@ export const buildPropertyExpressionChain = (
|
|
231
225
|
);
|
232
226
|
}
|
233
227
|
}
|
228
|
+
|
229
|
+
// Update the root lambda name based on the parent's lambda parameter name.
|
230
|
+
if (currentExpression instanceof VariableExpression) {
|
231
|
+
currentExpression.name = lambdaParameterName;
|
232
|
+
}
|
234
233
|
return newPropertyExpression;
|
235
234
|
};
|
236
235
|
|
@@ -22,7 +22,6 @@ import {
|
|
22
22
|
LambdaFunction,
|
23
23
|
LambdaFunctionInstanceValue,
|
24
24
|
PRIMITIVE_TYPE,
|
25
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
26
25
|
VariableExpression,
|
27
26
|
DATE_FORMAT,
|
28
27
|
DATE_TIME_FORMAT,
|
@@ -31,7 +30,7 @@ import {
|
|
31
30
|
PrimitiveInstanceValue,
|
32
31
|
EnumValueInstanceValue,
|
33
32
|
SimpleFunctionExpression,
|
34
|
-
|
33
|
+
PrimitiveType,
|
35
34
|
type Enumeration,
|
36
35
|
extractElementNameFromPath,
|
37
36
|
AbstractPropertyExpression,
|
@@ -41,6 +40,10 @@ import {
|
|
41
40
|
DerivedProperty,
|
42
41
|
MILESTONING_STEREOTYPE,
|
43
42
|
PackageableElementExplicitReference,
|
43
|
+
Multiplicity,
|
44
|
+
CollectionInstanceValue,
|
45
|
+
GenericTypeExplicitReference,
|
46
|
+
GenericType,
|
44
47
|
} from '@finos/legend-graph';
|
45
48
|
import {
|
46
49
|
addUniqueEntry,
|
@@ -79,19 +82,13 @@ export const getCollectionValueSpecificationType = (
|
|
79
82
|
const primitiveType = val.genericType.value.rawType;
|
80
83
|
switch (primitiveType.path) {
|
81
84
|
case PRIMITIVE_TYPE.STRING:
|
82
|
-
addUniqueEntry(
|
83
|
-
valuePrimitiveTypes,
|
84
|
-
graph.getPrimitiveType(PRIMITIVE_TYPE.STRING),
|
85
|
-
);
|
85
|
+
addUniqueEntry(valuePrimitiveTypes, PrimitiveType.STRING);
|
86
86
|
break;
|
87
87
|
case PRIMITIVE_TYPE.INTEGER:
|
88
88
|
case PRIMITIVE_TYPE.DECIMAL:
|
89
89
|
case PRIMITIVE_TYPE.FLOAT:
|
90
90
|
case PRIMITIVE_TYPE.NUMBER:
|
91
|
-
addUniqueEntry(
|
92
|
-
valuePrimitiveTypes,
|
93
|
-
graph.getPrimitiveType(PRIMITIVE_TYPE.NUMBER),
|
94
|
-
);
|
91
|
+
addUniqueEntry(valuePrimitiveTypes, PrimitiveType.NUMBER);
|
95
92
|
break;
|
96
93
|
default:
|
97
94
|
valuePrimitiveTypes.push(undefined);
|
@@ -137,14 +134,9 @@ export const unwrapNotExpression = (
|
|
137
134
|
|
138
135
|
export const buildNotExpression = (
|
139
136
|
expression: ValueSpecification,
|
140
|
-
graph: PureModel,
|
141
137
|
): ValueSpecification => {
|
142
|
-
const multiplicityOne = graph.getTypicalMultiplicity(
|
143
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
144
|
-
);
|
145
138
|
const expressionNot = new SimpleFunctionExpression(
|
146
139
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.NOT),
|
147
|
-
multiplicityOne,
|
148
140
|
);
|
149
141
|
expressionNot.parametersValues.push(expression);
|
150
142
|
return expressionNot;
|
@@ -235,19 +227,15 @@ export const buildGenericLambdaFunctionInstanceValue = (
|
|
235
227
|
lambdaBodyExpressions: ValueSpecification[],
|
236
228
|
graph: PureModel,
|
237
229
|
): LambdaFunctionInstanceValue => {
|
238
|
-
const
|
239
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
240
|
-
);
|
241
|
-
const typeAny = graph.getType(CORE_PURE_PATH.ANY);
|
242
|
-
const functionInstanceValue = new LambdaFunctionInstanceValue(
|
243
|
-
multiplicityOne,
|
244
|
-
);
|
230
|
+
const functionInstanceValue = new LambdaFunctionInstanceValue();
|
245
231
|
const functionType = new FunctionType(
|
246
|
-
PackageableElementExplicitReference.create(
|
247
|
-
|
232
|
+
PackageableElementExplicitReference.create(
|
233
|
+
graph.getType(CORE_PURE_PATH.ANY),
|
234
|
+
),
|
235
|
+
Multiplicity.ONE,
|
248
236
|
);
|
249
237
|
functionType.parameters.push(
|
250
|
-
new VariableExpression(lambdaParameterName,
|
238
|
+
new VariableExpression(lambdaParameterName, Multiplicity.ONE),
|
251
239
|
);
|
252
240
|
const lambdaFunction = new LambdaFunction(functionType);
|
253
241
|
lambdaFunction.expressionSequence = lambdaBodyExpressions;
|
@@ -362,3 +350,14 @@ export const extractNullableNumberFromInstanceValue = (
|
|
362
350
|
}
|
363
351
|
return undefined;
|
364
352
|
};
|
353
|
+
|
354
|
+
/**
|
355
|
+
* NOTE: Pure doesn't have a nullish value, rather we use empty collection of type Nil
|
356
|
+
*/
|
357
|
+
export const createNullishValue = (graph: PureModel): CollectionInstanceValue =>
|
358
|
+
new CollectionInstanceValue(
|
359
|
+
Multiplicity.ZERO,
|
360
|
+
GenericTypeExplicitReference.create(
|
361
|
+
new GenericType(graph.getType(CORE_PURE_PATH.ANY)),
|
362
|
+
),
|
363
|
+
);
|
@@ -30,7 +30,6 @@ import {
|
|
30
30
|
type MappingModelCoverageAnalysisResult,
|
31
31
|
type EnumMappedProperty,
|
32
32
|
type MappedEntity,
|
33
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
34
33
|
AbstractPropertyExpression,
|
35
34
|
Class,
|
36
35
|
VariableExpression,
|
@@ -198,19 +197,11 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
|
|
198
197
|
const treeData = explorerState.nonNullableTreeData;
|
199
198
|
const propertySearchIndexedTreeNodes =
|
200
199
|
explorerState.propertySearchState.indexedExplorerTreeNodes;
|
201
|
-
|
202
|
-
const multiplicityOne =
|
203
|
-
explorerState.queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
204
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
205
|
-
);
|
206
200
|
const projectionColumnLambdaVariable = new VariableExpression(
|
207
201
|
DEFAULT_LAMBDA_VARIABLE_NAME,
|
208
|
-
|
209
|
-
);
|
210
|
-
const propertyExpression = new AbstractPropertyExpression(
|
211
|
-
'',
|
212
|
-
multiplicityOne,
|
202
|
+
Multiplicity.ONE,
|
213
203
|
);
|
204
|
+
const propertyExpression = new AbstractPropertyExpression('');
|
214
205
|
propertyExpression_setFunc(
|
215
206
|
propertyExpression,
|
216
207
|
PropertyExplicitReference.create(guaranteeNonNullable(node.property)),
|
@@ -239,13 +230,9 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
|
|
239
230
|
if (parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData) {
|
240
231
|
parentPropertyExpression = new SimpleFunctionExpression(
|
241
232
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SUBTYPE),
|
242
|
-
multiplicityOne,
|
243
233
|
);
|
244
234
|
} else {
|
245
|
-
parentPropertyExpression = new AbstractPropertyExpression(
|
246
|
-
'',
|
247
|
-
multiplicityOne,
|
248
|
-
);
|
235
|
+
parentPropertyExpression = new AbstractPropertyExpression('');
|
249
236
|
propertyExpression_setFunc(
|
250
237
|
parentPropertyExpression,
|
251
238
|
PropertyExplicitReference.create(
|
@@ -262,7 +249,7 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
|
|
262
249
|
)
|
263
250
|
) {
|
264
251
|
const subclass = new InstanceValue(
|
265
|
-
|
252
|
+
Multiplicity.ONE,
|
266
253
|
GenericTypeExplicitReference.create(new GenericType(currentNode.type)),
|
267
254
|
);
|
268
255
|
currentExpression.parametersValues.push(subclass);
|
@@ -286,7 +273,7 @@ export const buildPropertyExpressionFromExplorerTreeNodeData = (
|
|
286
273
|
currentExpression.parametersValues.push(projectionColumnLambdaVariable);
|
287
274
|
if (currentExpression instanceof SimpleFunctionExpression) {
|
288
275
|
const subclass = new InstanceValue(
|
289
|
-
|
276
|
+
Multiplicity.ONE,
|
290
277
|
GenericTypeExplicitReference.create(new GenericType(currentNode.type)),
|
291
278
|
);
|
292
279
|
currentExpression.parametersValues.push(subclass);
|
@@ -506,7 +493,7 @@ export const getQueryBuilderSubTypeNodeData = (
|
|
506
493
|
? parentNode.property.multiplicity
|
507
494
|
: parentNode instanceof QueryBuilderExplorerTreeSubTypeNodeData
|
508
495
|
? parentNode.multiplicity
|
509
|
-
:
|
496
|
+
: Multiplicity.ONE,
|
510
497
|
);
|
511
498
|
subTypeNode.childrenIds =
|
512
499
|
generateExplorerTreeClassNodeChildrenIDs(subTypeNode);
|
@@ -343,10 +343,7 @@ export class QueryBuilderPropertySearchState {
|
|
343
343
|
if (
|
344
344
|
this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.STRING)
|
345
345
|
) {
|
346
|
-
if (
|
347
|
-
node.type instanceof PrimitiveType &&
|
348
|
-
node.type.name === PRIMITIVE_TYPE.STRING
|
349
|
-
) {
|
346
|
+
if (node.type === PrimitiveType.STRING) {
|
350
347
|
return true;
|
351
348
|
}
|
352
349
|
}
|
@@ -370,10 +367,7 @@ export class QueryBuilderPropertySearchState {
|
|
370
367
|
if (
|
371
368
|
this.typeFilters.includes(QUERY_BUILDER_PROPERTY_SEARCH_TYPE.BOOLEAN)
|
372
369
|
) {
|
373
|
-
if (
|
374
|
-
node.type instanceof PrimitiveType &&
|
375
|
-
node.type.name === PRIMITIVE_TYPE.BOOLEAN
|
376
|
-
) {
|
370
|
+
if (node.type === PrimitiveType.BOOLEAN) {
|
377
371
|
return true;
|
378
372
|
}
|
379
373
|
}
|
@@ -20,31 +20,24 @@ import {
|
|
20
20
|
GenericTypeExplicitReference,
|
21
21
|
matchFunctionName,
|
22
22
|
PrimitiveInstanceValue,
|
23
|
-
PRIMITIVE_TYPE,
|
24
23
|
SimpleFunctionExpression,
|
25
|
-
TYPICAL_MULTIPLICITY_TYPE,
|
26
24
|
type ValueSpecification,
|
27
25
|
type LambdaFunction,
|
28
|
-
|
26
|
+
GraphFetchTreeInstanceValue,
|
27
|
+
PrimitiveType,
|
29
28
|
} from '@finos/legend-graph';
|
30
29
|
import { guaranteeNonNullable, guaranteeType } from '@finos/legend-shared';
|
31
30
|
import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../graphManager/QueryBuilderSupportedFunctions.js';
|
32
|
-
import type { QueryBuilderState } from '../../QueryBuilderState.js';
|
33
31
|
import type { QueryBuilderGraphFetchTreeState } from './QueryBuilderGraphFetchTreeState.js';
|
34
32
|
import { isGraphFetchTreeDataEmpty } from './QueryBuilderGraphFetchTreeUtil.js';
|
35
33
|
|
36
34
|
const appendTakeLimit = (
|
37
|
-
queryBuilderState: QueryBuilderState,
|
38
35
|
lambda: LambdaFunction,
|
39
36
|
previewLimit?: number | undefined,
|
40
37
|
): LambdaFunction => {
|
41
38
|
if (!previewLimit) {
|
42
39
|
return lambda;
|
43
40
|
}
|
44
|
-
const multiplicityOne =
|
45
|
-
queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
46
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
47
|
-
);
|
48
41
|
if (lambda.expressionSequence.length === 1) {
|
49
42
|
const func = lambda.expressionSequence[0];
|
50
43
|
if (func instanceof SimpleFunctionExpression) {
|
@@ -56,18 +49,12 @@ const appendTakeLimit = (
|
|
56
49
|
) {
|
57
50
|
const limit = new PrimitiveInstanceValue(
|
58
51
|
GenericTypeExplicitReference.create(
|
59
|
-
new GenericType(
|
60
|
-
queryBuilderState.graphManagerState.graph.getPrimitiveType(
|
61
|
-
PRIMITIVE_TYPE.INTEGER,
|
62
|
-
),
|
63
|
-
),
|
52
|
+
new GenericType(PrimitiveType.INTEGER),
|
64
53
|
),
|
65
|
-
multiplicityOne,
|
66
54
|
);
|
67
55
|
limit.values = [previewLimit];
|
68
56
|
const takeFunction = new SimpleFunctionExpression(
|
69
57
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.TAKE),
|
70
|
-
multiplicityOne,
|
71
58
|
);
|
72
59
|
|
73
60
|
// NOTE: `take()` does not work on `graphFetch()` or `serialize()` so we need to
|
@@ -109,23 +96,16 @@ export const appendGraphFetch = (
|
|
109
96
|
lambdaFunction.expressionSequence[0],
|
110
97
|
`Can't build graph-fetch tree expression: preceding expression is not defined`,
|
111
98
|
);
|
112
|
-
const multiplicityOne =
|
113
|
-
queryBuilderState.graphManagerState.graph.getTypicalMultiplicity(
|
114
|
-
TYPICAL_MULTIPLICITY_TYPE.ONE,
|
115
|
-
);
|
116
99
|
|
117
100
|
// build graph-fetch tree
|
118
101
|
if (
|
119
102
|
graphFetchTreeState.treeData &&
|
120
103
|
!isGraphFetchTreeDataEmpty(graphFetchTreeState.treeData)
|
121
104
|
) {
|
122
|
-
const graphFetchInstance = new
|
123
|
-
multiplicityOne,
|
124
|
-
);
|
105
|
+
const graphFetchInstance = new GraphFetchTreeInstanceValue();
|
125
106
|
graphFetchInstance.values = [graphFetchTreeState.treeData.tree];
|
126
107
|
const serializeFunction = new SimpleFunctionExpression(
|
127
108
|
extractElementNameFromPath(QUERY_BUILDER_SUPPORTED_FUNCTIONS.SERIALIZE),
|
128
|
-
multiplicityOne,
|
129
109
|
);
|
130
110
|
const graphFetchFunc = new SimpleFunctionExpression(
|
131
111
|
graphFetchTreeState.isChecked
|
@@ -135,7 +115,6 @@ export const appendGraphFetch = (
|
|
135
115
|
: extractElementNameFromPath(
|
136
116
|
QUERY_BUILDER_SUPPORTED_FUNCTIONS.GRAPH_FETCH,
|
137
117
|
),
|
138
|
-
multiplicityOne,
|
139
118
|
);
|
140
119
|
graphFetchFunc.parametersValues = [precedingExpression, graphFetchInstance];
|
141
120
|
serializeFunction.parametersValues = [graphFetchFunc, graphFetchInstance];
|
@@ -144,10 +123,6 @@ export const appendGraphFetch = (
|
|
144
123
|
|
145
124
|
// build result set modifier: i.e. preview limit
|
146
125
|
if (options?.isBuildingExecutionQuery) {
|
147
|
-
appendTakeLimit(
|
148
|
-
queryBuilderState,
|
149
|
-
lambdaFunction,
|
150
|
-
queryBuilderState.resultState.previewLimit,
|
151
|
-
);
|
126
|
+
appendTakeLimit(lambdaFunction, queryBuilderState.resultState.previewLimit);
|
152
127
|
}
|
153
128
|
};
|
File without changes
|