Commit 76adfc6
feat: Add the count aggregate function (#972)
* Files copied over
* implementation of aggregate queries.
* Checkout index.ts previous version
* src seems to be error free
* optional parameters
* replace with recognized type
* protos generated
* old package.json
* aggregation query request
* Commit so I can revert
* Revert "aggregation query request"
This reverts commit 0f2bd32.
* Revert "Revert "aggregation query request""
This reverts commit 1733072.
* Added a parser
* Comment out filters
* Fixed parser
* Add info
* more tests, adding alias
* use deep strict equal instead
* Work on passing in buffered input.
* Convert to buffer
* Add alias
* Add the aggregate function
* change test descriptions
* Add a unit test
* Revert "Files copied over"
This reverts commit fe55548.
# Conflicts:
# src/index.ts
* Revert "protos generated"
This reverts commit 1b21ec2.
* Eliminate comments
* Add new line
* Change upTo
* Change maximum name to upTo
* upTo relabelled from maximum
* remove import
* ran the linter
* improve code readability
* move self equals this
* change header
* Revert "change header"
This reverts commit b3ea976.
* Add a header
* change the unit test
* Architecture changes
* Getting closer
* Add the right parsing
* TODO message
* Remove and add array over for aggregate fields
* unit test and count function
* fix unit test as result of new changes
* linting fix
* Added a test for encoding using a count function
* lint fix
* removed upTo
* merge
* undid local changes to package.json
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Update src/aggregate.ts
Co-authored-by: Ruy Adorno <[email protected]>
* per reviewer
* refactor and rename some methods
* Add run method to aggregate query
* test update and return value change
* compare aggregate results
* createAggregationQuery
* linter and header fix
* TODOs
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Remove autogenerated comment
* count aggregation with limit filter tests
* lint fix
* Commented functions and classes
Co-authored-by: Eric Schmidt <[email protected]>
Co-authored-by: Eric Schmidt <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Ruy Adorno <[email protected]>
Co-authored-by: Kristen O'Leary <[email protected]>1 parent 6b2472b commit 76adfc6
File tree
11 files changed
+415
-30
lines changed- protos
- src
- v1
- system-test
- test
11 files changed
+415
-30
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
509 | 510 | | |
510 | 511 | | |
511 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
512 | 522 | | |
513 | 523 | | |
514 | 524 | | |
| |||
1797 | 1807 | | |
1798 | 1808 | | |
1799 | 1809 | | |
| 1810 | + | |
1800 | 1811 | | |
1801 | 1812 | | |
1802 | 1813 | | |
1803 | 1814 | | |
| 1815 | + | |
1804 | 1816 | | |
1805 | 1817 | | |
1806 | 1818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
| 576 | + | |
| 577 | + | |
575 | 578 | | |
576 | 579 | | |
577 | 580 | | |
| |||
0 commit comments