@finos/legend-data-cube 0.0.9 → 0.0.11
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/components/DataCube.d.ts +6 -1
- package/lib/components/DataCube.d.ts.map +1 -1
- package/lib/components/DataCube.js +35 -28
- package/lib/components/DataCube.js.map +1 -1
- package/lib/components/DataCubeProvider.d.ts +2 -10
- package/lib/components/DataCubeProvider.d.ts.map +1 -1
- package/lib/components/DataCubeProvider.js +3 -15
- package/lib/components/DataCubeProvider.js.map +1 -1
- package/lib/components/DataCubeView.d.ts +22 -0
- package/lib/components/DataCubeView.d.ts.map +1 -0
- package/lib/components/DataCubeView.js +34 -0
- package/lib/components/DataCubeView.js.map +1 -0
- package/lib/components/core/DataCubeAlert.d.ts.map +1 -1
- package/lib/components/core/DataCubeAlert.js +2 -4
- package/lib/components/core/DataCubeAlert.js.map +1 -1
- package/lib/components/core/DataCubeDocumentationPanel.d.ts.map +1 -1
- package/lib/components/core/DataCubeDocumentationPanel.js +1 -2
- package/lib/components/core/DataCubeDocumentationPanel.js.map +1 -1
- package/lib/components/core/DataCubeFormUtils.d.ts.map +1 -1
- package/lib/components/core/DataCubeFormUtils.js +7 -7
- package/lib/components/core/DataCubeFormUtils.js.map +1 -1
- package/lib/components/core/DataCubePureCodeEditorUtils.d.ts +3 -3
- package/lib/components/core/DataCubePureCodeEditorUtils.d.ts.map +1 -1
- package/lib/components/core/DataCubePureCodeEditorUtils.js +2 -2
- package/lib/components/core/DataCubePureCodeEditorUtils.js.map +1 -1
- package/lib/components/core/DataCubeSettingsPanel.d.ts.map +1 -1
- package/lib/components/core/DataCubeSettingsPanel.js +16 -16
- package/lib/components/core/DataCubeSettingsPanel.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditor.js +3 -3
- package/lib/components/view/editor/DataCubeEditor.js.map +1 -1
- package/lib/components/view/editor/DataCubeEditorColumnPropertiesPanel.js +1 -1
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.js +2 -2
- package/lib/components/view/editor/DataCubeEditorGeneralPropertiesPanel.js.map +1 -1
- package/lib/components/view/extend/DataCubeColumnEditor.js +7 -7
- package/lib/components/view/extend/DataCubeColumnEditor.js.map +1 -1
- package/lib/components/view/grid/DataCubeGrid.d.ts.map +1 -1
- package/lib/components/view/grid/DataCubeGrid.js +12 -6
- package/lib/components/view/grid/DataCubeGrid.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +6 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataCubeAPI.d.ts +21 -0
- package/lib/stores/DataCubeAPI.d.ts.map +1 -0
- package/lib/stores/DataCubeAPI.js +17 -0
- package/lib/stores/DataCubeAPI.js.map +1 -0
- package/lib/stores/DataCubeOptions.d.ts +27 -0
- package/lib/stores/DataCubeOptions.d.ts.map +1 -0
- package/lib/stores/DataCubeOptions.js +17 -0
- package/lib/stores/DataCubeOptions.js.map +1 -0
- package/lib/stores/DataCubeSettings.d.ts +42 -0
- package/lib/stores/DataCubeSettings.d.ts.map +1 -0
- package/lib/stores/DataCubeSettings.js +76 -0
- package/lib/stores/DataCubeSettings.js.map +1 -0
- package/lib/stores/DataCubeState.d.ts +20 -6
- package/lib/stores/DataCubeState.d.ts.map +1 -1
- package/lib/stores/DataCubeState.js +61 -16
- package/lib/stores/DataCubeState.js.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts +4 -9
- package/lib/stores/core/DataCubeConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.js +1 -1
- package/lib/stores/core/DataCubeConfigurationBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeEngine.d.ts +109 -88
- package/lib/stores/core/DataCubeEngine.d.ts.map +1 -1
- package/lib/stores/core/DataCubeEngine.js +166 -123
- package/lib/stores/core/DataCubeEngine.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.d.ts +5 -5
- package/lib/stores/core/DataCubeQueryBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilder.js +13 -18
- package/lib/stores/core/DataCubeQueryBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts +7 -6
- package/lib/stores/core/DataCubeQueryBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.js +2 -1
- package/lib/stores/core/DataCubeQueryBuilderUtils.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts +12 -36
- package/lib/stores/core/DataCubeQuerySnapshot.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshot.js +5 -26
- package/lib/stores/core/DataCubeQuerySnapshot.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts +4 -3
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js +9 -8
- package/lib/stores/core/DataCubeQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts +2 -2
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.d.ts.map +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js +1 -1
- package/lib/stores/core/DataCubeQuerySnapshotBuilderUtils.js.map +1 -1
- 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 +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__First.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.js.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts +3 -3
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.d.ts.map +1 -1
- package/lib/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts +5 -4
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterEditorState.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Contain.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__Equal.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__IsNull.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThan.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotContain.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWith.js.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts +4 -3
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.d.ts.map +1 -1
- package/lib/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.js.map +1 -1
- package/lib/stores/core/models/DataCubeColumn.d.ts +30 -0
- package/lib/stores/core/models/DataCubeColumn.d.ts.map +1 -0
- package/lib/stores/core/models/DataCubeColumn.js +23 -0
- package/lib/stores/core/models/DataCubeColumn.js.map +1 -0
- package/lib/stores/core/{DataCubeConfiguration.d.ts → models/DataCubeConfiguration.d.ts} +3 -2
- package/lib/stores/core/models/DataCubeConfiguration.d.ts.map +1 -0
- package/lib/stores/core/{DataCubeConfiguration.js → models/DataCubeConfiguration.js} +3 -1
- package/lib/stores/core/models/DataCubeConfiguration.js.map +1 -0
- package/lib/stores/core/{DataCubeQuery.d.ts → models/DataCubeQuery.d.ts} +1 -18
- package/lib/stores/core/models/DataCubeQuery.d.ts.map +1 -0
- package/lib/stores/core/models/DataCubeQuery.js +30 -0
- package/lib/stores/core/models/DataCubeQuery.js.map +1 -0
- package/lib/stores/core/models/DataCubeSource.d.ts +24 -0
- package/lib/stores/core/models/DataCubeSource.d.ts.map +1 -0
- package/lib/stores/core/models/DataCubeSource.js +22 -0
- package/lib/stores/core/models/DataCubeSource.js.map +1 -0
- package/lib/stores/view/DataCubeInfoState.d.ts +0 -4
- package/lib/stores/view/DataCubeInfoState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeInfoState.js +10 -13
- package/lib/stores/view/DataCubeInfoState.js.map +1 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.d.ts +1 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.d.ts.map +1 -1
- package/lib/stores/view/DataCubeQuerySnapshotManager.js +4 -4
- package/lib/stores/view/DataCubeQuerySnapshotManager.js.map +1 -1
- package/lib/stores/view/DataCubeViewState.d.ts +5 -4
- package/lib/stores/view/DataCubeViewState.d.ts.map +1 -1
- package/lib/stores/view/DataCubeViewState.js +25 -10
- package/lib/stores/view/DataCubeViewState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnSelectorState.js +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js +3 -2
- package/lib/stores/view/editor/DataCubeEditorColumnsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts +1 -3
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js +0 -8
- package/lib/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts +6 -5
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js +2 -1
- package/lib/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts +2 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js +6 -1
- package/lib/stores/view/editor/DataCubeEditorMutableConfiguration.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorPivotLayoutPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js +2 -1
- package/lib/stores/view/editor/DataCubeEditorSortsPanelState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorState.d.ts +4 -3
- package/lib/stores/view/editor/DataCubeEditorState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorState.js +9 -8
- package/lib/stores/view/editor/DataCubeEditorState.js.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.d.ts.map +1 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js +2 -1
- package/lib/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts +3 -3
- package/lib/stores/view/extend/DataCubeColumnEditorState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeColumnEditorState.js +17 -15
- package/lib/stores/view/extend/DataCubeColumnEditorState.js.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts +6 -5
- package/lib/stores/view/extend/DataCubeExtendManagerState.d.ts.map +1 -1
- package/lib/stores/view/extend/DataCubeExtendManagerState.js +10 -9
- package/lib/stores/view/extend/DataCubeExtendManagerState.js.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.d.ts.map +1 -1
- package/lib/stores/view/filter/DataCubeFilterEditorState.js +2 -2
- package/lib/stores/view/filter/DataCubeFilterEditorState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientEngine.js +24 -23
- package/lib/stores/view/grid/DataCubeGridClientEngine.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.js +1 -1
- package/lib/stores/view/grid/DataCubeGridClientExportEngine.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js +2 -1
- package/lib/stores/view/grid/DataCubeGridConfigurationBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts +13 -12
- package/lib/stores/view/grid/DataCubeGridControllerState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridControllerState.js +3 -2
- package/lib/stores/view/grid/DataCubeGridControllerState.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridMenuBuilder.js +7 -7
- package/lib/stores/view/grid/DataCubeGridMenuBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridQueryBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.d.ts +2 -2
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.js +3 -2
- package/lib/stores/view/grid/DataCubeGridQuerySnapshotBuilder.js.map +1 -1
- package/lib/stores/view/grid/DataCubeGridState.d.ts +1 -1
- package/lib/stores/view/grid/DataCubeGridState.d.ts.map +1 -1
- package/lib/stores/view/grid/DataCubeGridState.js +4 -4
- package/lib/stores/view/grid/DataCubeGridState.js.map +1 -1
- package/package.json +4 -4
- package/src/components/DataCube.tsx +48 -65
- package/src/components/DataCubeProvider.tsx +3 -31
- package/src/components/DataCubeView.tsx +74 -0
- package/src/components/core/DataCubeAlert.tsx +2 -4
- package/src/components/core/DataCubeDocumentationPanel.tsx +1 -2
- package/src/components/core/DataCubeFormUtils.tsx +7 -8
- package/src/components/core/DataCubePureCodeEditorUtils.tsx +7 -8
- package/src/components/core/DataCubeSettingsPanel.tsx +30 -22
- package/src/components/view/editor/DataCubeEditor.tsx +3 -3
- package/src/components/view/editor/DataCubeEditorColumnPropertiesPanel.tsx +1 -1
- package/src/components/view/editor/DataCubeEditorGeneralPropertiesPanel.tsx +2 -2
- package/src/components/view/extend/DataCubeColumnEditor.tsx +7 -7
- package/src/components/view/grid/DataCubeGrid.tsx +13 -7
- package/src/index.tsx +8 -4
- package/src/stores/DataCubeAPI.ts +22 -0
- package/src/stores/DataCubeOptions.ts +34 -0
- package/src/stores/DataCubeSettings.ts +107 -0
- package/src/stores/DataCubeState.tsx +92 -21
- package/src/stores/core/DataCubeConfigurationBuilder.ts +6 -6
- package/src/stores/core/DataCubeEngine.tsx +459 -0
- package/src/stores/core/DataCubeQueryBuilder.ts +17 -31
- package/src/stores/core/DataCubeQueryBuilderUtils.ts +6 -9
- package/src/stores/core/DataCubeQuerySnapshot.ts +23 -87
- package/src/stores/core/DataCubeQuerySnapshotBuilder.ts +11 -20
- package/src/stores/core/DataCubeQuerySnapshotBuilderUtils.ts +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation.ts +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Average.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Count.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__First.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__JoinStrings.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Last.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Max.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Min.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevPopulation.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__StdDevSample.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__Sum.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__UniqueValue.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VariancePopulation.tsx +3 -3
- package/src/stores/core/aggregation/DataCubeQueryAggregateOperation__VarianceSample.tsx +3 -3
- package/src/stores/core/filter/DataCubeQueryFilterEditorState.ts +4 -4
- package/src/stores/core/filter/DataCubeQueryFilterOperation.ts +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Contain.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__ContainCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EndWithCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__Equal.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualCaseInsensitiveColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__EqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThan.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqual.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__GreaterThanOrEqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNotNull.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__IsNull.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThan.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqual.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__LessThanOrEqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotContain.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEndWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqual.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitive.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualCaseInsensitiveColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotEqualColumn.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__NotStartWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWith.tsx +4 -6
- package/src/stores/core/filter/DataCubeQueryFilterOperation__StartWithCaseInsensitive.tsx +4 -6
- package/src/stores/core/models/DataCubeColumn.ts +34 -0
- package/src/stores/core/{DataCubeConfiguration.ts → models/DataCubeConfiguration.ts} +4 -1
- package/src/stores/core/models/DataCubeQuery.ts +41 -0
- package/src/stores/core/models/DataCubeSource.ts +25 -0
- package/src/stores/view/DataCubeInfoState.ts +16 -18
- package/src/stores/view/DataCubeQuerySnapshotManager.ts +5 -5
- package/src/stores/view/DataCubeViewState.ts +40 -13
- package/src/stores/view/editor/DataCubeEditorColumnPropertiesPanelState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorColumnSelectorState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorColumnsPanelState.ts +3 -5
- package/src/stores/view/editor/DataCubeEditorGeneralPropertiesPanelState.ts +1 -11
- package/src/stores/view/editor/DataCubeEditorHorizontalPivotsPanelState.ts +7 -7
- package/src/stores/view/editor/DataCubeEditorMutableConfiguration.ts +8 -1
- package/src/stores/view/editor/DataCubeEditorPanelState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorPivotLayoutPanelState.ts +1 -1
- package/src/stores/view/editor/DataCubeEditorSortsPanelState.ts +3 -5
- package/src/stores/view/editor/DataCubeEditorState.tsx +13 -10
- package/src/stores/view/editor/DataCubeEditorVerticalPivotsPanelState.ts +3 -5
- package/src/stores/view/extend/DataCubeColumnEditorState.tsx +27 -19
- package/src/stores/view/extend/DataCubeExtendManagerState.tsx +17 -13
- package/src/stores/view/filter/DataCubeFilterEditorState.tsx +2 -2
- package/src/stores/view/grid/DataCubeGridClientEngine.ts +47 -42
- package/src/stores/view/grid/DataCubeGridClientExportEngine.ts +1 -1
- package/src/stores/view/grid/DataCubeGridConfigurationBuilder.tsx +6 -6
- package/src/stores/view/grid/DataCubeGridControllerState.ts +11 -9
- package/src/stores/view/grid/DataCubeGridMenuBuilder.tsx +8 -8
- package/src/stores/view/grid/DataCubeGridQueryBuilder.ts +1 -1
- package/src/stores/view/grid/DataCubeGridQuerySnapshotBuilder.ts +3 -5
- package/src/stores/view/grid/DataCubeGridState.ts +4 -4
- package/tsconfig.json +9 -5
- package/lib/stores/core/DataCubeApplicationEngine.d.ts +0 -63
- package/lib/stores/core/DataCubeApplicationEngine.d.ts.map +0 -1
- package/lib/stores/core/DataCubeApplicationEngine.js +0 -94
- package/lib/stores/core/DataCubeApplicationEngine.js.map +0 -1
- package/lib/stores/core/DataCubeConfiguration.d.ts.map +0 -1
- package/lib/stores/core/DataCubeConfiguration.js.map +0 -1
- package/lib/stores/core/DataCubeEngineUtils.d.ts +0 -2
- package/lib/stores/core/DataCubeEngineUtils.d.ts.map +0 -1
- package/lib/stores/core/DataCubeEngineUtils.js +0 -2
- package/lib/stores/core/DataCubeEngineUtils.js.map +0 -1
- package/lib/stores/core/DataCubeQuery.d.ts.map +0 -1
- package/lib/stores/core/DataCubeQuery.js +0 -79
- package/lib/stores/core/DataCubeQuery.js.map +0 -1
- package/src/stores/core/DataCubeApplicationEngine.tsx +0 -200
- package/src/stores/core/DataCubeEngine.ts +0 -327
- package/src/stores/core/DataCubeEngineUtils.ts +0 -0
- package/src/stores/core/DataCubeQuery.ts +0 -130
|
@@ -14,12 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
18
|
-
|
|
19
|
-
V1_Lambda,
|
|
20
|
-
V1_ValueSpecification,
|
|
21
|
-
} from '@finos/legend-graph';
|
|
22
|
-
import type { DataCubeConfiguration } from './DataCubeConfiguration.js';
|
|
17
|
+
import type { V1_AppliedFunction, V1_Lambda } from '@finos/legend-graph';
|
|
18
|
+
import type { DataCubeConfiguration } from './models/DataCubeConfiguration.js';
|
|
23
19
|
import {
|
|
24
20
|
IllegalStateError,
|
|
25
21
|
hashObject,
|
|
@@ -32,13 +28,13 @@ import type {
|
|
|
32
28
|
DataCubeOperationValue,
|
|
33
29
|
DataCubeQuerySortDirection,
|
|
34
30
|
} from './DataCubeQueryEngine.js';
|
|
31
|
+
import type { DataCubeColumn } from './models/DataCubeColumn.js';
|
|
35
32
|
|
|
36
|
-
export type DataCubeQuerySnapshotFilterCondition =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
33
|
+
export type DataCubeQuerySnapshotFilterCondition = DataCubeColumn & {
|
|
34
|
+
value: DataCubeOperationValue | undefined;
|
|
35
|
+
operator: string;
|
|
36
|
+
not?: boolean | undefined;
|
|
37
|
+
};
|
|
42
38
|
|
|
43
39
|
export type DataCubeQuerySnapshotFilter = {
|
|
44
40
|
groupOperator: string;
|
|
@@ -49,41 +45,31 @@ export type DataCubeQuerySnapshotFilter = {
|
|
|
49
45
|
not?: boolean | undefined;
|
|
50
46
|
};
|
|
51
47
|
|
|
52
|
-
export type
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
export type DataCubeQuerySnapshotExtendedColumn = DataCubeColumn & {
|
|
49
|
+
windowFn?: PlainObject<V1_AppliedFunction> | undefined;
|
|
50
|
+
mapFn: PlainObject<V1_Lambda>;
|
|
51
|
+
reduceFn?: PlainObject<V1_Lambda> | undefined;
|
|
55
52
|
};
|
|
56
53
|
|
|
57
|
-
export type
|
|
58
|
-
DataCubeQuerySnapshotColumn & {
|
|
59
|
-
windowFn?: PlainObject<V1_AppliedFunction> | undefined;
|
|
60
|
-
mapFn: PlainObject<V1_Lambda>;
|
|
61
|
-
reduceFn?: PlainObject<V1_Lambda> | undefined;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type DataCubeQuerySnapshotSortColumn = DataCubeQuerySnapshotColumn & {
|
|
54
|
+
export type DataCubeQuerySnapshotSortColumn = DataCubeColumn & {
|
|
65
55
|
direction: DataCubeQuerySortDirection;
|
|
66
56
|
};
|
|
67
57
|
|
|
68
58
|
export type DataCubeQuerySnapshotGroupBy = {
|
|
69
|
-
columns:
|
|
59
|
+
columns: DataCubeColumn[];
|
|
70
60
|
};
|
|
71
61
|
|
|
72
62
|
export type DataCubeQuerySnapshotPivot = {
|
|
73
|
-
columns:
|
|
74
|
-
castColumns:
|
|
63
|
+
columns: DataCubeColumn[];
|
|
64
|
+
castColumns: DataCubeColumn[];
|
|
75
65
|
};
|
|
76
66
|
|
|
77
67
|
export type DataCubeQuerySnapshotData = {
|
|
78
|
-
name: string;
|
|
79
|
-
runtime: string;
|
|
80
|
-
mapping: string | undefined;
|
|
81
|
-
sourceQuery: PlainObject<V1_ValueSpecification>;
|
|
82
68
|
configuration: PlainObject<DataCubeConfiguration>;
|
|
83
|
-
sourceColumns:
|
|
69
|
+
sourceColumns: DataCubeColumn[];
|
|
84
70
|
leafExtendedColumns: DataCubeQuerySnapshotExtendedColumn[];
|
|
85
71
|
filter?: DataCubeQuerySnapshotFilter | undefined;
|
|
86
|
-
selectColumns:
|
|
72
|
+
selectColumns: DataCubeColumn[];
|
|
87
73
|
groupBy?: DataCubeQuerySnapshotGroupBy | undefined;
|
|
88
74
|
pivot?: DataCubeQuerySnapshotPivot | undefined;
|
|
89
75
|
groupExtendedColumns: DataCubeQuerySnapshotExtendedColumn[];
|
|
@@ -93,25 +79,14 @@ export type DataCubeQuerySnapshotData = {
|
|
|
93
79
|
|
|
94
80
|
export class DataCubeQuerySnapshot {
|
|
95
81
|
readonly uuid = uuid();
|
|
96
|
-
readonly timestamp = Date.now();
|
|
97
82
|
readonly data: DataCubeQuerySnapshotData;
|
|
98
83
|
|
|
99
84
|
private _isPatchChange = false;
|
|
100
85
|
private _finalized = false;
|
|
101
86
|
private _hashCode?: string | undefined;
|
|
102
87
|
|
|
103
|
-
private constructor(
|
|
104
|
-
name: string,
|
|
105
|
-
runtime: string,
|
|
106
|
-
mapping: string | undefined,
|
|
107
|
-
sourceQuery: PlainObject<V1_ValueSpecification>,
|
|
108
|
-
configuration: PlainObject<DataCubeConfiguration>,
|
|
109
|
-
) {
|
|
88
|
+
private constructor(configuration: PlainObject<DataCubeConfiguration>) {
|
|
110
89
|
this.data = {
|
|
111
|
-
name,
|
|
112
|
-
runtime,
|
|
113
|
-
mapping,
|
|
114
|
-
sourceQuery,
|
|
115
90
|
configuration,
|
|
116
91
|
sourceColumns: [],
|
|
117
92
|
leafExtendedColumns: [],
|
|
@@ -125,20 +100,8 @@ export class DataCubeQuerySnapshot {
|
|
|
125
100
|
};
|
|
126
101
|
}
|
|
127
102
|
|
|
128
|
-
static create(
|
|
129
|
-
|
|
130
|
-
runtime: string,
|
|
131
|
-
mapping: string | undefined,
|
|
132
|
-
sourceQuery: PlainObject<V1_ValueSpecification>,
|
|
133
|
-
configuration: PlainObject<DataCubeConfiguration>,
|
|
134
|
-
) {
|
|
135
|
-
return new DataCubeQuerySnapshot(
|
|
136
|
-
name,
|
|
137
|
-
runtime,
|
|
138
|
-
mapping,
|
|
139
|
-
sourceQuery,
|
|
140
|
-
configuration,
|
|
141
|
-
);
|
|
103
|
+
static create(configuration: PlainObject<DataCubeConfiguration>) {
|
|
104
|
+
return new DataCubeQuerySnapshot(configuration);
|
|
142
105
|
}
|
|
143
106
|
|
|
144
107
|
/**
|
|
@@ -187,7 +150,7 @@ export class DataCubeQuerySnapshot {
|
|
|
187
150
|
}
|
|
188
151
|
|
|
189
152
|
clone() {
|
|
190
|
-
const clone = new DataCubeQuerySnapshot(
|
|
153
|
+
const clone = new DataCubeQuerySnapshot({});
|
|
191
154
|
(clone.data as Writable<DataCubeQuerySnapshotData>) = JSON.parse(
|
|
192
155
|
JSON.stringify(this.data),
|
|
193
156
|
) as DataCubeQuerySnapshotData;
|
|
@@ -199,9 +162,8 @@ export class DataCubeQuerySnapshot {
|
|
|
199
162
|
* This should rarely be used, and ideally by core engine only.
|
|
200
163
|
*/
|
|
201
164
|
INTERNAL__fullClone() {
|
|
202
|
-
const clone = new DataCubeQuerySnapshot(
|
|
165
|
+
const clone = new DataCubeQuerySnapshot({});
|
|
203
166
|
(clone as Writable<DataCubeQuerySnapshot>).uuid = this.uuid;
|
|
204
|
-
(clone as Writable<DataCubeQuerySnapshot>).timestamp = this.timestamp;
|
|
205
167
|
(clone as Writable<DataCubeQuerySnapshot>).data = JSON.parse(
|
|
206
168
|
JSON.stringify(this.data),
|
|
207
169
|
) as DataCubeQuerySnapshotData;
|
|
@@ -210,30 +172,4 @@ export class DataCubeQuerySnapshot {
|
|
|
210
172
|
clone._hashCode = this._hashCode;
|
|
211
173
|
return clone;
|
|
212
174
|
}
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Only use this if programatic setting of timestamp is needed.
|
|
216
|
-
* e.g. for the first-ever snapshot where we want to sync the timestamp
|
|
217
|
-
* to the timestamp provided by the engine.
|
|
218
|
-
*/
|
|
219
|
-
INTERNAL__setTimestamp(timestamp: number) {
|
|
220
|
-
(this as Writable<DataCubeQuerySnapshot>).timestamp = timestamp;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export function _findCol<T extends DataCubeQuerySnapshotColumn>(
|
|
225
|
-
cols: T[] | undefined,
|
|
226
|
-
name: string,
|
|
227
|
-
): T | undefined {
|
|
228
|
-
return cols?.find((c) => c.name === name);
|
|
229
175
|
}
|
|
230
|
-
|
|
231
|
-
export function _toCol(col: {
|
|
232
|
-
name: string;
|
|
233
|
-
type: string;
|
|
234
|
-
}): DataCubeQuerySnapshotColumn {
|
|
235
|
-
return { name: col.name, type: col.type };
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
export const _sortByColName = (a: { name: string }, b: { name: string }) =>
|
|
239
|
-
a.name.localeCompare(b.name);
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* [CORE]
|
|
19
19
|
*
|
|
20
20
|
* This and its corresponding utilitites are used to build the query snapshot from the
|
|
21
|
-
* executable query. This is needed when we initialize the
|
|
21
|
+
* executable query. This is needed when we initialize the engine by loading a
|
|
22
22
|
* persisted query.
|
|
23
23
|
***************************************************************************************/
|
|
24
24
|
|
|
@@ -27,24 +27,20 @@ import {
|
|
|
27
27
|
V1_CInteger,
|
|
28
28
|
type V1_ColSpec,
|
|
29
29
|
V1_Collection,
|
|
30
|
-
V1_serializeValueSpecification,
|
|
31
30
|
extractElementNameFromPath as _name,
|
|
32
31
|
matchFunctionName,
|
|
33
32
|
type V1_ValueSpecification,
|
|
34
33
|
} from '@finos/legend-graph';
|
|
35
|
-
import type { DataCubeQuery } from '
|
|
36
|
-
import {
|
|
37
|
-
|
|
38
|
-
DataCubeQuerySnapshot,
|
|
39
|
-
type DataCubeQuerySnapshotColumn,
|
|
40
|
-
} from './DataCubeQuerySnapshot.js';
|
|
34
|
+
import type { DataCubeQuery } from './models/DataCubeQuery.js';
|
|
35
|
+
import { DataCubeQuerySnapshot } from './DataCubeQuerySnapshot.js';
|
|
36
|
+
import { _toCol, type DataCubeColumn } from './models/DataCubeColumn.js';
|
|
41
37
|
import { assertType, guaranteeNonNullable } from '@finos/legend-shared';
|
|
42
38
|
import {
|
|
43
39
|
DataCubeQuerySortDirection,
|
|
44
40
|
DataCubeFunction,
|
|
45
41
|
type DataCubeQueryFunctionMap,
|
|
46
42
|
} from './DataCubeQueryEngine.js';
|
|
47
|
-
import { DataCubeConfiguration } from './DataCubeConfiguration.js';
|
|
43
|
+
import { DataCubeConfiguration } from './models/DataCubeConfiguration.js';
|
|
48
44
|
import { buildDefaultConfiguration } from './DataCubeConfigurationBuilder.js';
|
|
49
45
|
import {
|
|
50
46
|
_colSpecArrayParam,
|
|
@@ -52,6 +48,7 @@ import {
|
|
|
52
48
|
_funcMatch,
|
|
53
49
|
_param,
|
|
54
50
|
} from './DataCubeQuerySnapshotBuilderUtils.js';
|
|
51
|
+
import type { DataCubeSource } from './models/DataCubeSource.js';
|
|
55
52
|
|
|
56
53
|
// --------------------------------- BUILDING BLOCKS ---------------------------------
|
|
57
54
|
|
|
@@ -286,7 +283,7 @@ function extractFunctionMap(
|
|
|
286
283
|
*/
|
|
287
284
|
export function validateAndBuildQuerySnapshot(
|
|
288
285
|
partialQuery: V1_ValueSpecification,
|
|
289
|
-
|
|
286
|
+
source: DataCubeSource,
|
|
290
287
|
baseQuery: DataCubeQuery,
|
|
291
288
|
) {
|
|
292
289
|
// --------------------------------- BASE ---------------------------------
|
|
@@ -294,15 +291,9 @@ export function validateAndBuildQuerySnapshot(
|
|
|
294
291
|
// analysis more ergonomic
|
|
295
292
|
|
|
296
293
|
const funcMap = extractFunctionMap(partialQuery);
|
|
297
|
-
const snapshot = DataCubeQuerySnapshot.create(
|
|
298
|
-
baseQuery.name,
|
|
299
|
-
baseQuery.source.runtime,
|
|
300
|
-
baseQuery.source.mapping,
|
|
301
|
-
V1_serializeValueSpecification(sourceQuery, []),
|
|
302
|
-
{},
|
|
303
|
-
);
|
|
294
|
+
const snapshot = DataCubeQuerySnapshot.create({});
|
|
304
295
|
const data = snapshot.data;
|
|
305
|
-
const colsMap = new Map<string,
|
|
296
|
+
const colsMap = new Map<string, DataCubeColumn>();
|
|
306
297
|
const _col = (colSpec: V1_ColSpec) => {
|
|
307
298
|
const column = guaranteeNonNullable(
|
|
308
299
|
colsMap.get(colSpec.name),
|
|
@@ -313,7 +304,7 @@ export function validateAndBuildQuerySnapshot(
|
|
|
313
304
|
|
|
314
305
|
// --------------------------------- SOURCE ---------------------------------
|
|
315
306
|
|
|
316
|
-
data.sourceColumns =
|
|
307
|
+
data.sourceColumns = source.sourceColumns;
|
|
317
308
|
data.sourceColumns.map((col) => colsMap.set(col.name, col));
|
|
318
309
|
|
|
319
310
|
// --------------------------------- LEAF-LEVEL EXTEND ---------------------------------
|
|
@@ -398,7 +389,7 @@ export function validateAndBuildQuerySnapshot(
|
|
|
398
389
|
const configuration = baseQuery.configuration
|
|
399
390
|
? DataCubeConfiguration.serialization.fromJson(baseQuery.configuration)
|
|
400
391
|
: buildDefaultConfiguration([
|
|
401
|
-
...
|
|
392
|
+
...source.sourceColumns,
|
|
402
393
|
...data.leafExtendedColumns,
|
|
403
394
|
...data.groupExtendedColumns,
|
|
404
395
|
]);
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
matchFunctionName,
|
|
24
24
|
type V1_ValueSpecification,
|
|
25
25
|
} from '@finos/legend-graph';
|
|
26
|
-
import { type
|
|
26
|
+
import { type DataCubeColumn } from './models/DataCubeColumn.js';
|
|
27
27
|
import {
|
|
28
28
|
assertTrue,
|
|
29
29
|
assertType,
|
|
@@ -94,8 +94,8 @@ export function _funcMatch(
|
|
|
94
94
|
* prune the expanded paths beyond that point.
|
|
95
95
|
*/
|
|
96
96
|
export function _pruneExpandedPaths(
|
|
97
|
-
prevGroupByCols:
|
|
98
|
-
currentGroupByCols:
|
|
97
|
+
prevGroupByCols: DataCubeColumn[],
|
|
98
|
+
currentGroupByCols: DataCubeColumn[],
|
|
99
99
|
expandedPaths: string[],
|
|
100
100
|
) {
|
|
101
101
|
const length = Math.min(prevGroupByCols.length, currentGroupByCols.length);
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { guaranteeNonNullable } from '@finos/legend-shared';
|
|
18
|
-
import type {
|
|
18
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
19
19
|
import { type V1_ColSpec } from '@finos/legend-graph';
|
|
20
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
20
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
21
21
|
|
|
22
22
|
// --------------------------------- UTILITIES ---------------------------------
|
|
23
23
|
|
|
@@ -39,7 +39,7 @@ export abstract class DataCubeQueryAggregateOperation {
|
|
|
39
39
|
abstract get description(): string;
|
|
40
40
|
abstract get operator(): string;
|
|
41
41
|
|
|
42
|
-
abstract isCompatibleWithColumn(column:
|
|
42
|
+
abstract isCompatibleWithColumn(column: DataCubeColumn): boolean;
|
|
43
43
|
|
|
44
44
|
abstract buildAggregateColumn(
|
|
45
45
|
column: DataCubeColumnConfiguration,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__Average extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__Average extends DataCubeQueryAggre
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.AVERAGE;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [DataCubeColumnDataType.NUMBER]);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__Count extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__Count extends DataCubeQueryAggrega
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.COUNT;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [
|
|
47
47
|
// NOTE: technically all data types are suported,
|
|
48
48
|
// but we can't because we must preserve the type
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__First extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__First extends DataCubeQueryAggrega
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.FIRST;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [
|
|
47
47
|
DataCubeColumnDataType.TEXT,
|
|
48
48
|
DataCubeColumnDataType.NUMBER,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { PRIMITIVE_TYPE } from '@finos/legend-graph';
|
|
19
19
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
20
20
|
import {
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
_property,
|
|
33
33
|
_var,
|
|
34
34
|
} from '../DataCubeQueryBuilderUtils.js';
|
|
35
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
35
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
36
36
|
|
|
37
37
|
export class DataCubeQueryAggregateOperation__JoinStrings extends DataCubeQueryAggregateOperation {
|
|
38
38
|
override get label() {
|
|
@@ -51,7 +51,7 @@ export class DataCubeQueryAggregateOperation__JoinStrings extends DataCubeQueryA
|
|
|
51
51
|
return DataCubeQueryAggregateOperator.JOIN_STRINGS;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
isCompatibleWithColumn(column:
|
|
54
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
55
55
|
return ofDataType(column.type, [
|
|
56
56
|
// NOTE: technically all data types should be suported,
|
|
57
57
|
// i.e. we can use meta::pure::functions::string::makeString
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__Last extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__Last extends DataCubeQueryAggregat
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.LAST;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [
|
|
47
47
|
DataCubeColumnDataType.TEXT,
|
|
48
48
|
DataCubeColumnDataType.NUMBER,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__Max extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__Max extends DataCubeQueryAggregate
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.MAX;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [DataCubeColumnDataType.NUMBER]);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__Min extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__Min extends DataCubeQueryAggregate
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.MIN;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [DataCubeColumnDataType.NUMBER]);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__StdDevPopulation extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__StdDevPopulation extends DataCubeQ
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.STANDARD_DEVIATION_POPULATION;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [DataCubeColumnDataType.NUMBER]);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__StdDevSample extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__StdDevSample extends DataCubeQuery
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.STANDARD_DEVIATION_SAMPLE;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [DataCubeColumnDataType.NUMBER]);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__Sum extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__Sum extends DataCubeQueryAggregate
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.SUM;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [DataCubeColumnDataType.NUMBER]);
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__UniqueValue extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__UniqueValue extends DataCubeQueryA
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.UNIQUE;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [
|
|
47
47
|
DataCubeColumnDataType.TEXT,
|
|
48
48
|
DataCubeColumnDataType.NUMBER,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import type {
|
|
17
|
+
import type { DataCubeColumn } from '../models/DataCubeColumn.js';
|
|
18
18
|
import { DataCubeQueryAggregateOperation } from './DataCubeQueryAggregateOperation.js';
|
|
19
19
|
import {
|
|
20
20
|
DataCubeQueryAggregateOperator,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
ofDataType,
|
|
24
24
|
} from '../DataCubeQueryEngine.js';
|
|
25
25
|
import { _aggCol_basic } from '../DataCubeQueryBuilderUtils.js';
|
|
26
|
-
import type { DataCubeColumnConfiguration } from '../DataCubeConfiguration.js';
|
|
26
|
+
import type { DataCubeColumnConfiguration } from '../models/DataCubeConfiguration.js';
|
|
27
27
|
|
|
28
28
|
export class DataCubeQueryAggregateOperation__VariancePopulation extends DataCubeQueryAggregateOperation {
|
|
29
29
|
override get label() {
|
|
@@ -42,7 +42,7 @@ export class DataCubeQueryAggregateOperation__VariancePopulation extends DataCub
|
|
|
42
42
|
return DataCubeQueryAggregateOperator.VARIANCE_POPULATION;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
isCompatibleWithColumn(column:
|
|
45
|
+
isCompatibleWithColumn(column: DataCubeColumn) {
|
|
46
46
|
return ofDataType(column.type, [DataCubeColumnDataType.NUMBER]);
|
|
47
47
|
}
|
|
48
48
|
|