Commit d771742
authored
fix: improve pipeline create_from (#1158)
Improves Query to Pipeline logic:
- add support for `cursor` and `limit_to_last`
- apply fewer `exists` clauses, so pipelines give the same results as
matching RunQuery statements1 parent cdec6a4 commit d771742Copy full SHA for d771742
7 files changed
+387-63Lines changed: 387 additions & 63 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/google-cloud-firestore
- google/cloud/firestore_v1
- tests/unit/v1
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/google-cloud-firestore/google/cloud/firestore_v1/base_aggregation.py
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/google/cloud/firestore_v1/base_aggregation.py-4Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
361 | 361 | |
362 | 362 | |
363 | 363 | |
364 | | - |
365 | | - |
366 | 364 | |
367 | 365 | |
368 | | - |
369 | | - |
370 | 366 | |
371 | 367 | |
372 | 368 | |
|
Collapse file
packages/google-cloud-firestore/google/cloud/firestore_v1/base_collection.py
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/google/cloud/firestore_v1/base_collection.py-4Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
608 | 608 | |
609 | 609 | |
610 | 610 | |
611 | | - |
612 | | - |
613 | 611 | |
614 | 612 | |
615 | | - |
616 | | - |
617 | 613 | |
618 | 614 | |
619 | 615 | |
|
Collapse file
packages/google-cloud-firestore/google/cloud/firestore_v1/base_query.py
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/google/cloud/firestore_v1/base_query.py+136-33Lines changed: 136 additions & 33 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1134 | 1134 | |
1135 | 1135 | |
1136 | 1136 | |
1137 | | - |
1138 | | - |
1139 | 1137 | |
1140 | 1138 | |
1141 | | - |
1142 | | - |
1143 | 1139 | |
1144 | 1140 | |
1145 | 1141 | |
| ||
1161 | 1157 | |
1162 | 1158 | |
1163 | 1159 | |
1164 | | - |
1165 | | - |
1166 | | - |
1167 | | - |
1168 | | - |
1169 | | - |
1170 | | - |
1171 | | - |
1172 | | - |
1173 | | - |
1174 | | - |
1175 | | - |
1176 | | - |
1177 | 1160 | |
1178 | | - |
1179 | | - |
1180 | | - |
1181 | | - |
1182 | | - |
| 1161 | + |
| 1162 | + |
| 1163 | + |
| 1164 | + |
| 1165 | + |
| 1166 | + |
| 1167 | + |
| 1168 | + |
| 1169 | + |
| 1170 | + |
| 1171 | + |
| 1172 | + |
| 1173 | + |
| 1174 | + |
| 1175 | + |
| 1176 | + |
| 1177 | + |
| 1178 | + |
| 1179 | + |
| 1180 | + |
| 1181 | + |
| 1182 | + |
| 1183 | + |
| 1184 | + |
| 1185 | + |
| 1186 | + |
| 1187 | + |
| 1188 | + |
| 1189 | + |
| 1190 | + |
| 1191 | + |
| 1192 | + |
| 1193 | + |
| 1194 | + |
| 1195 | + |
1183 | 1196 | |
1184 | | - |
| 1197 | + |
| 1198 | + |
| 1199 | + |
| 1200 | + |
| 1201 | + |
1185 | 1202 | |
1186 | 1203 | |
1187 | | - |
1188 | | - |
1189 | | - |
1190 | | - |
1191 | | - |
1192 | | - |
1193 | | - |
1194 | | - |
1195 | | - |
1196 | | - |
| 1204 | + |
| 1205 | + |
| 1206 | + |
| 1207 | + |
| 1208 | + |
| 1209 | + |
| 1210 | + |
| 1211 | + |
| 1212 | + |
| 1213 | + |
| 1214 | + |
1197 | 1215 | |
1198 | 1216 | |
1199 | 1217 | |
| ||
1366 | 1384 | |
1367 | 1385 | |
1368 | 1386 | |
| 1387 | + |
| 1388 | + |
| 1389 | + |
| 1390 | + |
| 1391 | + |
| 1392 | + |
| 1393 | + |
| 1394 | + |
| 1395 | + |
| 1396 | + |
| 1397 | + |
| 1398 | + |
| 1399 | + |
| 1400 | + |
| 1401 | + |
| 1402 | + |
| 1403 | + |
| 1404 | + |
| 1405 | + |
| 1406 | + |
| 1407 | + |
| 1408 | + |
| 1409 | + |
| 1410 | + |
| 1411 | + |
| 1412 | + |
| 1413 | + |
| 1414 | + |
| 1415 | + |
| 1416 | + |
| 1417 | + |
| 1418 | + |
| 1419 | + |
| 1420 | + |
| 1421 | + |
| 1422 | + |
| 1423 | + |
| 1424 | + |
| 1425 | + |
| 1426 | + |
| 1427 | + |
| 1428 | + |
| 1429 | + |
| 1430 | + |
| 1431 | + |
| 1432 | + |
| 1433 | + |
| 1434 | + |
| 1435 | + |
| 1436 | + |
| 1437 | + |
| 1438 | + |
| 1439 | + |
| 1440 | + |
| 1441 | + |
| 1442 | + |
| 1443 | + |
| 1444 | + |
| 1445 | + |
| 1446 | + |
| 1447 | + |
| 1448 | + |
| 1449 | + |
| 1450 | + |
| 1451 | + |
| 1452 | + |
| 1453 | + |
| 1454 | + |
| 1455 | + |
| 1456 | + |
| 1457 | + |
| 1458 | + |
| 1459 | + |
| 1460 | + |
| 1461 | + |
| 1462 | + |
| 1463 | + |
| 1464 | + |
| 1465 | + |
| 1466 | + |
| 1467 | + |
| 1468 | + |
| 1469 | + |
| 1470 | + |
| 1471 | + |
1369 | 1472 | |
1370 | 1473 | |
1371 | 1474 | |
|
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+8-2Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1833 | 1833 | |
1834 | 1834 | |
1835 | 1835 | |
1836 | | - |
| 1836 | + |
| 1837 | + |
| 1838 | + |
| 1839 | + |
1837 | 1840 | |
1838 | 1841 | |
1839 | 1842 | |
1840 | 1843 | |
1841 | 1844 | |
1842 | 1845 | |
1843 | 1846 | |
1844 | | - |
| 1847 | + |
| 1848 | + |
| 1849 | + |
| 1850 | + |
1845 | 1851 | |
1846 | 1852 | |
1847 | 1853 | |
|
Collapse file
packages/google-cloud-firestore/google/cloud/firestore_v1/pipeline_source.py
Copy file name to clipboardExpand all lines: packages/google-cloud-firestore/google/cloud/firestore_v1/pipeline_source.py-4Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
60 | | - |
61 | | - |
62 | 60 | |
63 | 61 | |
64 | | - |
65 | | - |
66 | 62 | |
67 | 63 | |
68 | 64 | |
|
0 commit comments