Commit 1f4ebb1
feat: removed pkg_resources from all test files and moved importlib into pandas extra (#1726)
* feat: Introduce compatibility with native namespace packages
* Update copyright year
* removed pkg_resources from all test files and moved importlib into pandas extra
* feat: removed pkg_resources from all test files and moved importlib into pandas extra
* Adding no cover tag to test code
* reformatted with black
* undo revert
* perf: use the first page a results when `query(api_method="QUERY")` (#1723)
* perf: use the first page a results when `query(api_method="QUERY")`
* add tests
* respect max_results with cached page
* respect page_size, also avoid bqstorage if almost fully downloaded
* skip true test if bqstorage not installed
* coverage
* fix: ensure query job retry has longer deadline than API request deadline (#1734)
In cases where we can't disambiguate API failure from job failure,
this ensures we can still retry the job at least once.
* fix: `load_table_from_dataframe` now assumes there may be local null values (#1735)
Even if the remote schema is REQUIRED
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/python-bigquery/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)
Fixes #1692 🦕
* chore: standardize samples directory - delete unneeded dependencies (#1732)
* chore: standardize samples directory = delete unneeded dependencies
* Removed unused import for linter
* fix: move grpc, proto-plus and protobuf packages to extras (#1721)
* chore: move grpc, proto-plus and protobuff packages to extras
* formatted with black
* feat: add `job_timeout_ms` to job configuration classes (#1675)
* fix: adds new property and tests
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* updates docs to correct a sphinx failure
* Updates formatting
* Update tests/system/test_query.py
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* Update google/cloud/bigquery/job/base.py
* updates one test and uses int_or_none
* Update tests/system/test_query.py
testing something.
* Update tests/system/test_query.py
* testing coverage feature
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* minor edits
* tweaks to noxfile for testing purposes
* add new test to base as experiment
* adds a test, updates import statements
* add another test
* edit to tests
* formatting fixes
* update noxfile to correct debug code
* removes unneeded comments.
---------
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
---------
Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Tim Swast <swast@google.com>
* remove unnecessary version checks
* undo bad commit, remove unneeded version checks
* Revert "undo bad commit, remove unneeded version checks"
This reverts commit 5c82dcf.
* Revert "remove unnecessary version checks"
This reverts commit 9331a7e.
* revert bad changes, remove pkg_resources from file
* after clarification, reimplement changes and ignore 3.12 tests
* reformatted with black
* removed minimum check
* updated pandas installed version check
---------
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Tim Swast <swast@google.com>
Co-authored-by: Chalmer Lowe <chalmerlowe@google.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>1 parent 5ce4d13 commit 1f4ebb1Copy full SHA for 1f4ebb1
File tree
Expand file treeCollapse file tree
12 files changed
+96
-133
lines changedOpen diff view settings
Filter options
- google
- cloud
- tests
- system
- unit
- job
Expand file treeCollapse file tree
12 files changed
+96
-133
lines changedOpen diff view settings
Collapse file
-5Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
12 | 12 | |
13 | 13 | |
14 | 14 | |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
Collapse file
-24Lines changed: 0 additions & 24 deletions
This file was deleted.
Collapse file
-24Lines changed: 0 additions & 24 deletions
This file was deleted.
Collapse file
+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
137 | 137 | |
138 | 138 | |
139 | 139 | |
140 | | - |
| 140 | + |
141 | 141 | |
142 | 142 | |
143 | 143 | |
| ||
149 | 149 | |
150 | 150 | |
151 | 151 | |
152 | | - |
| 152 | + |
| 153 | + |
153 | 154 | |
154 | 155 | |
155 | 156 | |
|
Collapse file
+2-8Lines changed: 2 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
| 65 | + |
65 | 66 | |
66 | 67 | |
67 | 68 | |
| ||
108 | 109 | |
109 | 110 | |
110 | 111 | |
111 | | - |
| 112 | + |
112 | 113 | |
113 | 114 | |
114 | 115 | |
115 | | - |
116 | | - |
117 | | - |
118 | | - |
119 | | - |
120 | | - |
121 | 116 | |
122 | 117 | |
123 | 118 | |
| ||
143 | 138 | |
144 | 139 | |
145 | 140 | |
146 | | - |
147 | 141 | |
148 | 142 | |
149 | 143 | |
|
Collapse file
tests/system/test_pandas.py
Copy file name to clipboardExpand all lines: tests/system/test_pandas.py+10-13Lines changed: 10 additions & 13 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
23 | 23 | |
24 | 24 | |
25 | 25 | |
26 | | - |
27 | 26 | |
28 | 27 | |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
29 | 33 | |
30 | 34 | |
31 | 35 | |
| ||
42 | 46 | |
43 | 47 | |
44 | 48 | |
45 | | - |
| 49 | + |
46 | 50 | |
47 | | - |
48 | | - |
49 | | - |
| 51 | + |
50 | 52 | |
51 | 53 | |
52 | 54 | |
| ||
310 | 312 | |
311 | 313 | |
312 | 314 | |
313 | | - |
314 | | - |
315 | | - |
316 | | - |
| 315 | + |
317 | 316 | |
318 | 317 | |
319 | 318 | |
| ||
342 | 341 | |
343 | 342 | |
344 | 343 | |
345 | | - |
| 344 | + |
346 | 345 | |
347 | 346 | |
348 | 347 | |
| ||
1043 | 1042 | |
1044 | 1043 | |
1045 | 1044 | |
1046 | | - |
1047 | | - |
1048 | | - |
| 1045 | + |
1049 | 1046 | |
1050 | 1047 | |
1051 | 1048 | |
|
Collapse file
tests/unit/job/test_query_pandas.py
Copy file name to clipboardExpand all lines: tests/unit/job/test_query_pandas.py+8-6Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
17 | 17 | |
18 | 18 | |
19 | 19 | |
20 | | - |
21 | 20 | |
22 | 21 | |
23 | 22 | |
| ||
45 | 44 | |
46 | 45 | |
47 | 46 | |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
48 | 52 | |
49 | 53 | |
50 | 54 | |
51 | 55 | |
52 | 56 | |
53 | | - |
| 57 | + |
54 | 58 | |
55 | | - |
| 59 | + |
56 | 60 | |
57 | 61 | |
58 | 62 | |
| ||
656 | 660 | |
657 | 661 | |
658 | 662 | |
659 | | - |
660 | | - |
661 | | - |
| 663 | + |
662 | 664 | |
663 | 665 | |
664 | 666 | |
|
Collapse file
tests/unit/test__pandas_helpers.py
Copy file name to clipboardExpand all lines: tests/unit/test__pandas_helpers.py+10-22Lines changed: 10 additions & 22 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
23 | 27 | |
24 | 28 | |
25 | 29 | |
| ||
57 | 61 | |
58 | 62 | |
59 | 63 | |
60 | | - |
61 | | - |
62 | 64 | |
63 | | - |
| 65 | + |
64 | 66 | |
65 | | - |
66 | | - |
| 67 | + |
67 | 68 | |
68 | 69 | |
69 | 70 | |
| ||
542 | 543 | |
543 | 544 | |
544 | 545 | |
545 | | - |
546 | | - |
547 | | - |
| 546 | + |
548 | 547 | |
549 | 548 | |
550 | 549 | |
| ||
806 | 805 | |
807 | 806 | |
808 | 807 | |
809 | | - |
810 | | - |
811 | | - |
812 | | - |
| 808 | + |
813 | 809 | |
814 | 810 | |
815 | 811 | |
| ||
837 | 833 | |
838 | 834 | |
839 | 835 | |
| 836 | + |
840 | 837 | |
841 | | - |
842 | | - |
843 | | - |
844 | | - |
845 | | - |
846 | | - |
847 | | - |
848 | | - |
849 | | - |
850 | 838 | |
851 | 839 | |
852 | 840 | |
|
Collapse file
+9-14Lines changed: 9 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
34 | 38 | |
35 | 39 | |
36 | 40 | |
| ||
76 | 80 | |
77 | 81 | |
78 | 82 | |
79 | | - |
80 | | - |
81 | 83 | |
82 | | - |
| 84 | + |
83 | 85 | |
84 | | - |
85 | | - |
| 86 | + |
86 | 87 | |
87 | 88 | |
88 | 89 | |
| ||
8145 | 8146 | |
8146 | 8147 | |
8147 | 8148 | |
8148 | | - |
8149 | | - |
8150 | | - |
8151 | | - |
| 8149 | + |
8152 | 8150 | |
8153 | 8151 | |
8154 | 8152 | |
| ||
8193 | 8191 | |
8194 | 8192 | |
8195 | 8193 | |
8196 | | - |
8197 | | - |
8198 | | - |
8199 | | - |
| 8194 | + |
8200 | 8195 | |
8201 | 8196 | |
8202 | 8197 | |
|
Collapse file
tests/unit/test_packaging.py
Copy file name to clipboard+37Lines changed: 37 additions & 0 deletions
| 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 | + |
0 commit comments