@finos/legend-query-builder 0.3.1 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/lib/components/QueryBuilder.d.ts.map +1 -1
  2. package/lib/components/QueryBuilder.js +24 -20
  3. package/lib/components/QueryBuilder.js.map +1 -1
  4. package/lib/components/QueryBuilderParametersPanel.d.ts.map +1 -1
  5. package/lib/components/QueryBuilderParametersPanel.js +4 -8
  6. package/lib/components/QueryBuilderParametersPanel.js.map +1 -1
  7. package/lib/components/QueryBuilderPropertyExpressionEditor.d.ts.map +1 -1
  8. package/lib/components/QueryBuilderPropertyExpressionEditor.js +2 -2
  9. package/lib/components/QueryBuilderPropertyExpressionEditor.js.map +1 -1
  10. package/lib/components/QueryBuilderResultPanel.d.ts.map +1 -1
  11. package/lib/components/QueryBuilderResultPanel.js +4 -2
  12. package/lib/components/QueryBuilderResultPanel.js.map +1 -1
  13. package/lib/components/QueryBuilderTextEditor.d.ts.map +1 -1
  14. package/lib/components/QueryBuilderTextEditor.js +4 -4
  15. package/lib/components/QueryBuilderTextEditor.js.map +1 -1
  16. package/lib/components/explorer/QueryBuilderExplorerPanel.d.ts.map +1 -1
  17. package/lib/components/explorer/QueryBuilderExplorerPanel.js +5 -5
  18. package/lib/components/explorer/QueryBuilderExplorerPanel.js.map +1 -1
  19. package/lib/components/explorer/QueryBuilderMilestoningEditor.d.ts.map +1 -1
  20. package/lib/components/explorer/QueryBuilderMilestoningEditor.js +6 -6
  21. package/lib/components/explorer/QueryBuilderMilestoningEditor.js.map +1 -1
  22. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.d.ts.map +1 -1
  23. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js +6 -6
  24. package/lib/components/fetch-structure/QueryBuilderOlapGroupByPanel.js.map +1 -1
  25. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.d.ts.map +1 -1
  26. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js +3 -3
  27. package/lib/components/fetch-structure/QueryBuilderResultModifierPanel.js.map +1 -1
  28. package/lib/components/shared/LambdaEditor.d.ts.map +1 -1
  29. package/lib/components/shared/LambdaEditor.js +3 -3
  30. package/lib/components/shared/LambdaEditor.js.map +1 -1
  31. package/lib/components/shared/LambdaParameterValuesEditor.d.ts.map +1 -1
  32. package/lib/components/shared/LambdaParameterValuesEditor.js +3 -3
  33. package/lib/components/shared/LambdaParameterValuesEditor.js.map +1 -1
  34. package/lib/components/watermark/QueryBuilderWatermark.d.ts +23 -0
  35. package/lib/components/watermark/QueryBuilderWatermark.d.ts.map +1 -0
  36. package/lib/components/watermark/QueryBuilderWatermark.js +67 -0
  37. package/lib/components/watermark/QueryBuilderWatermark.js.map +1 -0
  38. package/lib/graphManager/QueryBuilderHashUtils.d.ts +1 -0
  39. package/lib/graphManager/QueryBuilderHashUtils.d.ts.map +1 -1
  40. package/lib/graphManager/QueryBuilderHashUtils.js +2 -0
  41. package/lib/graphManager/QueryBuilderHashUtils.js.map +1 -1
  42. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts +1 -0
  43. package/lib/graphManager/QueryBuilderSupportedFunctions.d.ts.map +1 -1
  44. package/lib/graphManager/QueryBuilderSupportedFunctions.js +2 -0
  45. package/lib/graphManager/QueryBuilderSupportedFunctions.js.map +1 -1
  46. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.d.ts.map +1 -1
  47. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js +4 -1
  48. package/lib/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.js.map +1 -1
  49. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts +1 -0
  50. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.d.ts.map +1 -1
  51. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js +29 -2
  52. package/lib/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.js.map +1 -1
  53. package/lib/index.css +2 -2
  54. package/lib/index.css.map +1 -1
  55. package/lib/package.json +1 -1
  56. package/lib/stores/QueryBuilderState.d.ts +4 -0
  57. package/lib/stores/QueryBuilderState.d.ts.map +1 -1
  58. package/lib/stores/QueryBuilderState.js +12 -0
  59. package/lib/stores/QueryBuilderState.js.map +1 -1
  60. package/lib/stores/QueryBuilderStateBuilder.d.ts.map +1 -1
  61. package/lib/stores/QueryBuilderStateBuilder.js +12 -1
  62. package/lib/stores/QueryBuilderStateBuilder.js.map +1 -1
  63. package/lib/stores/QueryBuilderValueSpecificationBuilder.d.ts.map +1 -1
  64. package/lib/stores/QueryBuilderValueSpecificationBuilder.js +7 -1
  65. package/lib/stores/QueryBuilderValueSpecificationBuilder.js.map +1 -1
  66. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.d.ts.map +1 -1
  67. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js +2 -1
  68. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.js.map +1 -1
  69. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts +31 -0
  70. package/lib/stores/watermark/QueryBuilderWatermarkState.d.ts.map +1 -0
  71. package/lib/stores/watermark/QueryBuilderWatermarkState.js +69 -0
  72. package/lib/stores/watermark/QueryBuilderWatermarkState.js.map +1 -0
  73. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts +19 -0
  74. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.d.ts.map +1 -0
  75. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js +30 -0
  76. package/lib/stores/watermark/QueryBuilderWatermarkStateBuilder.js.map +1 -0
  77. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts +19 -0
  78. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.d.ts.map +1 -0
  79. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js +30 -0
  80. package/lib/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.js.map +1 -0
  81. package/package.json +4 -4
  82. package/src/components/QueryBuilder.tsx +141 -109
  83. package/src/components/QueryBuilderParametersPanel.tsx +27 -35
  84. package/src/components/QueryBuilderPropertyExpressionEditor.tsx +16 -11
  85. package/src/components/QueryBuilderResultPanel.tsx +18 -0
  86. package/src/components/QueryBuilderTextEditor.tsx +22 -17
  87. package/src/components/explorer/QueryBuilderExplorerPanel.tsx +20 -13
  88. package/src/components/explorer/QueryBuilderMilestoningEditor.tsx +27 -18
  89. package/src/components/fetch-structure/QueryBuilderOlapGroupByPanel.tsx +22 -18
  90. package/src/components/fetch-structure/QueryBuilderResultModifierPanel.tsx +11 -9
  91. package/src/components/shared/LambdaEditor.tsx +20 -17
  92. package/src/components/shared/LambdaParameterValuesEditor.tsx +17 -10
  93. package/src/components/watermark/QueryBuilderWatermark.tsx +185 -0
  94. package/src/graphManager/QueryBuilderHashUtils.ts +3 -0
  95. package/src/graphManager/QueryBuilderSupportedFunctions.ts +2 -0
  96. package/src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts +14 -0
  97. package/src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts +76 -0
  98. package/src/stores/QueryBuilderState.ts +14 -0
  99. package/src/stores/QueryBuilderStateBuilder.ts +17 -1
  100. package/src/stores/QueryBuilderValueSpecificationBuilder.ts +11 -1
  101. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionStateBuilder.ts +2 -1
  102. package/src/stores/watermark/QueryBuilderWatermarkState.ts +114 -0
  103. package/src/stores/watermark/QueryBuilderWatermarkStateBuilder.ts +50 -0
  104. package/src/stores/watermark/QueryBuilderWatermarkValueSpecificationBuilder.ts +46 -0
  105. package/tsconfig.json +4 -0
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2020-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /// <reference types="react" resolution-mode="require"/>
17
+ import type { QueryBuilderState } from '../../stores/QueryBuilderState.js';
18
+ export declare const QueryBuilderWatermarkEditor: ((props: {
19
+ queryBuilderState: QueryBuilderState;
20
+ }) => JSX.Element) & {
21
+ displayName: string;
22
+ };
23
+ //# sourceMappingURL=QueryBuilderWatermark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderWatermark.d.ts","sourceRoot":"","sources":["../../../src/components/watermark/QueryBuilderWatermark.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;;AAuBH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AA8E3E,eAAO,MAAM,2BAA2B,WAC9B;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE;;CAoEjD,CAAC"}
@@ -0,0 +1,67 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /**
3
+ * Copyright (c) 2020-present, Goldman Sachs
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ import { Dialog, PanelDropZone, PanelFormBooleanField, PanelForm, PanelDivider, Modal, ModalBody, ModalFooter, ModalHeader, PanelFormListItems, PanelFormSection, } from '@finos/legend-art';
18
+ import { PRIMITIVE_TYPE } from '@finos/legend-graph';
19
+ import { observer } from 'mobx-react-lite';
20
+ import { useCallback } from 'react';
21
+ import { useDrop } from 'react-dnd';
22
+ import { QUERY_BUILDER_PARAMETER_DND_TYPE, } from '../../stores/QueryBuilderParametersState.js';
23
+ import { VariableExpressionViewer } from '../QueryBuilderParametersPanel.js';
24
+ import { BasicValueSpecificationEditor } from '../shared/BasicValueSpecificationEditor.js';
25
+ const WatermarkValueEditor = observer((props) => {
26
+ const { watermarkValue, watermarkState } = props;
27
+ const graph = watermarkState.queryBuilderState.graphManagerState.graph;
28
+ const handleDrop = useCallback((item) => {
29
+ watermarkState.setValue(item.variable.parameter);
30
+ }, [watermarkState]);
31
+ const [{ isParameterValueDragOver }, dropTargetConnector] = useDrop(() => ({
32
+ accept: [QUERY_BUILDER_PARAMETER_DND_TYPE],
33
+ drop: (item, monitor) => {
34
+ if (!monitor.didDrop() &&
35
+ // Only allows parameters with muliplicity 1 and type string
36
+ watermarkState.isParamaterCompatibleWithWaterMark(item.variable.parameter)) {
37
+ handleDrop(item);
38
+ } // prevent drop event propagation to accomondate for nested DnD
39
+ },
40
+ collect: (monitor) => ({
41
+ isParameterValueDragOver: monitor.isOver({
42
+ shallow: true,
43
+ }),
44
+ }),
45
+ }), [handleDrop]);
46
+ return (_jsx(PanelFormSection, { children: _jsx("div", { className: "query-builder__parameter-editor", children: _jsx(PanelDropZone, { isDragOver: isParameterValueDragOver, dropTargetConnector: dropTargetConnector, children: _jsx(BasicValueSpecificationEditor, { valueSpecification: watermarkValue, setValueSpecification: (val) => {
47
+ watermarkState.setValue(val);
48
+ }, graph: graph, obseverContext: watermarkState.queryBuilderState.observableContext, typeCheckOption: {
49
+ expectedType: graph.getPrimitiveType(PRIMITIVE_TYPE.STRING),
50
+ }, resetValue: () => {
51
+ watermarkState.resetValue();
52
+ } }) }) }) }));
53
+ });
54
+ export const QueryBuilderWatermarkEditor = observer((props) => {
55
+ const { queryBuilderState } = props;
56
+ const watermarkState = queryBuilderState.watermarkState;
57
+ const handleClose = () => {
58
+ watermarkState.setIsEditingWatermark(false);
59
+ };
60
+ const compatibleParameters = queryBuilderState.parametersState.parameterStates.filter((p) => watermarkState.isParamaterCompatibleWithWaterMark(p.parameter));
61
+ return (_jsx(Dialog, { open: Boolean(watermarkState.isEditingWatermark), onClose: handleClose, classes: {
62
+ root: 'editor-modal__root-container',
63
+ container: 'editor-modal__container',
64
+ paper: 'editor-modal__content',
65
+ }, children: _jsxs(Modal, { darkMode: true, className: "editor-modal", children: [_jsx(ModalHeader, { title: "Watermark" }), _jsx(ModalBody, { children: _jsxs(PanelForm, { children: [_jsx(PanelFormBooleanField, { isReadOnly: false, value: watermarkState.value !== undefined, prompt: "Enable watermark", update: () => watermarkState.enableWatermark() }), watermarkState.value && (_jsxs(_Fragment, { children: [_jsx(WatermarkValueEditor, { watermarkState: watermarkState, watermarkValue: watermarkState.value }), _jsx(PanelDivider, {}), _jsxs(PanelFormListItems, { title: "List of available parameters", children: [compatibleParameters.length === 0 && (_jsx(_Fragment, { children: " No available parameters " })), compatibleParameters.map((parameter) => (_jsx(VariableExpressionViewer, { queryBuilderState: queryBuilderState, variableExpressionState: parameter, isReadOnly: true, hideActions: true }, parameter.uuid)))] })] }))] }) }), _jsx(ModalFooter, { children: _jsx("button", { className: "btn modal__footer__close-btn", onClick: handleClose, children: "Done" }) })] }) }));
66
+ });
67
+ //# sourceMappingURL=QueryBuilderWatermark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QueryBuilderWatermark.js","sourceRoot":"","sources":["../../../src/components/watermark/QueryBuilderWatermark.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,MAAM,EACN,aAAa,EACb,qBAAqB,EACrB,SAAS,EACT,YAAY,EACZ,KAAK,EACL,SAAS,EACT,WAAW,EACX,WA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HASH_STRUCTURE {
54
54
  POST_FILTER_OPERATOR_START_WITH = "POST_FILTER_OPERATOR_START_WITH",
55
55
  POST_FILTER_OPERATOR_NOT_START_WITH = "POST_FILTER_OPERATOR_NOT_START_WITH",
56
56
  POST_FILTER_STATE = "POST_FILTER_STATE",
57
+ WATERMARK_STATE = "WATERMARK_STATE",
57
58
  OLAP_GROUPBY_STATE = "OLAP_GROUPBY_STATE",
58
59
  OLAP_GROUPBY_OPERATION_STATE = "OLAP_GROUPBY_OPERATION_STATE",
59
60
  OLAP_GROUPBY_AGG_OPERATION_STATE = "OLAP_GROUPBY_AGG_OPERATION_STATE",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderHashUtils.d.ts","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderHashUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,4BAA4B;IAEtC,gBAAgB,qBAAqB;IAGrC,0BAA0B,+BAA+B;IACzD,wBAAwB,6BAA6B;IACrD,2BAA2B,gCAAgC;IAC3D,iCAAiC,sCAAsC;IACvE,8BAA8B,mCAAmC;IACjE,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,qCAAqC,0CAA0C;IAC/E,iCAAiC,sCAAsC;IACvE,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,iBAAiB,sBAAsB;IACvC,8BAA8B,mCAAmC;IACjE,yBAAyB,8BAA8B;IACvD,kCAAkC,uCAAuC;IACzE,yBAAyB,8BAA8B;IACvD,iBAAiB,sBAAsB;IACvC,gBAAgB,qBAAqB;IAGrC,gCAAgC,qCAAqC;IACrE,qCAAqC,yCAAyC;IAC9E,0CAA0C,+CAA+C;IACzF,2BAA2B,gCAAgC;IAC3D,4BAA4B,iCAAiC;IAC7D,gCAAgC,qCAAqC;IACrE,6BAA6B,kCAAkC;IAC/D,iCAAiC,sCAAsC;IACvE,0BAA0B,+BAA+B;IACzD,8BAA8B,mCAAmC;IACj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,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,iBAAiB,sBAAsB;IACvC,mBAAmB,wBAAwB;IAC3C,qBAAqB,0BAA0B;IAG/C,2BAA2B,gCAAgC;IAC3D,gCAAgC,oCAAoC;IACpE,qCAAqC,0CAA0C;IAC/E,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IACnD,2BAA2B,gCAAgC;IAC3D,wBAAwB,6BAA6B;IACrD,4BAA4B,iCAAiC;IAC7D,qBAAqB,0BAA0B;IAC/C,yBAAyB,8BAA8B;IACvD,4BAA4B,iCAAiC;IAC7D,kCAAkC,uCAAuC;IACzE,kBAAkB,uBAAuB;IACzC,sBAAsB,uBAAuB;IAC7C,wBAAwB,6BAA6B;IACrD,4BAA4B,iCAAiC;IAC7D,yBAAyB,8BAA8B;IACvD,+BAA+B,oCAAoC;IACnE,0BAA0B,+BAA+B;IACzD,8BAA8B,mCAAmC;IACjE,YAAY,iBAAiB;IAG7B,iBAAiB,sBAAsB;IACvC,0BAA0B,+BAA+B;IAGzD,iBAAiB,sBAAsB;IACvC,uBAAuB,4BAA4B;IACnD,mBAAmB,wBAAwB;CAC5C"}
@@ -58,6 +58,8 @@ export var QUERY_BUILDER_HASH_STRUCTURE;
58
58
  QUERY_BUILDER_HASH_STRUCTURE["POST_FILTER_OPERATOR_START_WITH"] = "POST_FILTER_OPERATOR_START_WITH";
59
59
  QUERY_BUILDER_HASH_STRUCTURE["POST_FILTER_OPERATOR_NOT_START_WITH"] = "POST_FILTER_OPERATOR_NOT_START_WITH";
60
60
  QUERY_BUILDER_HASH_STRUCTURE["POST_FILTER_STATE"] = "POST_FILTER_STATE";
61
+ // watermark state
62
+ QUERY_BUILDER_HASH_STRUCTURE["WATERMARK_STATE"] = "WATERMARK_STATE";
61
63
  // OLAPGroup state
62
64
  QUERY_BUILDER_HASH_STRUCTURE["OLAP_GROUPBY_STATE"] = "OLAP_GROUPBY_STATE";
63
65
  QUERY_BUILDER_HASH_STRUCTURE["OLAP_GROUPBY_OPERATION_STATE"] = "OLAP_GROUPBY_OPERATION_STATE";
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderHashUtils.js","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderHashUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,4BA8FX;AA9FD,WAAY,4BAA4B;IACtC,mBAAmB;IACnB,qEAAqC,CAAA;IAErC,mBAAmB;IACnB,yFAAyD,CAAA;IACzD,qFAAqD,CAAA;IACrD,2FAA2D,CAAA;IAC3D,uGAAuE,CAAA;IACvE,iGAAiE,CAAA;IACjE,iFAAiD,CAAA;IACjD,iFAAiD,CAAA;IACjD,+GAA+E,CAAA;IAC/E,uGAAuE,CAAA;IACvE,iFAAiD,CAAA;IACjD,iFAAiD,CAAA;IACjD,uEAAuC,CAAA;IACvC,iGAAiE,CAAA;IACjE,uFAAuD,CAAA;IACvD,yGAAyE,CAAA;IACzE,uFAAuD,CAAA;IACvD,uEAAuC,CAAA;IACvC,qEAAqC,CAAA;IAErC,cAAc;IACd,qGAAqE,CAAA;IACrE,8GAA8E,CAAA;IAC9E,yHAAyF,CAAA;IACzF,2FAA2D,CAAA;IAC3D,6FAA6D,CAAA;IAC7D,qGAAqE,CAAA;IACrE,+FAA+D,CAAA;IAC/D,uGAAuE,CAAA;IACvE,yFAAyD,CAAA;IACzD,iGAAiE,CAAA;IACjE,uGAAuE,CAAA;IACvE,mHAAmF,CAAA;IACnF,mFAAmD,CAAA;IACnD,uFAAuD,CAAA;IACvD,+FAA+D,CAAA;IAC/D,uGAAuE,CAAA;IACvE,iGAAiE,CAAA;IACjE,6GAA6E,CAAA;IAC7E,mGAAmE,CAAA;IACnE,2GAA2E,CAAA;IAC3E,uEAAuC,CAAA;IAEvC,kBAAkB;IAClB,yEAAyC,CAAA;IACzC,6FAA6D,CAAA;IAC7D,qGAAqE,CAAA;IACrE,uFAAuD,CAAA;IACvD,qGAAqE,CAAA;IACrE,yEAAyC,CAAA;IACzC,yFAAyD,CAAA;IACzD,qFAAqD,CAAA;IACrD,qFAAqD,CAAA;IACrD,uEAAuC,CAAA;IACvC,uEAAuC,CAAA;IACvC,uEAAuC,CAAA;IACvC,2EAA2C,CAAA;IAC3C,+EAA+C,CAAA;IAE/C,eAAe;IACf,2FAA2D,CAAA;IAC3D,oGAAoE,CAAA;IACpE,+GAA+E,CAAA;IAC/E,iFAAiD,CAAA;IACjD,mFAAmD,CAAA;IACnD,2FAA2D,CAAA;IAC3D,qFAAqD,CAAA;IACrD,6FAA6D,CAAA;IAC7D,+EAA+C,CAAA;IAC/C,uFAAuD,CAAA;IACvD,6FAA6D,CAAA;IAC7D,yGAAyE,CAAA;IACzE,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,qFAAqD,CAAA;IACrD,6FAA6D,CAAA;IAC7D,uFAAuD,CAAA;IACvD,mGAAmE,CAAA;IACnE,yFAAyD,CAAA;IACzD,iGAAiE,CAAA;IACjE,6DAA6B,CAAA;IAE7B,oBAAoB;IACpB,uEAAuC,CAAA;IACvC,yFAAyD,CAAA;IAEzD,UAAU;IACV,uEAAuC,CAAA;IACvC,mFAAmD,CAAA;IACnD,2EAA2C,CAAA;AAC7C,CAAC,EA9FW,4BAA4B,GAA5B,4BAA4B,KAA5B,4BAA4B,QA8FvC"}
1
+ {"version":3,"file":"QueryBuilderHashUtils.js","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderHashUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,4BAiGX;AAjGD,WAAY,4BAA4B;IACtC,mBAAmB;IACnB,qEAAqC,CAAA;IAErC,mBAAmB;IACnB,yFAAyD,CAAA;IACzD,qFAAqD,CAAA;IACrD,2FAA2D,CAAA;IAC3D,uGAAuE,CAAA;IACvE,iGAAiE,CAAA;IACjE,iFAAiD,CAAA;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AAA;IAC/C,uFAAuD,CAAA;IACvD,6FAA6D,CAAA;IAC7D,yGAAyE,CAAA;IACzE,yEAAyC,CAAA;IACzC,6EAA6C,CAAA;IAC7C,qFAAqD,CAAA;IACrD,6FAA6D,CAAA;IAC7D,uFAAuD,CAAA;IACvD,mGAAmE,CAAA;IACnE,yFAAyD,CAAA;IACzD,iGAAiE,CAAA;IACjE,6DAA6B,CAAA;IAE7B,oBAAoB;IACpB,uEAAuC,CAAA;IACvC,yFAAyD,CAAA;IAEzD,UAAU;IACV,uEAAuC,CAAA;IACvC,mFAAmD,CAAA;IACnD,2EAA2C,CAAA;AAC7C,CAAC,EAjGW,4BAA4B,GAA5B,4BAA4B,KAA5B,4BAA4B,QAiGvC"}
@@ -57,6 +57,7 @@ export declare enum QUERY_BUILDER_SUPPORTED_FUNCTIONS {
57
57
  STD_DEV_SAMPLE = "meta::pure::functions::math::stdDevSample",
58
58
  SUM = "meta::pure::functions::math::sum",
59
59
  UNIQUE_VALUE_ONLY = "meta::pure::functions::collection::uniqueValueOnly",
60
+ WATERMARK = "meta::datalake::functions::forWatermark",
60
61
  OLAP_GROUPBY = "meta::pure::tds::olapGroupBy",
61
62
  OLAP_RANK = "meta::pure::functions::math::olap::rank",
62
63
  OLAP_AVERAGE_RANK = "meta::pure::functions::math::olap::averageRank",
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderSupportedFunctions.d.ts","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iCAAiC;IAC3C,GAAG,wCAAwC;IAC3C,MAAM,8CAA8C;IACpD,MAAM,8CAA8C;IACpD,OAAO,8CAA8C;IACrD,GAAG,wCAAwC;IAC3C,EAAE,uCAAuC;IACzC,IAAI,4CAA4C;IAChD,OAAO,yCAAyC;IAGhD,WAAW,kDAAkD;IAC7D,mBAAmB,yDAAyD;IAC5E,SAAS,iDAAiD;IAG1D,UAAU,4BAA4B;IACtC,OAAO,yBAAyB;IAChC,QAAQ,0BAA0B;IAClC,OAAO,yBAAyB;IAChC,YAAY,8BAA8B;IAC1C,WAAW,6BAA6B;IACxC,YAAY,6BAA6B;IACzC,QAAQ,0BAA0B;IAClC,QAAQ,0BAA0B;IAClC,QAAQ,0BAA0B;IAGlC,QAAQ,4CAA4C;IACpD,SAAS,4CAA4C;IACrD,KAAK,0CAA0C;IAC/C,YAAY,oDAAoD;IAChE,kBAAkB,yDAAyD;IAC3E,EAAE,0CAA0C;IAC5C,QAAQ,+CAA+C;IACvD,SAAS,iDAAiD;IAC1D,eAAe,sDAAsD;IACrE,WAAW,8CAA8C;IAEzD,OAAO,yCAAyC;IAChD,KAAK,6CAA6C;IAClD,YAAY,+CAA+C;IAC3D,QAAQ,gDAAgD;IACxD,QAAQ,qCAAqC;IAC7C,QAAQ,qCAAqC;IAC7C,GAAG,qCAAqC;IACxC,GAAG,qCAAqC;IACxC,kBAAkB,kDAAkD;IACpE,cAAc,8CAA8C;IAC5D,GAAG,qCAAqC;IACxC,iBAAiB,uDAAuD;IAExE,YAAY,iCAAiC;IAC7C,SAAS,4CAA4C;IACrD,iBAAiB,mDAAmD;IACpE,eAAe,iDAAiD;IAChE,eAAe,iDAAiD;CACjE"}
1
+ {"version":3,"file":"QueryBuilderSupportedFunctions.d.ts","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,oBAAY,iCAAiC;IAC3C,GAAG,wCAAwC;IAC3C,MAAM,8CAA8C;IACpD,MAAM,8CAA8C;IACpD,OAAO,8CAA8C;IACrD,GAAG,wCAAwC;IAC3C,EAAE,uCAAuC;IACzC,IAAI,4CAA4C;IAChD,OAAO,yCAAyC;IAGhD,WAAW,kDAAkD;IAC7D,mBAAmB,yDAAyD;IAC5E,SAAS,iDAAiD;IAG1D,UAAU,4BAA4B;IACtC,OAAO,yBAAyB;IAChC,QAAQ,0BAA0B;IAClC,OAAO,yBAAyB;IAChC,YAAY,8BAA8B;IAC1C,WAAW,6BAA6B;IACxC,YAAY,6BAA6B;IACzC,QAAQ,0BAA0B;IAClC,QAAQ,0BAA0B;IAClC,QAAQ,0BAA0B;IAGlC,QAAQ,4CAA4C;IACpD,SAAS,4CAA4C;IACrD,KAAK,0CAA0C;IAC/C,YAAY,oDAAoD;IAChE,kBAAkB,yDAAyD;IAC3E,EAAE,0CAA0C;IAC5C,QAAQ,+CAA+C;IACvD,SAAS,iDAAiD;IAC1D,eAAe,sDAAsD;IACrE,WAAW,8CAA8C;IAEzD,OAAO,yCAAyC;IAChD,KAAK,6CAA6C;IAClD,YAAY,+CAA+C;IAC3D,QAAQ,gDAAgD;IACxD,QAAQ,qCAAqC;IAC7C,QAAQ,qCAAqC;IAC7C,GAAG,qCAAqC;IACxC,GAAG,qCAAqC;IACxC,kBAAkB,kDAAkD;IACpE,cAAc,8CAA8C;IAC5D,GAAG,qCAAqC;IACxC,iBAAiB,uDAAuD;IAExE,SAAS,4CAA4C;IAErD,YAAY,iCAAiC;IAC7C,SAAS,4CAA4C;IACrD,iBAAiB,mDAAmD;IACpE,eAAe,iDAAiD;IAChE,eAAe,iDAAiD;CACjE"}
@@ -62,6 +62,8 @@ export var QUERY_BUILDER_SUPPORTED_FUNCTIONS;
62
62
  QUERY_BUILDER_SUPPORTED_FUNCTIONS["STD_DEV_SAMPLE"] = "meta::pure::functions::math::stdDevSample";
63
63
  QUERY_BUILDER_SUPPORTED_FUNCTIONS["SUM"] = "meta::pure::functions::math::sum";
64
64
  QUERY_BUILDER_SUPPORTED_FUNCTIONS["UNIQUE_VALUE_ONLY"] = "meta::pure::functions::collection::uniqueValueOnly";
65
+ // watermark
66
+ QUERY_BUILDER_SUPPORTED_FUNCTIONS["WATERMARK"] = "meta::datalake::functions::forWatermark";
65
67
  // OLAP
66
68
  QUERY_BUILDER_SUPPORTED_FUNCTIONS["OLAP_GROUPBY"] = "meta::pure::tds::olapGroupBy";
67
69
  QUERY_BUILDER_SUPPORTED_FUNCTIONS["OLAP_RANK"] = "meta::pure::functions::math::olap::rank";
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilderSupportedFunctions.js","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iCAyDX;AAzDD,WAAY,iCAAiC;IAC3C,gFAA2C,CAAA;IAC3C,yFAAoD,CAAA;IACpD,yFAAoD,CAAA;IACpD,0FAAqD,CAAA;IACrD,gFAA2C,CAAA;IAC3C,8EAAyC,CAAA;IACzC,qFAAgD,CAAA;IAChD,qFAAgD,CAAA;IAEhD,cAAc;IACd,kGAA6D,CAAA;IAC7D,iHAA4E,CAAA;IAC5E,+FAA0D,CAAA;IAE1D,MAAM;IACN,2EAAsC,CAAA;IACtC,qEAAgC,CAAA;IAChC,uEAAkC,CAAA;IAClC,qEAAgC,CAAA;IAChC,+EAA0C,CAAA;IAC1C,6EAAwC,CAAA;IACxC,8EAAyC,CAAA;IACzC,uEAAkC,CAAA;IAClC,uEAAkC,CAAA;IAClC,uEAAkC,CAAA;IAElC,SAAS;IACT,yFAAoD,CAAA;IACpD,0FAAqD,CAAA;IACrD,oFAA+C,CAAA;IAC/C,qGAAgE,CAAA;IAChE,gHAA2E,CAAA;IAC3E,iFAA4C,CAAA;IAC5C,4FAAuD,CAAA;IACvD,+FAA0D,CAAA;IAC1D,0GAAqE,CAAA;IACrE,8FAAyD,CAAA;IACzD,cAAc;IACd,qFAAgD,CAAA;IAChD,uFAAkD,CAAA;IAClD,gGAA2D,CAAA;IAC3D,6FAAwD,CAAA;IACxD,kFAA6C,CAAA;IAC7C,kFAA6C,CAAA;IAC7C,6EAAwC,CAAA;IACxC,6EAAwC,CAAA;IACxC,yGAAoE,CAAA;IACpE,iGAA4D,CAAA;IAC5D,6EAAwC,CAAA;IACxC,6GAAwE,CAAA;IACxE,OAAO;IACP,kFAA6C,CAAA;IAC7C,0FAAqD,CAAA;IACrD,yGAAoE,CAAA;IACpE,qGAAgE,CAAA;IAChE,qGAAgE,CAAA;AAClE,CAAC,EAzDW,iCAAiC,GAAjC,iCAAiC,KAAjC,iCAAiC,QAyD5C"}
1
+ {"version":3,"file":"QueryBuilderSupportedFunctions.js","sourceRoot":"","sources":["../../src/graphManager/QueryBuilderSupportedFunctions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAN,IAAY,iCA2DX;AA3DD,WAAY,iCAAiC;IAC3C,gFAA2C,CAAA;IAC3C,yFAAoD,CAAA;IACpD,yFAAoD,CAAA;IACpD,0FAAqD,CAAA;IACrD,gFAA2C,CAAA;IAC3C,8EAAyC,CAAA;IACzC,qFAAgD,CAAA;IAChD,qFAAgD,CAAA;IAEhD,cAAc;IACd,kGAA6D,CAAA;IAC7D,iHAA4E,CAAA;IAC5E,+FAA0D,CAAA;IAE1D,MAAM;IACN,2EAAsC,CAAA;IACtC,qEAAgC,CAAA;IAChC,uEAAkC,CAAA;IAClC,qEAAgC,CAAA;IAChC,+EAA0C,CAAA;IAC1C,6EAAwC,CAAA;IACxC,8EAAyC,CAAA;IACzC,uEAAkC,CAAA;IAClC,uEAAkC,CAAA;IAClC,uEAAkC,CAAA;IAElC,SAAS;IACT,yFAAoD,CAAA;IACpD,0FAAqD,CAAA;IACrD,oFAA+C,CAAA;IAC/C,qGAAgE,CAAA;IAChE,gHAA2E,CAAA;IAC3E,iFAA4C,CAAA;IAC5C,4FAAuD,CAAA;IACvD,+FAA0D,CAAA;IAC1D,0GAAqE,CAAA;IACrE,8FAAyD,CAAA;IACzD,cAAc;IACd,qFAAgD,CAAA;IAChD,uFAAkD,CAAA;IAClD,gGAA2D,CAAA;IAC3D,6FAAwD,CAAA;IACxD,kFAA6C,CAAA;IAC7C,kFAA6C,CAAA;IAC7C,6EAAwC,CAAA;IACxC,6EAAwC,CAAA;IACxC,yGAAoE,CAAA;IACpE,iGAA4D,CAAA;IAC5D,6EAAwC,CAAA;IACxC,6GAAwE,CAAA;IACxE,YAAY;IACZ,0FAAqD,CAAA;IACrD,OAAO;IACP,kFAA6C,CAAA;IAC7C,0FAAqD,CAAA;IACrD,yGAAoE,CAAA;IACpE,qGAAgE,CAAA;IAChE,qGAAgE,CAAA;AAClE,CAAC,EA3DW,iCAAiC,GAAjC,iCAAiC,KAAjC,iCAAiC,QA2D5C"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilder_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH,OAAO,EAGL,KAAK,4BAA4B,EAIjC,KAAK,iCAAiC,EACtC,2BAA2B,EAK5B,MAAM,qBAAqB,CAAC;AAG7B,qBAAa,wCAAyC,SAAQ,2BAA2B;;IAQ9E,qCAAqC,IAAI,4BAA4B,EAAE;IA6GvE,0CAA0C,IAAI,iCAAiC,EAAE;CAqB3F"}
1
+ {"version":3,"file":"QueryBuilder_PureProtocolProcessorPlugin.d.ts","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAaH,OAAO,EAGL,KAAK,4BAA4B,EAIjC,KAAK,iCAAiC,EACtC,2BAA2B,EAK5B,MAAM,qBAAqB,CAAC;AAG7B,qBAAa,wCAAyC,SAAQ,2BAA2B;;IAQ9E,qCAAqC,IAAI,4BAA4B,EAAE;IA0HvE,0CAA0C,IAAI,iCAAiC,EAAE;CAqB3F"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import packageJson from '../../../../package.json';
17
- import { V1_buildExistsFunctionExpression, V1_buildFilterFunctionExpression, V1_buildGetAllFunctionExpression, V1_buildGroupByFunctionExpression, V1_buildOlapGroupByFunctionExpression, V1_buildProjectFunctionExpression, V1_buildSubTypePropertyExpressionTypeInference, } from './v1/V1_QueryValueSpecificationBuilderHelper.js';
17
+ import { V1_buildExistsFunctionExpression, V1_buildFilterFunctionExpression, V1_buildGetAllFunctionExpression, V1_buildGroupByFunctionExpression, V1_buildOlapGroupByFunctionExpression, V1_buildProjectFunctionExpression, V1_buildSubTypePropertyExpressionTypeInference, V1_buildWatermarkFunctionExpression, } from './v1/V1_QueryValueSpecificationBuilderHelper.js';
18
18
  import { PureProtocolProcessorPlugin, matchFunctionName, SimpleFunctionExpression, extractElementNameFromPath, V1_buildGenericFunctionExpression, } from '@finos/legend-graph';
19
19
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../QueryBuilderSupportedFunctions.js';
20
20
  export class QueryBuilder_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin {
@@ -36,6 +36,9 @@ export class QueryBuilder_PureProtocolProcessorPlugin extends PureProtocolProces
36
36
  else if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.EXISTS)) {
37
37
  return V1_buildExistsFunctionExpression(functionName, parameters, openVariables, compileContext, processingContext);
38
38
  }
39
+ else if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.WATERMARK)) {
40
+ return V1_buildWatermarkFunctionExpression(functionName, parameters, openVariables, compileContext, processingContext);
41
+ }
39
42
  else if (matchFunctionName(functionName, QUERY_BUILDER_SUPPORTED_FUNCTIONS.TDS_PROJECT)) {
40
43
  return V1_buildProjectFunctionExpression(functionName, parameters, openVariables, compileContext, processingContext);
41
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilder_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EACL,gCAAg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iB,CAClB,CAAC;iBACH;qBAAM,IACL,iBAAiB,CACf,YAAY,EACZ,iCAAiC,CAAC,YAAY,CAC/C,EACD;oBACA,OAAO,iCAAiC,CACtC,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,CAClB,CAAC;iBACH;qBAAM,IACL,iBAAiB,CACf,YAAY,EACZ,iCAAiC,CAAC,YAAY,CAC/C,EACD;oBACA,OAAO,qCAAqC,CAC1C,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,CAClB,CAAC;iBACH;qBAAM,IACL,iBAAiB,CACf,YAAY,EACZ,MAAM,CAAC,MAAM,CAAC,iCAAiC,CAAC,CACjD,EACD;oBACA,qFAAqF;oBACrF,6FAA6F;oBAC7F,kDAAkD;oBAClD,OAAO,iCAAiC,CACtC,YAAY,EACZ,UAAU,EACV,aAAa,EACb,cAAc,EACd,iBAAiB,CAClB,CAAC;iBACH;gBACD,OAAO,SAAS,CAAC;YACnB,CAAC;SACF,CAAC;IACJ,CAAC;IAEQ,0CAA0C;QACjD,OAAO;YACL,CAAC,gBAAgD,EAAoB,EAAE;gBACrE,IAAI,YAAY,GACd,gBAAgB,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC;gBAC/C,IACE,gBAAgB,YAAY,wBAAwB;oBACpD,iBAAiB,CACf,gBAAgB,CAAC,YAAY,EAC7B,0BAA0B,CACxB,iCAAiC,CAAC,OAAO,CAC1C,CACF,EACD;oBACA,YAAY;wBACV,8CAA8C,CAAC,gBAAgB,CAAC,CAAC;iBACpE;gBACD,OAAO,YAAY,CAAC;YACtB,CAAC;SACF,CAAC;IACJ,CAAC;CACF"}
1
+ {"version":3,"file":"QueryBuilder_PureProtocolProcessorPlugin.js","sourceRoot":"","sources":["../../../../src/graphManager/protocol/pure/QueryBuilder_PureProtocolProcessorPlugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,WAAW,MAAM,0BAA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F,CAAC;IACJ,CAAC;CACF"}
@@ -19,6 +19,7 @@ export declare const V1_buildExistsFunctionExpression: (functionName: string, pa
19
19
  export declare const V1_buildFilterFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => [SimpleFunctionExpression, ValueSpecification[]];
20
20
  export declare const V1_buildProjectFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => [SimpleFunctionExpression, ValueSpecification[]];
21
21
  export declare const V1_buildGroupByFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => [SimpleFunctionExpression, ValueSpecification[]];
22
+ export declare const V1_buildWatermarkFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => [SimpleFunctionExpression, ValueSpecification[]] | undefined;
22
23
  export declare const V1_buildOlapGroupByFunctionExpression: (functionName: string, parameters: V1_ValueSpecification[], openVariables: string[], compileContext: V1_GraphBuilderContext, processingContext: V1_ProcessingContext) => [SimpleFunctionExpression, ValueSpecification[]] | undefined;
23
24
  export declare const V1_buildSubTypePropertyExpressionTypeInference: (inferredVariable: SimpleFunctionExpression) => Type | undefined;
24
25
  //# sourceMappingURL=V1_QueryValueSpecificationBuilderHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"V1_QueryValueSpecificationBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,IAAI,EAqBV,MAAM,qBAAqB,CAAC;AA6I7B,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAkBjD,CAAC;AAEF,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAqDjD,CAAC;AAEF,eAAO,MAAM,gCAAgC,iBAC7B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAoDjD,CAAC;AAEF,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAuFjD,CAAC;AAEF,eAAO,MAAM,iCAAiC,iBAC9B,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAkIjD,CAAC;AAEF,eAAO,MAAM,qCAAqC,iBAClC,MAAM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAAC,GAAG,SAyHrD,CAAC;AAEF,eAAO,MAAM,8CAA8C,qBACvC,wBAAwB,KACzC,IAAI,GAAG,SAGwB,CAAC"}
1
+ {"version":3,"file":"V1_QueryValueSpecificationBuilderHelper.d.ts","sourceRoot":"","sources":["../../../../../src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts"],"names":[],"m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AM,cACR,qBAAqB,EAAE,iBACpB,MAAM,EAAE,kBACP,sBAAsB,qBACnB,oBAAoB,KACtC,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAAC,GAAG,SAyHrD,CAAC;AAEF,eAAO,MAAM,8CAA8C,qBACvC,wBAAwB,KACzC,IAAI,GAAG,SAGwB,CAAC"}
@@ -13,8 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { assertNonNullable, assertTrue, assertType, filterByType, guaranteeType, returnUndefOnError, } from '@finos/legend-shared';
17
- import { V1_buildBaseSimpleFunctionExpression, V1_buildGenericFunctionExpression, extractElementNameFromPath, V1_AppliedProperty, CollectionInstanceValue, INTERNAL__UnknownValueSpecification, V1_Variable, V1_serializeValueSpecification, GenericType, GenericTypeExplicitReference, matchFunctionName, InstanceValue, V1_AppliedFunction, V1_Collection, V1_Lambda, V1_ValueSpecificationBuilder, AbstractPropertyExpression, TYPICAL_MULTIPLICITY_TYPE, VariableExpression, CORE_PURE_PATH, } from '@finos/legend-graph';
16
+ import { assertNonNullable, assertTrue, assertType, filterByType, guaranteeNonNullable, guaranteeType, returnUndefOnError, } from '@finos/legend-shared';
17
+ import { V1_buildBaseSimpleFunctionExpression, V1_buildGenericFunctionExpression, extractElementNameFromPath, V1_AppliedProperty, CollectionInstanceValue, INTERNAL__UnknownValueSpecification, V1_Variable, V1_serializeValueSpecification, GenericType, GenericTypeExplicitReference, matchFunctionName, InstanceValue, V1_AppliedFunction, V1_Collection, V1_Lambda, V1_ValueSpecificationBuilder, AbstractPropertyExpression, TYPICAL_MULTIPLICITY_TYPE, VariableExpression, CORE_PURE_PATH, PRIMITIVE_TYPE, } from '@finos/legend-graph';
18
18
  import { QUERY_BUILDER_SUPPORTED_FUNCTIONS } from '../../../QueryBuilderSupportedFunctions.js';
19
19
  const buildProjectionColumnLambda = (valueSpecification, openVariables, compileContext, processingContext) => {
20
20
  assertType(valueSpecification, V1_Lambda, `Can't build projection column: only support lambda`);
@@ -204,6 +204,33 @@ export const V1_buildGroupByFunctionExpression = (functionName, parameters, open
204
204
  expression.genericType = GenericTypeExplicitReference.create(new GenericType(compileContext.resolveType(CORE_PURE_PATH.TDS_ROW).value));
205
205
  return [expression, processedParams];
206
206
  };
207
+ export const V1_buildWatermarkFunctionExpression = (functionName, parameters, openVariables, compileContext, processingContext) => {
208
+ assertTrue(parameters.length === 2, `Can't build forWatermark() expression: forWatermark() expects 1 argument`);
209
+ const precedingExpression = parameters[0].accept_ValueSpecificationVisitor(new V1_ValueSpecificationBuilder(compileContext, processingContext, openVariables));
210
+ assertNonNullable(precedingExpression.genericType, `Can't build forWatermark() expression: preceding expression return type is missing`);
211
+ const lambda = parameters[1];
212
+ if (lambda instanceof V1_Lambda) {
213
+ lambda.parameters.forEach((variable) => {
214
+ if (variable.name && !variable.class) {
215
+ const variableExpression = new VariableExpression(variable.name, precedingExpression.multiplicity);
216
+ variableExpression.genericType = precedingExpression.genericType;
217
+ processingContext.addInferredVariables(variable.name, variableExpression);
218
+ }
219
+ });
220
+ }
221
+ const processedParams = [
222
+ precedingExpression,
223
+ parameters[1].accept_ValueSpecificationVisitor(new V1_ValueSpecificationBuilder(compileContext, processingContext, openVariables)),
224
+ ];
225
+ const watermarkValueParam = guaranteeNonNullable(processedParams[1]);
226
+ const watermarkValueParamType = watermarkValueParam.genericType?.value.rawType;
227
+ assertTrue(compileContext.graph.getPrimitiveType(PRIMITIVE_TYPE.STRING) ===
228
+ watermarkValueParamType, "Can't build forWatermark() expression: watermark parameter is expected to be of type string.");
229
+ const expression = V1_buildBaseSimpleFunctionExpression(processedParams, functionName, compileContext);
230
+ expression.genericType = precedingExpression.genericType;
231
+ expression.multiplicity = precedingExpression.multiplicity;
232
+ return [expression, processedParams];
233
+ };
207
234
  export const V1_buildOlapGroupByFunctionExpression = (functionName, parameters, openVariables, compileContext, processingContext) => {
208
235
  const processedParams = [];
209
236
  assertTrue(parameters.length === 5 || parameters.length === 4, `Can't build olapGroupBy() expression: olapGroupBy() expects 4 or 5 arguments`);
@@ -1 +1 @@
1
- {"version":3,"file":"V1_QueryValueSpecificationBuilderHelper.js","sourceRoot":"","sources":["../../../../../src/graphManager/protocol/pure/v1/V1_QueryValueSpecificationBuilderHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,UAAU,EACV,YAAY,EACZ,aAAa,EACb,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAOL,oCAAoC,EACpC,iCAAiC,EACjC,0BAA0B,EAC1B,kBAAkB,EAClB,uBAAuB,EACvB,mCAAmC,EACnC,WAAW,EACX,8BAA8B,EAC9B,WAAW,EACX,4BAA4B,EAC5B,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,4BAA4B,EAC5B,0BAA0B,EAC1B,yBAAyB,EACzB,kBAAkB,EAClB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,4CAA4C,CAAC;AAE/F,MAAM,2BAA2B,GAAG,CAClC,kBAAyC,EACzC,aAAuB,EACvB,cAAsC,EACtC,iBAAuC,EACnB,EAAE;IACtB,UAAU,CACR,kBAAkB,EAClB,SAAS,EACT,oDAAoD,CACrD,CAAC;IAEF,mBAAmB;IACnB,UAAU,CACR,kBAAkB,CAAC,UAAU,CAAC,MAAM,KAAK,CAAC,EAC1C,qEAAqE,CACtE,CAAC;IACF,MAAM,qBAAqB,GAAG,aAAa,CACzC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC,EAChC,WAAW,EACX,qEAAqE,CACtE,CAAC;IAEF,cAAc;IACd,UAAU,CACR,kBAAkB,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EACpC,2EAA2E,CAC5E,CAAC;IACF,IAAI,yBAAyB,GAA0B,kBAAkB;SACtE,IAAI,CAAC,CAAC,CAA0B,CAA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,oBAAoB,CAAC,YAAY,CAClC,CAAC;YACF,kBAAkB,CAAC,WAAW,GAAG,oBAAoB,CAAC,WAAW,CAAC;YAClE,iBAAiB,CAAC,oBAAoB,CAAC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAAC;SAC3E;IACH,CAAC,CAAC,CAAC;IACH,MAAM,aAAa,GACjB,eACD,CAAC,gCAAgC,CAChC,IAAI,4BAA4B,CAC9B,cAAc,EACd,iBAAiB,EACjB,aAAa,CACd,CACF,CAAC;IACF,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACpC,UAAU,EAAE,CAAC;IAEb,mBAAmB;IACnB,MAAM,cAAc,GAClB,UAAU,CAAC,UAAU,CACtB,CAAC,gCAAgC,CAChC,IAAI,4BAA4B,CAC9B,cAAc,EACd,iBAAiB,EACjB,aAAa,CACd,CACF,CAAC;IACF,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACrC,UAAU,EAAE,CAAC;IAEb,yBAAyB;IACzB,MAAM,UAAU,GAAG,oCAAoC,CACrD,eAAe,EACf,YAAY,EACZ,cAAc,CACf,CAAC;IACF,UAAU,CAAC,WAAW,GAAG,4BAA4B,CAAC,MAAM,CAC1D,IAAI,WAAW,CAAC,cAAc,CAAC,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAC1E,CAAC;IACF,OAAO,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;AACvC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAC5D,gBAA0C,EACxB,EAAE,CACpB,gBAAgB,CAAC,gBAAgB,CAAC,MAAM,CACtC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,YAAY,aAAa,CAC1C,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC"}
1
+ {"version":3,"file":"V1_QueryValueSpecificationBuilderHelper.js","sourceRoot":"","sources":["../../../../../src/graphManager/protoc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