@finos/legend-data-cube 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/__lib__/DataCubeSetting.d.ts +2 -0
- package/lib/__lib__/DataCubeSetting.d.ts.map +1 -1
- package/lib/__lib__/DataCubeSetting.js +2 -0
- package/lib/__lib__/DataCubeSetting.js.map +1 -1
- package/lib/components/DataCube.d.ts +2 -2
- package/lib/components/DataCube.d.ts.map +1 -1
- package/lib/components/DataCube.js +12 -11
- package/lib/components/DataCube.js.map +1 -1
- package/lib/components/DataCubePlaceholder.d.ts +2 -2
- package/lib/components/DataCubePlaceholder.d.ts.map +1 -1
- package/lib/components/DataCubePlaceholder.js.map +1 -1
- package/lib/components/DataCubeTitleBar.d.ts +3 -2
- package/lib/components/DataCubeTitleBar.d.ts.map +1 -1
- package/lib/components/DataCubeTitleBar.js +29 -9
- package/lib/components/DataCubeTitleBar.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataCubeAPI.d.ts +17 -4
- package/lib/stores/DataCubeAPI.d.ts.map +1 -1
- package/lib/stores/DataCubeAPI.js +9 -3
- package/lib/stores/DataCubeAPI.js.map +1 -1
- package/lib/stores/DataCubeOptions.d.ts +11 -8
- package/lib/stores/DataCubeOptions.d.ts.map +1 -1
- package/lib/stores/DataCubeOptions.js +4 -1
- package/lib/stores/DataCubeOptions.js.map +1 -1
- package/lib/stores/DataCubeState.d.ts +3 -3
- package/lib/stores/DataCubeState.d.ts.map +1 -1
- package/lib/stores/DataCubeState.js +3 -3
- package/lib/stores/DataCubeState.js.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts +3 -3
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeEngine.d.ts +5 -5
- package/lib/stores/core/DataCubeEngine.d.ts.map +1 -1
- package/lib/stores/core/DataCubeEngine.js +6 -6
- package/lib/stores/core/DataCubeEngine.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.d.ts +4 -4
- package/lib/stores/core/DataCubeQueryBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.js +2 -2
- package/lib/stores/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts +5 -5
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.js +2 -2
- package/lib/stores/core/DataCubeQueryBuilderUtils.js.map +1 -1
- package/lib/stores/core/{DataCubeQuerySnapshot.d.ts → DataCubeSnapshot.d.ts} +28 -28
- package/lib/stores/core/DataCubeSnapshot.d.ts.map +1 -0
- package/lib/stores/core/{DataCubeQuerySnapshot.js → DataCubeSnapshot.js} +5 -5
- package/lib/stores/core/DataCubeSnapshot.js.map +1 -0
- package/lib/stores/core/{DataCubeQuerySnapshotBuilder.d.ts → DataCubeSnapshotBuilder.d.ts} +8 -8
- package/lib/stores/core/DataCubeSnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/core/{DataCubeQuerySnapshotBuilder.js → DataCubeSnapshotBuilder.js} +12 -12
- package/lib/stores/core/DataCubeSnapshotBuilder.js.map +1 -0
- package/lib/stores/core/{DataCubeQuerySnapshotBuilderUtils.d.ts → DataCubeSnapshotBuilderUtils.d.ts} +6 -6
- package/lib/stores/core/DataCubeSnapshotBuilderUtils.d.ts.map +1 -0
- package/lib/stores/core/{DataCubeQuerySnapshotBuilderUtils.js → DataCubeSnapshotBuilderUtils.js} +16 -10
- package/lib/stores/core/DataCubeSnapshotBuilderUtils.js.map +1 -0
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js +2 -2
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts +4 -4
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts +3 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js.map +1 -1
- package/lib/stores/core/model/DataCubeConfiguration.d.ts +1 -1
- package/lib/stores/core/model/DataCubeConfiguration.js +1 -1
- package/lib/stores/core/model/{DataCubeQuery.d.ts → DataCubeSpecification.d.ts} +8 -3
- package/lib/stores/core/model/DataCubeSpecification.d.ts.map +1 -0
- package/lib/stores/core/model/{DataCubeQuery.js → DataCubeSpecification.js} +12 -4
- package/lib/stores/core/model/DataCubeSpecification.js.map +1 -0
- package/lib/stores/services/DataCubeSettingService.d.ts +1 -0
- package/lib/stores/services/DataCubeSettingService.d.ts.map +1 -1
- package/lib/stores/services/DataCubeSettingService.js +22 -0
- package/lib/stores/services/DataCubeSettingService.js.map +1 -1
- package/lib/stores/services/DataCubeSnapshotService.d.ts +59 -0
- package/lib/stores/services/DataCubeSnapshotService.d.ts.map +1 -0
- package/lib/stores/services/{DataCubeQuerySnapshotService.js → DataCubeSnapshotService.js} +77 -31
- package/lib/stores/services/DataCubeSnapshotService.js.map +1 -0
- package/lib/stores/view/DataCubeInfoState.d.ts +4 -4
- package/lib/stores/view/DataCubeInfoState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeInfoState.js +2 -2
- package/lib/stores/view/DataCubeInfoState.js.map +1 -1
- package/lib/stores/view/DataCubeViewState.d.ts +12 -9
- package/lib/stores/view/DataCubeViewState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeViewState.js +107 -19
- package/lib/stores/view/DataCubeViewState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts +2 -2
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.js +2 -2
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorState.d.ts +6 -6
- package/lib/stores/view/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorState.js +3 -3
- package/lib/stores/view/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts +3 -3
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts +2 -2
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts +8 -8
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.js +3 -3
- package/lib/stores/view/extend/DataCubeExtendManagerState.js.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts +4 -4
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.js +4 -4
- package/lib/stores/view/filter/DataCubeFilterEditorState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts +3 -3
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.js +23 -27
- package/lib/stores/view/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts +4 -4
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js +3 -3
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts +5 -5
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.js +6 -6
- package/lib/stores/view/grid/DataCubeGridControllerState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.d.ts +2 -2
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.js +9 -8
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.js.map +1 -1
- package/lib/stores/view/grid/{DataCubeGridQuerySnapshotBuilder.d.ts → DataCubeGridSnapshotBuilder.d.ts} +5 -5
- package/lib/stores/view/grid/DataCubeGridSnapshotBuilder.d.ts.map +1 -0
- package/lib/stores/view/grid/{DataCubeGridQuerySnapshotBuilder.js → DataCubeGridSnapshotBuilder.js} +6 -6
- package/lib/stores/view/grid/DataCubeGridSnapshotBuilder.js.map +1 -0
- package/lib/stores/view/grid/DataCubeGridState.d.ts +7 -5
- package/lib/stores/view/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridState.js +7 -6
- package/lib/stores/view/grid/DataCubeGridState.js.map +1 -1
- package/package.json +3 -3
- package/src/__lib__/DataCubeSetting.ts +2 -0
- package/src/components/DataCube.tsx +14 -12
- package/src/components/DataCubePlaceholder.tsx +5 -2
- package/src/components/DataCubeTitleBar.tsx +49 -19
- package/src/index.tsx +3 -2
- package/src/stores/DataCubeAPI.ts +25 -6
- package/src/stores/DataCubeOptions.ts +13 -11
- package/src/stores/DataCubeState.tsx +4 -4
- package/src/stores/core/DataCubeConfigurationBuilder.ts +3 -3
- package/src/stores/core/DataCubeEngine.tsx +8 -8
- package/src/stores/core/DataCubeQueryBuilder.ts +4 -4
- package/src/stores/core/DataCubeQueryBuilderUtils.ts +8 -8
- package/src/stores/core/{DataCubeQuerySnapshot.ts → DataCubeSnapshot.ts} +31 -34
- package/src/stores/core/{DataCubeQuerySnapshotBuilder.ts → DataCubeSnapshotBuilder.ts} +22 -22
- package/src/stores/core/{DataCubeQuerySnapshotBuilderUtils.ts → DataCubeSnapshotBuilderUtils.ts} +39 -25
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation.ts +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__First.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.tsx +1 -1
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.tsx +1 -1
- package/src/stores/core/filter/DataCubeQueryFilterEditorState.ts +8 -8
- package/src/stores/core/filter/DataCubeQueryFilterOperation.ts +4 -4
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Contain.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWith.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Equal.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNull.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThan.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotContain.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWith.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx +3 -3
- package/src/stores/core/model/DataCubeConfiguration.ts +1 -1
- package/src/stores/core/model/{DataCubeQuery.ts → DataCubeSpecification.ts} +17 -3
- package/src/stores/services/DataCubeSettingService.tsx +23 -0
- package/src/stores/services/{DataCubeQuerySnapshotService.ts → DataCubeSnapshotService.ts} +116 -65
- package/src/stores/view/DataCubeInfoState.ts +5 -5
- package/src/stores/view/DataCubeViewState.ts +143 -23
- package/src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts +3 -6
- package/src/stores/view/editor/DataCubeEditorColumnsPanelState.ts +3 -6
- package/src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts +3 -6
- package/src/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.ts +3 -6
- package/src/stores/view/editor/DataCubeEditorMutableConfiguration.ts +2 -2
- package/src/stores/view/editor/DataCubeEditorPanelState.ts +4 -4
- package/src/stores/view/editor/DataCubeEditorPivotLayoutPanelState.ts +4 -7
- package/src/stores/view/editor/DataCubeEditorSortsPanelState.ts +3 -6
- package/src/stores/view/editor/DataCubeEditorState.tsx +9 -9
- package/src/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.ts +3 -6
- package/src/stores/view/extend/DataCubeColumnEditorState.tsx +2 -2
- package/src/stores/view/extend/DataCubeExtendManagerState.tsx +11 -11
- package/src/stores/view/filter/DataCubeFilterEditorState.tsx +7 -7
- package/src/stores/view/grid/DataCubeGridClientEngine.ts +39 -39
- package/src/stores/view/grid/DataCubeGridConfigurationBuilder.tsx +12 -12
- package/src/stores/view/grid/DataCubeGridControllerState.ts +12 -12
- package/src/stores/view/grid/DataCubeGridQueryBuilder.ts +15 -9
- package/src/stores/view/grid/{DataCubeGridQuerySnapshotBuilder.ts → DataCubeGridSnapshotBuilder.ts} +6 -6
- package/src/stores/view/grid/DataCubeGridState.ts +15 -9
- package/tsconfig.json +6 -6
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts.map +0 -1
- package/lib/stores/core/DataCubeQuerySnapshot.js.map +0 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts.map +0 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js.map +0 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts.map +0 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js.map +0 -1
- package/lib/stores/core/model/DataCubeQuery.d.ts.map +0 -1
- package/lib/stores/core/model/DataCubeQuery.js.map +0 -1
- package/lib/stores/services/DataCubeQuerySnapshotService.d.ts +0 -54
- package/lib/stores/services/DataCubeQuerySnapshotService.d.ts.map +0 -1
- package/lib/stores/services/DataCubeQuerySnapshotService.js.map +0 -1
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +0 -1
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.js.map +0 -1
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
/***************************************************************************************
|
|
18
18
|
* [CORE]
|
|
19
19
|
*
|
|
20
|
-
* These are utilities used to build the executable query from the
|
|
20
|
+
* These are utilities used to build the executable query from the snapshot.
|
|
21
21
|
* The executable query is then used to fetch data.
|
|
22
22
|
***************************************************************************************/
|
|
23
23
|
|
|
@@ -54,10 +54,10 @@ import {
|
|
|
54
54
|
V1_createRelationTypeColumn,
|
|
55
55
|
} from '@finos/legend-graph';
|
|
56
56
|
import {
|
|
57
|
-
type
|
|
58
|
-
type
|
|
59
|
-
type
|
|
60
|
-
} from './
|
|
57
|
+
type DataCubeSnapshotFilterCondition,
|
|
58
|
+
type DataCubeSnapshotFilter,
|
|
59
|
+
type DataCubeSnapshot,
|
|
60
|
+
} from './DataCubeSnapshot.js';
|
|
61
61
|
import { _findCol, type DataCubeColumn } from './model/DataCubeColumn.js';
|
|
62
62
|
import {
|
|
63
63
|
guaranteeNonNullable,
|
|
@@ -402,7 +402,7 @@ export function _aggCol_base(
|
|
|
402
402
|
|
|
403
403
|
export function _pivotAggCols(
|
|
404
404
|
pivotColumns: DataCubeColumn[],
|
|
405
|
-
snapshot:
|
|
405
|
+
snapshot: DataCubeSnapshot,
|
|
406
406
|
configuration: DataCubeConfiguration,
|
|
407
407
|
aggregateOperations: DataCubeQueryAggregateOperation[],
|
|
408
408
|
) {
|
|
@@ -449,7 +449,7 @@ export function _castCols(columns: DataCubeColumn[]) {
|
|
|
449
449
|
|
|
450
450
|
export function _groupByAggCols(
|
|
451
451
|
groupByColumns: DataCubeColumn[],
|
|
452
|
-
snapshot:
|
|
452
|
+
snapshot: DataCubeSnapshot,
|
|
453
453
|
configuration: DataCubeConfiguration,
|
|
454
454
|
aggregateOperations: DataCubeQueryAggregateOperation[],
|
|
455
455
|
) {
|
|
@@ -544,7 +544,7 @@ export function _groupByAggCols(
|
|
|
544
544
|
}
|
|
545
545
|
|
|
546
546
|
export function _filter(
|
|
547
|
-
filter:
|
|
547
|
+
filter: DataCubeSnapshotFilter | DataCubeSnapshotFilterCondition,
|
|
548
548
|
filterOperations: DataCubeQueryFilterOperation[],
|
|
549
549
|
) {
|
|
550
550
|
if ('groupOperator' in filter) {
|
|
@@ -30,69 +30,66 @@ import type {
|
|
|
30
30
|
} from './DataCubeQueryEngine.js';
|
|
31
31
|
import type { DataCubeColumn } from './model/DataCubeColumn.js';
|
|
32
32
|
|
|
33
|
-
export type
|
|
33
|
+
export type DataCubeSnapshotFilterCondition = DataCubeColumn & {
|
|
34
34
|
value: DataCubeOperationValue;
|
|
35
35
|
operator: string;
|
|
36
36
|
not?: boolean | undefined;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
export type
|
|
39
|
+
export type DataCubeSnapshotFilter = {
|
|
40
40
|
groupOperator: string;
|
|
41
|
-
conditions: (
|
|
42
|
-
| DataCubeQuerySnapshotFilterCondition
|
|
43
|
-
| DataCubeQuerySnapshotFilter
|
|
44
|
-
)[];
|
|
41
|
+
conditions: (DataCubeSnapshotFilterCondition | DataCubeSnapshotFilter)[];
|
|
45
42
|
not?: boolean | undefined;
|
|
46
43
|
};
|
|
47
44
|
|
|
48
|
-
export type
|
|
45
|
+
export type DataCubeSnapshotExtendedColumn = DataCubeColumn & {
|
|
49
46
|
windowFn?: PlainObject<V1_AppliedFunction> | undefined;
|
|
50
47
|
mapFn: PlainObject<V1_Lambda>;
|
|
51
48
|
reduceFn?: PlainObject<V1_Lambda> | undefined;
|
|
52
49
|
};
|
|
53
50
|
|
|
54
|
-
export type
|
|
51
|
+
export type DataCubeSnapshotAggregateColumn = DataCubeColumn & {
|
|
55
52
|
parameterValues: DataCubeOperationValue[];
|
|
56
53
|
operator: string;
|
|
57
54
|
};
|
|
58
55
|
|
|
59
|
-
export type
|
|
56
|
+
export type DataCubeSnapshotSortColumn = DataCubeColumn & {
|
|
60
57
|
direction: DataCubeQuerySortDirection;
|
|
61
58
|
};
|
|
62
59
|
|
|
63
|
-
export type
|
|
60
|
+
export type DataCubeSnapshotGroupBy = {
|
|
64
61
|
columns: DataCubeColumn[];
|
|
65
62
|
};
|
|
66
63
|
|
|
67
|
-
export type
|
|
64
|
+
export type DataCubeSnapshotPivot = {
|
|
68
65
|
columns: DataCubeColumn[];
|
|
69
66
|
castColumns: DataCubeColumn[];
|
|
70
67
|
};
|
|
71
68
|
|
|
72
|
-
export type
|
|
73
|
-
snapshot:
|
|
74
|
-
pivotAggColumns?:
|
|
75
|
-
pivotSortColumns?:
|
|
76
|
-
groupByAggColumns?:
|
|
77
|
-
groupBySortColumns?:
|
|
69
|
+
export type DataCubeSnapshotProcessingContext = {
|
|
70
|
+
snapshot: DataCubeSnapshot;
|
|
71
|
+
pivotAggColumns?: DataCubeSnapshotAggregateColumn[] | undefined;
|
|
72
|
+
pivotSortColumns?: DataCubeSnapshotSortColumn[] | undefined;
|
|
73
|
+
groupByAggColumns?: DataCubeSnapshotAggregateColumn[] | undefined;
|
|
74
|
+
groupBySortColumns?: DataCubeSnapshotSortColumn[] | undefined;
|
|
78
75
|
};
|
|
79
76
|
|
|
80
|
-
export type
|
|
77
|
+
export type DataCubeSnapshotData = {
|
|
81
78
|
configuration: PlainObject<DataCubeConfiguration>;
|
|
82
79
|
sourceColumns: DataCubeColumn[];
|
|
83
|
-
leafExtendedColumns:
|
|
84
|
-
filter?:
|
|
80
|
+
leafExtendedColumns: DataCubeSnapshotExtendedColumn[];
|
|
81
|
+
filter?: DataCubeSnapshotFilter | undefined;
|
|
85
82
|
selectColumns: DataCubeColumn[];
|
|
86
|
-
groupBy?:
|
|
87
|
-
pivot?:
|
|
88
|
-
groupExtendedColumns:
|
|
89
|
-
sortColumns:
|
|
83
|
+
groupBy?: DataCubeSnapshotGroupBy | undefined;
|
|
84
|
+
pivot?: DataCubeSnapshotPivot | undefined;
|
|
85
|
+
groupExtendedColumns: DataCubeSnapshotExtendedColumn[];
|
|
86
|
+
sortColumns: DataCubeSnapshotSortColumn[];
|
|
90
87
|
limit: number | undefined;
|
|
91
88
|
};
|
|
92
89
|
|
|
93
|
-
export class
|
|
90
|
+
export class DataCubeSnapshot {
|
|
94
91
|
readonly uuid = uuid();
|
|
95
|
-
readonly data:
|
|
92
|
+
readonly data: DataCubeSnapshotData;
|
|
96
93
|
|
|
97
94
|
private _isPatchChange = false;
|
|
98
95
|
private _finalized = false;
|
|
@@ -114,7 +111,7 @@ export class DataCubeQuerySnapshot {
|
|
|
114
111
|
}
|
|
115
112
|
|
|
116
113
|
static create(configuration: PlainObject<DataCubeConfiguration>) {
|
|
117
|
-
return new
|
|
114
|
+
return new DataCubeSnapshot(configuration);
|
|
118
115
|
}
|
|
119
116
|
|
|
120
117
|
/**
|
|
@@ -163,10 +160,10 @@ export class DataCubeQuerySnapshot {
|
|
|
163
160
|
}
|
|
164
161
|
|
|
165
162
|
clone() {
|
|
166
|
-
const clone = new
|
|
167
|
-
(clone.data as Writable<
|
|
163
|
+
const clone = new DataCubeSnapshot({});
|
|
164
|
+
(clone.data as Writable<DataCubeSnapshotData>) = JSON.parse(
|
|
168
165
|
JSON.stringify(this.data),
|
|
169
|
-
) as
|
|
166
|
+
) as DataCubeSnapshotData;
|
|
170
167
|
return clone;
|
|
171
168
|
}
|
|
172
169
|
|
|
@@ -175,11 +172,11 @@ export class DataCubeQuerySnapshot {
|
|
|
175
172
|
* This should rarely be used, and ideally by core engine only.
|
|
176
173
|
*/
|
|
177
174
|
INTERNAL__fullClone() {
|
|
178
|
-
const clone = new
|
|
179
|
-
(clone as Writable<
|
|
180
|
-
(clone as Writable<
|
|
175
|
+
const clone = new DataCubeSnapshot({});
|
|
176
|
+
(clone as Writable<DataCubeSnapshot>).uuid = this.uuid;
|
|
177
|
+
(clone as Writable<DataCubeSnapshot>).data = JSON.parse(
|
|
181
178
|
JSON.stringify(this.data),
|
|
182
|
-
) as
|
|
179
|
+
) as DataCubeSnapshotData;
|
|
183
180
|
clone._isPatchChange = this._isPatchChange;
|
|
184
181
|
clone._finalized = this._finalized;
|
|
185
182
|
clone._hashCode = this._hashCode;
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
/***************************************************************************************
|
|
18
18
|
* [CORE]
|
|
19
19
|
*
|
|
20
|
-
* This and its corresponding utilitites are used to build the
|
|
21
|
-
* executable query. This is needed when we initialize the engine by
|
|
22
|
-
*
|
|
20
|
+
* This and its corresponding utilitites are used to build the snapshot from the
|
|
21
|
+
* executable query and configuration. This is needed when we initialize the engine by
|
|
22
|
+
* loading a specification.
|
|
23
23
|
***************************************************************************************/
|
|
24
24
|
|
|
25
25
|
import {
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
type V1_ValueSpecification,
|
|
31
31
|
V1_Lambda,
|
|
32
32
|
} from '@finos/legend-graph';
|
|
33
|
-
import type {
|
|
33
|
+
import type { DataCubeSpecification } from './model/DataCubeSpecification.js';
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
type
|
|
37
|
-
type
|
|
38
|
-
type
|
|
39
|
-
} from './
|
|
35
|
+
DataCubeSnapshot,
|
|
36
|
+
type DataCubeSnapshotAggregateColumn,
|
|
37
|
+
type DataCubeSnapshotProcessingContext,
|
|
38
|
+
type DataCubeSnapshotSortColumn,
|
|
39
|
+
} from './DataCubeSnapshot.js';
|
|
40
40
|
import {
|
|
41
41
|
_findCol,
|
|
42
42
|
_toCol,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
_validatePivot,
|
|
71
71
|
_checkDuplicateColumns,
|
|
72
72
|
_validateGroupBy,
|
|
73
|
-
} from './
|
|
73
|
+
} from './DataCubeSnapshotBuilderUtils.js';
|
|
74
74
|
import type { DataCubeSource } from './model/DataCubeSource.js';
|
|
75
75
|
import type { DataCubeEngine } from './DataCubeEngine.js';
|
|
76
76
|
|
|
@@ -345,15 +345,15 @@ function extractFunctionMap(
|
|
|
345
345
|
// --------------------------------- MAIN ---------------------------------
|
|
346
346
|
|
|
347
347
|
/**
|
|
348
|
-
* Analyze the partial query to build a
|
|
348
|
+
* Analyze the partial query to build a snapshot.
|
|
349
349
|
*
|
|
350
350
|
* Implementation-wise, this extracts the function call sequence, then walk the
|
|
351
351
|
* sequence in order to fill in the information for the snapshot.
|
|
352
352
|
*/
|
|
353
|
-
export async function
|
|
353
|
+
export async function validateAndBuildSnapshot(
|
|
354
354
|
partialQuery: V1_ValueSpecification,
|
|
355
355
|
source: DataCubeSource,
|
|
356
|
-
|
|
356
|
+
specification: DataCubeSpecification,
|
|
357
357
|
engine: DataCubeEngine,
|
|
358
358
|
) {
|
|
359
359
|
// --------------------------------- BASE ---------------------------------
|
|
@@ -365,7 +365,7 @@ export async function validateAndBuildQuerySnapshot(
|
|
|
365
365
|
engine.serializeValueSpecification(partialQuery),
|
|
366
366
|
);
|
|
367
367
|
const funcMap = extractFunctionMap(query);
|
|
368
|
-
const snapshot =
|
|
368
|
+
const snapshot = DataCubeSnapshot.create({});
|
|
369
369
|
const data = snapshot.data;
|
|
370
370
|
const registeredColumns = new Map<string, DataCubeColumn>();
|
|
371
371
|
/**
|
|
@@ -476,8 +476,8 @@ export async function validateAndBuildQuerySnapshot(
|
|
|
476
476
|
|
|
477
477
|
// --------------------------------- PIVOT ---------------------------------
|
|
478
478
|
|
|
479
|
-
let pivotAggColumns:
|
|
480
|
-
let pivotSortColumns:
|
|
479
|
+
let pivotAggColumns: DataCubeSnapshotAggregateColumn[] = [];
|
|
480
|
+
let pivotSortColumns: DataCubeSnapshotSortColumn[] = [];
|
|
481
481
|
if (funcMap.pivot && funcMap.pivotCast && funcMap.pivotSort) {
|
|
482
482
|
const pivotColumns = _colSpecArrayParam(funcMap.pivot, 0).colSpecs.map(
|
|
483
483
|
(colSpec) => _getCol(colSpec.name),
|
|
@@ -510,8 +510,8 @@ export async function validateAndBuildQuerySnapshot(
|
|
|
510
510
|
|
|
511
511
|
// --------------------------------- GROUP BY ---------------------------------
|
|
512
512
|
|
|
513
|
-
let groupByAggColumns:
|
|
514
|
-
let groupBySortColumns:
|
|
513
|
+
let groupByAggColumns: DataCubeSnapshotAggregateColumn[] = [];
|
|
514
|
+
let groupBySortColumns: DataCubeSnapshotSortColumn[] = [];
|
|
515
515
|
if (funcMap.groupBy && funcMap.groupBySort) {
|
|
516
516
|
const groupByColumns = _colSpecArrayParam(funcMap.groupBy, 0).colSpecs.map(
|
|
517
517
|
(colSpec) => _getCol(colSpec.name),
|
|
@@ -605,7 +605,7 @@ export async function validateAndBuildQuerySnapshot(
|
|
|
605
605
|
pivotAggColumns,
|
|
606
606
|
pivotSortColumns,
|
|
607
607
|
},
|
|
608
|
-
|
|
608
|
+
specification,
|
|
609
609
|
engine,
|
|
610
610
|
);
|
|
611
611
|
data.configuration = configuration.serialize();
|
|
@@ -642,12 +642,12 @@ export async function validateAndBuildQuerySnapshot(
|
|
|
642
642
|
* configuration is not specified.
|
|
643
643
|
*/
|
|
644
644
|
function validateAndBuildConfiguration(
|
|
645
|
-
context:
|
|
646
|
-
|
|
645
|
+
context: DataCubeSnapshotProcessingContext,
|
|
646
|
+
specification: DataCubeSpecification,
|
|
647
647
|
engine: DataCubeEngine,
|
|
648
648
|
) {
|
|
649
649
|
const data = context.snapshot.data;
|
|
650
|
-
const config =
|
|
650
|
+
const config = specification.configuration;
|
|
651
651
|
// generate a default configuration anyway to be used to compare with the
|
|
652
652
|
// provided configuration for validation purpose
|
|
653
653
|
const _config = newConfiguration(context);
|
package/src/stores/core/{DataCubeQuerySnapshotBuilderUtils.ts → DataCubeSnapshotBuilderUtils.ts}
RENAMED
|
@@ -66,12 +66,12 @@ import {
|
|
|
66
66
|
type DataCubeOperationValue,
|
|
67
67
|
} from './DataCubeQueryEngine.js';
|
|
68
68
|
import type {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
} from './
|
|
69
|
+
DataCubeSnapshotAggregateColumn,
|
|
70
|
+
DataCubeSnapshotFilter,
|
|
71
|
+
DataCubeSnapshotFilterCondition,
|
|
72
|
+
DataCubeSnapshotGroupBy,
|
|
73
|
+
DataCubeSnapshotPivot,
|
|
74
|
+
} from './DataCubeSnapshot.js';
|
|
75
75
|
import type { DataCubeQueryFilterOperation } from './filter/DataCubeQueryFilterOperation.js';
|
|
76
76
|
import type { DataCubeEngine } from './DataCubeEngine.js';
|
|
77
77
|
import {
|
|
@@ -375,14 +375,14 @@ export function _filter(
|
|
|
375
375
|
value: V1_ValueSpecification,
|
|
376
376
|
columnGetter: (name: string) => DataCubeColumn,
|
|
377
377
|
filterOperations: DataCubeQueryFilterOperation[],
|
|
378
|
-
):
|
|
378
|
+
): DataCubeSnapshotFilter {
|
|
379
379
|
if (!(value instanceof V1_AppliedFunction)) {
|
|
380
380
|
throw new Error(
|
|
381
381
|
`Can't process filter() expression: expected a function expression`,
|
|
382
382
|
);
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
const group:
|
|
385
|
+
const group: DataCubeSnapshotFilter = {
|
|
386
386
|
// default to AND group for case where there is only one condition
|
|
387
387
|
groupOperator: DataCubeQueryFilterGroupOperator.AND,
|
|
388
388
|
conditions: [],
|
|
@@ -426,7 +426,7 @@ function _filterCondition(
|
|
|
426
426
|
value: V1_ValueSpecification,
|
|
427
427
|
columnGetter: (name: string) => DataCubeColumn,
|
|
428
428
|
filterOperations: DataCubeQueryFilterOperation[],
|
|
429
|
-
):
|
|
429
|
+
): DataCubeSnapshotFilterCondition | DataCubeSnapshotFilter {
|
|
430
430
|
if (!(value instanceof V1_AppliedFunction)) {
|
|
431
431
|
throw new UnsupportedOperationError(
|
|
432
432
|
`Can't process filter condition expression: expected a function expression`,
|
|
@@ -707,8 +707,8 @@ export function _pivotSort(
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
export function _validatePivot(
|
|
710
|
-
pivot:
|
|
711
|
-
pivotAggColumns:
|
|
710
|
+
pivot: DataCubeSnapshotPivot,
|
|
711
|
+
pivotAggColumns: DataCubeSnapshotAggregateColumn[],
|
|
712
712
|
availableColumns: DataCubeColumn[],
|
|
713
713
|
) {
|
|
714
714
|
// check for duplicate columns
|
|
@@ -834,10 +834,10 @@ export function _groupBySort(
|
|
|
834
834
|
}
|
|
835
835
|
|
|
836
836
|
export function _validateGroupBy(
|
|
837
|
-
groupBy:
|
|
838
|
-
groupByAggColumns:
|
|
839
|
-
pivot:
|
|
840
|
-
pivotAggColumns:
|
|
837
|
+
groupBy: DataCubeSnapshotGroupBy,
|
|
838
|
+
groupByAggColumns: DataCubeSnapshotAggregateColumn[],
|
|
839
|
+
pivot: DataCubeSnapshotPivot | undefined,
|
|
840
|
+
pivotAggColumns: DataCubeSnapshotAggregateColumn[],
|
|
841
841
|
availableColumns: DataCubeColumn[],
|
|
842
842
|
) {
|
|
843
843
|
// check for duplicate columns
|
|
@@ -862,7 +862,7 @@ export function _validateGroupBy(
|
|
|
862
862
|
}
|
|
863
863
|
});
|
|
864
864
|
|
|
865
|
-
// check all available columns are either grouped on or
|
|
865
|
+
// check all available columns are either grouped on or aggregated on
|
|
866
866
|
availableColumns.forEach((col) => {
|
|
867
867
|
if (
|
|
868
868
|
!(
|
|
@@ -878,10 +878,12 @@ export function _validateGroupBy(
|
|
|
878
878
|
|
|
879
879
|
// check against pivot if present
|
|
880
880
|
if (pivot) {
|
|
881
|
-
const aggCols = new Map<string,
|
|
881
|
+
const aggCols = new Map<string, DataCubeSnapshotAggregateColumn>();
|
|
882
882
|
|
|
883
|
-
// check if aggregation specification is consistent (i.e. same
|
|
883
|
+
// check if aggregation specification is consistent (i.e. same name, operator, parameterValues)
|
|
884
884
|
// between groupBy aggregate columns
|
|
885
|
+
// NOTE: we should not check type here as it can change dynamically due to aggregation, e.g.
|
|
886
|
+
// an average aggregation on an integer-value column will result in a float-value column
|
|
885
887
|
groupByAggColumns
|
|
886
888
|
.filter((col) => isPivotResultColumnName(col.name))
|
|
887
889
|
.forEach((col) => {
|
|
@@ -895,25 +897,37 @@ export function _validateGroupBy(
|
|
|
895
897
|
|
|
896
898
|
if (!existingAggCol) {
|
|
897
899
|
aggCols.set(aggColName, aggCol);
|
|
898
|
-
} else if (
|
|
900
|
+
} else if (
|
|
901
|
+
// type should not be compared here as it can change dynamically due to aggregation
|
|
902
|
+
!deepEqual(
|
|
903
|
+
{ ...existingAggCol, type: undefined },
|
|
904
|
+
{ ...aggCol, type: undefined },
|
|
905
|
+
)
|
|
906
|
+
) {
|
|
899
907
|
throw new Error(
|
|
900
908
|
`Can't process groupBy() expression: found conflicting aggregation specification for column '${aggColName}'`,
|
|
901
909
|
);
|
|
902
910
|
}
|
|
903
911
|
});
|
|
904
912
|
|
|
905
|
-
// check if
|
|
906
|
-
pivotAggColumns.forEach((
|
|
907
|
-
const existingAggCol = aggCols.get(
|
|
913
|
+
// check if groupBy() aggregate columns are consistent with pivot() aggregate columns
|
|
914
|
+
pivotAggColumns.forEach((pivotAggCol) => {
|
|
915
|
+
const existingAggCol = aggCols.get(pivotAggCol.name);
|
|
908
916
|
if (!existingAggCol) {
|
|
909
917
|
throw new Error(
|
|
910
|
-
`Can't process groupBy() expression: column '${
|
|
918
|
+
`Can't process groupBy() expression: column '${pivotAggCol.name}' is aggregated in pivot() expression but not in groupBy() expression`,
|
|
911
919
|
);
|
|
912
920
|
}
|
|
913
921
|
|
|
914
|
-
if (
|
|
922
|
+
if (
|
|
923
|
+
// type should not be compared here as it can change dynamically due to aggregation
|
|
924
|
+
!deepEqual(
|
|
925
|
+
{ ...existingAggCol, type: undefined },
|
|
926
|
+
{ ...pivotAggCol, type: undefined },
|
|
927
|
+
)
|
|
928
|
+
) {
|
|
915
929
|
throw new Error(
|
|
916
|
-
`Can't process groupBy() expression: found conflicting aggregation specification for column '${
|
|
930
|
+
`Can't process groupBy() expression: found conflicting aggregation specification for column '${pivotAggCol.name}'`,
|
|
917
931
|
);
|
|
918
932
|
}
|
|
919
933
|
});
|
|
@@ -18,7 +18,7 @@ import type { DataCubeColumn } from '../model/DataCubeColumn.js';
|
|
|
18
18
|
import { type V1_ColSpec } from '@finos/legend-graph';
|
|
19
19
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
20
20
|
import type { DataCubeOperationValue } from '../DataCubeQueryEngine.js';
|
|
21
|
-
import type {
|
|
21
|
+
import type { DataCubeSnapshotAggregateColumn } from '../DataCubeSnapshot.js';
|
|
22
22
|
|
|
23
23
|
export abstract class DataCubeQueryAggregateOperation {
|
|
24
24
|
abstract get label(): React.ReactNode;
|
|
@@ -37,7 +37,7 @@ export abstract class DataCubeQueryAggregateOperation {
|
|
|
37
37
|
abstract buildAggregateColumnSnapshot(
|
|
38
38
|
colSpec: V1_ColSpec,
|
|
39
39
|
columnGetter: (name: string) => DataCubeColumn,
|
|
40
|
-
):
|
|
40
|
+
): DataCubeSnapshotAggregateColumn | undefined;
|
|
41
41
|
|
|
42
42
|
protected _finalizeAggregateColumnSnapshot(
|
|
43
43
|
data:
|
|
@@ -46,7 +46,7 @@ export abstract class DataCubeQueryAggregateOperation {
|
|
|
46
46
|
paramterValues: DataCubeOperationValue[];
|
|
47
47
|
}
|
|
48
48
|
| undefined,
|
|
49
|
-
):
|
|
49
|
+
): DataCubeSnapshotAggregateColumn | undefined {
|
|
50
50
|
if (!data) {
|
|
51
51
|
return undefined;
|
|
52
52
|
}
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__Average extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__Count extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__First extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
} from '../DataCubeQueryEngine.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
import { isString } from '@finos/legend-shared';
|
|
31
31
|
|
|
32
32
|
export class DataCubeQueryAggregateOperation__JoinStrings extends DataCubeQueryAggregateOperation {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__Last extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__Max extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__Min extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__StdDevPopulation extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__StdDevSample extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import { type V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__Sum extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__UniqueValue extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__VariancePopulation extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import { _aggCol_base } from '../DataCubeQueryBuilderUtils.js';
|
|
27
27
|
import type { DataCubeColumnConfiguration } from '../model/DataCubeConfiguration.js';
|
|
28
28
|
import type { V1_ColSpec } from '@finos/legend-graph';
|
|
29
|
-
import { _agg_base } from '../
|
|
29
|
+
import { _agg_base } from '../DataCubeSnapshotBuilderUtils.js';
|
|
30
30
|
|
|
31
31
|
export class DataCubeQueryAggregateOperation__VarianceSample extends DataCubeQueryAggregateOperation {
|
|
32
32
|
override get label() {
|
|
@@ -25,9 +25,9 @@ import {
|
|
|
25
25
|
DataCubeQueryFilterGroupOperator,
|
|
26
26
|
} from '../DataCubeQueryEngine.js';
|
|
27
27
|
import type {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from '../
|
|
28
|
+
DataCubeSnapshotFilter,
|
|
29
|
+
DataCubeSnapshotFilterCondition,
|
|
30
|
+
} from '../DataCubeSnapshot.js';
|
|
31
31
|
import type { DataCubeColumn } from '../model/DataCubeColumn.js';
|
|
32
32
|
import type { DataCubeQueryFilterOperation } from './DataCubeQueryFilterOperation.js';
|
|
33
33
|
|
|
@@ -158,9 +158,9 @@ export class DataCubeFilterEditorConditionGroupTreeNode extends DataCubeFilterEd
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export function
|
|
161
|
+
export function buildFilterSnapshot(
|
|
162
162
|
node: DataCubeFilterEditorConditionGroupTreeNode,
|
|
163
|
-
):
|
|
163
|
+
): DataCubeSnapshotFilter {
|
|
164
164
|
return {
|
|
165
165
|
groupOperator: node.operation,
|
|
166
166
|
not: node.not,
|
|
@@ -172,11 +172,11 @@ export function buildFilterQuerySnapshot(
|
|
|
172
172
|
operator: childNode.operation.operator,
|
|
173
173
|
value: deepClone(childNode.value),
|
|
174
174
|
not: childNode.not,
|
|
175
|
-
} satisfies
|
|
175
|
+
} satisfies DataCubeSnapshotFilterCondition;
|
|
176
176
|
} else if (
|
|
177
177
|
childNode instanceof DataCubeFilterEditorConditionGroupTreeNode
|
|
178
178
|
) {
|
|
179
|
-
return
|
|
179
|
+
return buildFilterSnapshot(childNode);
|
|
180
180
|
}
|
|
181
181
|
throw new IllegalStateError('Unknown filter node');
|
|
182
182
|
}),
|
|
@@ -184,7 +184,7 @@ export function buildFilterQuerySnapshot(
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
export function buildFilterEditorTree(
|
|
187
|
-
_node:
|
|
187
|
+
_node: DataCubeSnapshotFilter,
|
|
188
188
|
parent: DataCubeFilterEditorConditionGroupTreeNode | undefined,
|
|
189
189
|
nodes: Map<string, DataCubeFilterEditorTreeNode>,
|
|
190
190
|
operationGetter: (operation: string) => DataCubeQueryFilterOperation,
|