Commit f728bd6
authored
fix(firestore): Imropve improper pipeline aliases (googleapis#16651)
Currently, AliasedExpressions are treated like regular expressions. You
can execute additional expressions off of them
(`a.as_("number").add(5)`), or chain them
(`a.as_("first").as_("second")`). But the backend doesn't actually
support aliases being used in this way
This PR raises an exception if an alias is used in a context it doesn't
support
Go version: googleapis/google-cloud-go#144401 parent cde1c0f commit f728bd6Copy full SHA for f728bd6
4 files changed
+86-7Lines changed: 86 additions & 7 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-cloud-firestore
- google/cloud/firestore_v1
- tests
- system
- pipeline_e2e
- unit/v1
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-cloud-firestore/google/cloud/firestore_v1/pipeline_expressions.py
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/google/cloud/firestore_v1/pipeline_expressions.py+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
75 | 80 | |
76 | 81 | |
77 | 82 | |
| ||
113 | 118 | |
114 | 119 | |
115 | 120 | |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
116 | 125 | |
117 | 126 | |
118 | 127 | |
| ||
128 | 137 | |
129 | 138 | |
130 | 139 | |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
131 | 144 | |
132 | 145 | |
133 | 146 | |
| ||
2715 | 2728 | |
2716 | 2729 | |
2717 | 2730 | |
| 2731 | + |
| 2732 | + |
2718 | 2733 | |
| 2734 | + |
| 2735 | + |
| 2736 | + |
| 2737 | + |
2719 | 2738 | |
2720 | 2739 | |
2721 | 2740 | |
| 2741 | + |
| 2742 | + |
| 2743 | + |
| 2744 | + |
| 2745 | + |
2722 | 2746 | |
2723 | 2747 | |
2724 | 2748 | |
|
Collapse file
packages/google-cloud-firestore/tests/system/pipeline_e2e/general.yaml
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/tests/system/pipeline_e2e/general.yaml+39Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
896 | 896 | |
897 | 897 | |
898 | 898 | |
| 899 | + |
| 900 | + |
| 901 | + |
| 902 | + |
| 903 | + |
| 904 | + |
| 905 | + |
| 906 | + |
| 907 | + |
| 908 | + |
| 909 | + |
| 910 | + |
| 911 | + |
| 912 | + |
| 913 | + |
| 914 | + |
| 915 | + |
| 916 | + |
| 917 | + |
| 918 | + |
| 919 | + |
| 920 | + |
| 921 | + |
| 922 | + |
| 923 | + |
| 924 | + |
| 925 | + |
| 926 | + |
| 927 | + |
| 928 | + |
| 929 | + |
| 930 | + |
| 931 | + |
| 932 | + |
| 933 | + |
| 934 | + |
| 935 | + |
| 936 | + |
| 937 | + |
Collapse file
packages/google-cloud-firestore/tests/system/test_pipeline_acceptance.py
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/tests/system/test_pipeline_acceptance.py+5-7Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
24 | 24 | |
25 | 25 | |
26 | 26 | |
27 | | - |
28 | 27 | |
29 | 28 | |
30 | 29 | |
| ||
124 | 123 | |
125 | 124 | |
126 | 125 | |
127 | | - |
128 | | - |
129 | | - |
| 126 | + |
| 127 | + |
| 128 | + |
130 | 129 | |
131 | 130 | |
132 | 131 | |
| ||
215 | 214 | |
216 | 215 | |
217 | 216 | |
218 | | - |
219 | | - |
220 | | - |
| 217 | + |
| 218 | + |
221 | 219 | |
222 | 220 | |
223 | 221 | |
|
Collapse file
packages/google-cloud-firestore/tests/unit/v1/test_pipeline_expressions.py
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/tests/unit/v1/test_pipeline_expressions.py+18Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
260 | 260 | |
261 | 261 | |
262 | 262 | |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
| 268 | + |
| 269 | + |
| 270 | + |
| 271 | + |
| 272 | + |
| 273 | + |
| 274 | + |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
263 | 281 | |
264 | 282 | |
265 | 283 | |
|
0 commit comments