Commit 6e73c25
feat: support SQLAlchemy 2.0, raise minimum required version to 1.4.x (#1053)
* feat!: Support SQLAlchemy 2.0, drop support for 1.x
This patch makes this library backward incompatible for
versions of SQLAlchemy < 2.0.
Fixes #510
* constraints updated
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fixing README.rst
* fixing README.rst
* upping sqlalchemy version in constraints-3.8.txt
* adding 2.0 version restrictions to owlbot.py
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* fix for
* Updated some compliance tests for sqla2 and bq
* Addressed snippet errors
* revert bad commit
* More compliance tests checking
* reformatted with black
* Changed more compliance tests, updated requirements for testing
* Fixed attributeerror in failing sample test
* Fixed geolography test failing issue
* Minor tweaks to tests and code
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Fixed small error in compliance tests, added pip freeze for owl bot testing
* Fixed some failing compliance tests by reformatting
* Added UuidTest to compliance tests
* Moved back sqlalchemy constraints to 1.4
* Update testing/constraints-3.8.txt
* Fixed minimum version of sqlalchemy for 1.4 backwards compatibility
* Bumping support for sqlalchemy 1.4.16 for sample tests
* Bump setup.py sqlalchemy to 1.4.16
* Updated compliance sqlalchemy to 1.4.16
* Fixed broken code in last merged main, as we need to avoid duplicate entries and potential implicit joins due to identical table names
* modified tests for join order variation in 1.4 vs 2.0
* typo
* Modified one compliance StringTest thats been flaky
* Updated docs
* minor fixes to noxfile and README
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* cleaned up code from review, removed unnecessary code and files
* Update tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py
* create development release 1.11.0.dev0 branch
* chore: cleanup compliance tests for sqlalchemy migration (#1013)
* chore: remove code for sqlalchemy before 1_4
* reformatted with black:
* Removed sqlalchemy compliance tests from versions before 1.4
* removed code in base.py for sqlalchemy < 1.4
* fix coverage issues in base.py
* temporarily commented out code lines not passing coverage for testing purposes
* replaced functions previously removed for not passing cover
* testing removing functions for coverage
* add no cover tag to untested code and clean up commented out functions
* fix lint issues
* black
* chore: cleanup compliance file tests after migration
* lint
* fixed small import error
---------
Co-authored-by: Sharoon Thomas <sharoon.thomas@fulfil.io>
* Revert "chore: cleanup compliance tests for sqlalchemy migration" (#1015)
* chore: fix coverage tests sqlalchemy 2.0 migration (#987)
* chore: remove code for sqlalchemy before 1_4
* reformatted with black:
* Removed sqlalchemy compliance tests from versions before 1.4
* removed code in base.py for sqlalchemy < 1.4
* fix coverage issues in base.py
* temporarily commented out code lines not passing coverage for testing purposes
* replaced functions previously removed for not passing cover
* testing removing functions for coverage
* add no cover tag to untested code and clean up commented out functions
* fix lint issues
* black
* Readded deleted tests and renamed them from deprecated names
* black
---------
Co-authored-by: Sharoon Thomas <sharoon.thomas@fulfil.io>
* chore: sqlalchemy test compliance suite cleanup (#1018)
* chore: remove code for sqlalchemy before 1_4
* reformatted with black:
* Removed sqlalchemy compliance tests from versions before 1.4
* removed code in base.py for sqlalchemy < 1.4
* fix coverage issues in base.py
* temporarily commented out code lines not passing coverage for testing purposes
* replaced functions previously removed for not passing cover
* testing removing functions for coverage
* add no cover tag to untested code and clean up commented out functions
* fix lint issues
* black
* Readded deleted tests and renamed them from deprecated names
* black
* chore: sqlalchemy test compliance suite cleanup code
* black
* black
---------
Co-authored-by: Sharoon Thomas <sharoon.thomas@fulfil.io>
* create development release 1.11.0.dev1 branch
* feat: grouping sets, rollup and cube compatibility
* create development release 1.11.0.dev2
* test commit to run kokooro tests
* removed unnecessary clause function changes, edited tests
* test basic implementation of group_by_clause and visit_label
* fixed render label as label assignment
* added test case
* reformat logic
* test commit
* create development build 1.11.0.dev3
* chore: add more grouping sets/rollup/cube tests (#1029)
* chore: add more tests for grouping functions fix
* reformatted tests
* update changelog
* revert changelog
* remove note
* don't install prerelease in compliance session
* sync owlbot
* Update tests/sqlalchemy_dialect_compliance/test_dialect_compliance.py
* make results order not matter
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---------
Co-authored-by: Sharoon Thomas <sharoon.thomas@fulfil.io>
Co-authored-by: Nishant Nayak <nishantnayak@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: kiraksi <kirnendra@google.com>
Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
Co-authored-by: Chalmer Lowe <chalmer.lowe@gmail.com>
Co-authored-by: Kira <kira.kaur.sidhu@gmail.com>1 parent ec10fae commit 6e73c25
File tree
22 files changed
+1005
-579
lines changed- packages/sqlalchemy-bigquery
- sqlalchemy_bigquery
- testing
- tests
- sqlalchemy_dialect_compliance
- system
- unit
22 files changed
+1005
-579
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
111 | | - | |
| 109 | + | |
| 110 | + | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| |||
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
284 | | - | |
| 283 | + | |
285 | 284 | | |
286 | 285 | | |
287 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | | - | |
372 | | - | |
373 | 371 | | |
374 | 372 | | |
375 | 373 | | |
| |||
543 | 541 | | |
544 | 542 | | |
545 | 543 | | |
546 | | - | |
| 544 | + | |
547 | 545 | | |
548 | 546 | | |
549 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
62 | | - | |
| 65 | + | |
63 | 66 | | |
64 | 67 | | |
65 | 68 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
83 | | - | |
| 88 | + | |
84 | 89 | | |
85 | 90 | | |
86 | 91 | | |
87 | 92 | | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
102 | | - | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | | - | |
107 | | - | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
112 | | - | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
| |||
126 | 123 | | |
127 | 124 | | |
128 | 125 | | |
129 | | - | |
| 126 | + | |
130 | 127 | | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
134 | 131 | | |
135 | 132 | | |
136 | 133 | | |
137 | | - | |
| 134 | + | |
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
| |||
162 | 159 | | |
163 | 160 | | |
164 | 161 | | |
165 | | - | |
166 | | - | |
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| |||
206 | 201 | | |
207 | 202 | | |
208 | 203 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
215 | 209 | | |
216 | 210 | | |
217 | 211 | | |
| |||
267 | 261 | | |
268 | 262 | | |
269 | 263 | | |
270 | | - | |
271 | | - | |
| 264 | + | |
272 | 265 | | |
273 | 266 | | |
274 | | - | |
| 267 | + | |
275 | 268 | | |
276 | 269 | | |
277 | 270 | | |
| |||
288 | 281 | | |
289 | 282 | | |
290 | 283 | | |
291 | | - | |
| 284 | + | |
292 | 285 | | |
293 | 286 | | |
294 | 287 | | |
| |||
299 | 292 | | |
300 | 293 | | |
301 | 294 | | |
302 | | - | |
| 295 | + | |
303 | 296 | | |
304 | 297 | | |
305 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
Lines changed: 12 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 26 | + | |
| 27 | + | |
34 | 28 | | |
35 | 29 | | |
36 | 30 | | |
| |||
103 | 97 | | |
104 | 98 | | |
105 | 99 | | |
| 100 | + | |
| 101 | + | |
106 | 102 | | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
134 | 114 | | |
135 | 115 | | |
136 | 116 | | |
| |||
0 commit comments