Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
513 commits
Select commit Hold shift + click to select a range
f231c67
chore(deps): update all dependencies (#1091)
renovate-bot Jan 5, 2022
1e52497
chore(deps): update all dependencies (#1098)
renovate-bot Jan 6, 2022
67d376c
chore(samples): Add check for tests in directory (#1103)
gcf-owl-bot[bot] Jan 11, 2022
3cc9429
chore(deps): update all dependencies (#1101)
renovate-bot Jan 14, 2022
9c2ad1e
chore(python): Noxfile recognizes that tests can live in a folder (#1…
gcf-owl-bot[bot] Jan 19, 2022
d0fc45d
docs: show common job properties in `get_job` and `cancel_job` sample…
tswast Feb 14, 2022
d81b554
chore(deps): update dependency ipython to v8.0.1 [security] (#1126)
renovate-bot Mar 1, 2022
0d8d8fb
chore(deps): update dependency ipython [security] (#1154)
renovate-bot Mar 2, 2022
5f243e3
samples: remove browser option from user credentials sample (#1147)
busunkim96 Mar 2, 2022
172f6ee
deps: allow pyarrow 7.0 (#1112)
renovate-bot Mar 2, 2022
72e2c2b
chore: Adding support for pytest-xdist and pytest-parallel (#1160)
gcf-owl-bot[bot] Mar 4, 2022
5fb2ee7
chore(deps): update all dependencies (#1156)
renovate-bot Mar 5, 2022
dddcf2e
chore(deps): update all dependencies (#1162)
renovate-bot Mar 8, 2022
39d89a5
chore(deps): update all dependencies (#1163)
renovate-bot Mar 8, 2022
d6e8918
fix: upgrade black (#1177)
steffnay Mar 29, 2022
767a71d
fix!: remove out-of-date BigQuery ML protocol buffers (#1178)
tswast Mar 29, 2022
b3dd6d9
chore(deps): update all dependencies (#1164)
renovate-bot Mar 30, 2022
d1bb74f
chore(deps): update all dependencies (#1183)
renovate-bot Mar 30, 2022
878e47a
chore: use === in requirements.txt for environment specific pins (#1184)
renovate-bot Mar 30, 2022
6a07af9
chore(deps): update all dependencies (#1185)
renovate-bot Mar 30, 2022
c56fa1e
chore(deps): update all dependencies (#1192)
renovate-bot Mar 30, 2022
4f46e74
chore(deps): update dependency click to v8.1.2 (#1197)
renovate-bot Apr 1, 2022
a658af5
chore(deps): update all dependencies (#1200)
renovate-bot Apr 3, 2022
fe09ea1
chore(deps): update dependency google-cloud-bigquery-storage to v2.13…
renovate-bot Apr 5, 2022
118d0bb
chore(deps): update dependency google-auth to v2.6.3 (#1206)
renovate-bot Apr 7, 2022
6e0266d
chore(deps): update dependency pyparsing to v3.0.8 (#1210)
renovate-bot Apr 11, 2022
3d72600
chore(deps): update dependency google-cloud-core to v2.3.0 (#1211)
renovate-bot Apr 11, 2022
81aae7e
chore(deps): update dependency google-auth to v2.6.4 (#1214)
renovate-bot Apr 12, 2022
7982abb
chore(deps): update dependency google-api-core to v2.7.2 (#1215)
renovate-bot Apr 13, 2022
b1bd6f6
fix: export bigquery.HivePartitioningOptions (#1217)
jli Apr 14, 2022
ec0ca20
chore(deps): update dependency google-auth to v2.6.5 (#1219)
renovate-bot Apr 15, 2022
09caeb2
chore(deps): update dependency typing-extensions to v4.2.0 (#1221)
renovate-bot Apr 18, 2022
062f04b
chore(python): add nox session to sort python imports (#1224)
gcf-owl-bot[bot] Apr 21, 2022
5bd9f61
chore(deps): update all dependencies (#1227)
renovate-bot Apr 22, 2022
730d0af
chore(deps): update dependency pytest to v7.1.2 (#1229)
renovate-bot Apr 25, 2022
910a537
chore(deps): update dependency click to v8.1.3 (#1233)
renovate-bot Apr 28, 2022
a5699a0
chore(deps): update dependency ipython to v8.3.0 (#1234)
renovate-bot Apr 29, 2022
d22d600
chore(deps): update dependency google-api-core to v2.7.3 (#1236)
renovate-bot May 2, 2022
45e1179
chore(deps): update dependency matplotlib to v3.5.2 (#1237)
renovate-bot May 3, 2022
c3d4c2d
chore(deps): update all dependencies (#1238)
renovate-bot May 5, 2022
ffef9c1
docs: updated variable typo in comment in code sample (#1239)
meredithslota May 5, 2022
07b6993
chore: update all dependencies (#1244)
renovate-bot May 9, 2022
cc22ed6
chore(deps): update dependency pyparsing to v3.0.9 (#1246)
renovate-bot May 11, 2022
667c446
chore(deps): update dependency libcst to v0.4.3 (#1247)
renovate-bot May 11, 2022
b6cb440
chore(deps): update dependency grpcio to v1.46.1 (#1249)
renovate-bot May 12, 2022
ed280e5
chore(deps): update dependency googleapis-common-protos to v1.56.1 (#…
renovate-bot May 13, 2022
3ad8c7b
chore(deps): update all dependencies (#1253)
renovate-bot May 19, 2022
086daf1
chore(deps): update all dependencies (#1255)
renovate-bot May 19, 2022
ec19a8b
feat: add support for table clones (#1235)
abecerrilsalas May 20, 2022
8f0a68d
chore(deps): update all dependencies (#1258)
renovate-bot May 22, 2022
106e70f
chore(deps): update all dependencies (#1264)
renovate-bot May 30, 2022
66b581d
docs(samples): add table snapshot sample (#1274)
steffnay Jun 17, 2022
bc5b6b2
fix: require python 3.7+ (#1284)
gcf-owl-bot[bot] Jul 9, 2022
5fa2869
docs(samples): explicitly add bq to samples reqs, upgrade grpc to fix…
leahecole Jul 19, 2022
d318bdf
chore(deps): update all dependencies (#1301)
renovate-bot Aug 2, 2022
65a0fda
chore(deps): update all dependencies (#1305)
renovate-bot Aug 9, 2022
bd30685
chore(deps): update all dependencies (#1308)
renovate-bot Aug 12, 2022
06693ba
chore(deps): update all dependencies (#1313)
renovate-bot Aug 12, 2022
92ae5d8
chore(deps): update dependency pytz to v2022.2.1 (#1316)
renovate-bot Aug 15, 2022
95ab9c1
chore(deps): update dependency google-cloud-bigquery-storage to v2.14…
renovate-bot Aug 16, 2022
e6a07af
chore(deps): update dependency shapely to v1.8.3 (#1320)
renovate-bot Aug 17, 2022
c2b761c
chore(deps): update all dependencies (#1322)
renovate-bot Aug 19, 2022
a8ad3bf
chore(deps): update all dependencies (#1323)
renovate-bot Aug 23, 2022
de5040a
chore(deps): update dependency proto-plus to v1.22.1 (#1330)
renovate-bot Aug 30, 2022
d4cdf74
chore(deps): update dependency pandas to v1.4.4 (#1332)
renovate-bot Aug 31, 2022
2fb0a1e
chore(deps): update dependency google-crc32c to v1.5.0 (#1334)
renovate-bot Sep 1, 2022
00d941c
fix: uses function (create_job) more appropriate to the described sam…
chalmerlowe Sep 2, 2022
0d46444
chore(deps): update all dependencies (#1339)
renovate-bot Sep 6, 2022
953dacd
chore(deps): update dependency google-cloud-bigquery-storage to v2.15…
renovate-bot Sep 6, 2022
ba09913
chore(deps): update dependency certifi to v2022.6.15.1 (#1346)
renovate-bot Sep 12, 2022
41a62f5
chore: detect samples tests in nested directories (#1349)
gcf-owl-bot[bot] Sep 13, 2022
888e546
chore(deps): update all dependencies (#1351)
renovate-bot Sep 14, 2022
97677ef
chore(deps): update dependency google-api-core to v2.10.1 (#1353)
renovate-bot Sep 14, 2022
38e6a9a
chore(deps): update all dependencies (#1354)
renovate-bot Sep 15, 2022
04cb0d5
chore(deps): update all dependencies (#1358)
renovate-bot Sep 20, 2022
8d2f934
chore(deps): update all dependencies (#1360)
renovate-bot Sep 20, 2022
5e5f048
chore(deps): update dependency db-dtypes to v1.0.4 (#1361)
renovate-bot Sep 21, 2022
ba40821
chore(deps): update all dependencies (#1363)
renovate-bot Oct 4, 2022
b90aa5a
chore(deps): update all dependencies (#1380)
renovate-bot Oct 10, 2022
333be9c
feat: reconfigure tqdm progress bar in %%bigquery magic (#1355)
aribray Oct 11, 2022
cc91583
chore(deps): update all dependencies (#1382)
renovate-bot Oct 19, 2022
969b9f2
fix: corrects test for non-existent attribute (#1395)
chalmerlowe Nov 2, 2022
adfa9d1
chore(python): drop flake8-import-order in samples noxfile (#1424)
gcf-owl-bot[bot] Nov 30, 2022
05d7f53
docs: created samples for load table and create table from schema fil…
Mattix23 Dec 13, 2022
0cde687
docs: create sample to write schema file from table (#1439)
thejaredchapman Dec 19, 2022
f53c250
docs: revise sample for nested schema (#1446)
Mattix23 Dec 20, 2022
41781a6
chore: install all sample dependencies when type checking samples (#1…
thejaredchapman Jan 6, 2023
4241ab2
docs: revise label table code samples (#1451)
Mattix23 Jan 6, 2023
24d7745
docs: revise create table cmek sample (#1452)
Mattix23 Jan 6, 2023
cfc0d90
chore(python): add support for python 3.11 [autoapprove] (#1454)
gcf-owl-bot[bot] Jan 7, 2023
0b2eec7
chore(deps): update dependency certifi to v2022.12.7 [security] (#1434)
renovate-bot Jan 9, 2023
ab20806
chore(deps): update all dependencies (#1390)
renovate-bot Jan 9, 2023
785feb9
chore(deps): update all dependencies (#1456)
renovate-bot Jan 11, 2023
a8d1020
chore(deps): update all dependencies (#1460)
renovate-bot Jan 12, 2023
a406fc4
chore(deps): update all dependencies (#1461)
renovate-bot Jan 12, 2023
386c2bc
docs: revise get table labels code sample, add TODO to clean up snipp…
Mattix23 Jan 13, 2023
75975c1
chore(deps): update dependency packaging to v23 (#1462)
renovate-bot Jan 18, 2023
f25b152
docs: revise delete label table code sample, add TODO to clean up sni…
Mattix23 Jan 18, 2023
a33f459
docs: adds snippet for creating table with external data config (#1420)
aribray Jan 18, 2023
af9ad01
chore(deps): update all dependencies (#1471)
renovate-bot Jan 23, 2023
4863daf
chore(deps): update all dependencies (#1475)
renovate-bot Jan 23, 2023
634305d
docs(samples): table variable fix (#1287)
adhiggs Jan 24, 2023
3114f05
chore(deps): update dependency google-cloud-bigquery-storage to v2.18…
renovate-bot Jan 25, 2023
e5d086e
chore(deps): update dependency geojson to v3 (#1478)
renovate-bot Jan 26, 2023
12ca190
chore(deps): update all dependencies (#1479)
renovate-bot Jan 28, 2023
38a7e2a
chore(deps): update dependency shapely to v2.0.1 (#1480)
renovate-bot Jan 30, 2023
b731654
chore(deps): update dependency fiona to v1.9.0 (#1482)
renovate-bot Jan 30, 2023
de9d01e
chore(deps): update dependency google-cloud-bigquery to v3.5.0 (#1485)
renovate-bot Feb 2, 2023
5a9bef3
chore(deps): update all dependencies to v1 (#1486)
renovate-bot Feb 16, 2023
61a9346
chore(deps): update all dependencies (#1501)
renovate-bot Mar 1, 2023
59d7300
chore(deps): update all dependencies (#1513)
renovate-bot Mar 1, 2023
6a41d5e
chore(deps): update all dependencies (#1514)
renovate-bot Mar 4, 2023
bae1ee2
chore(deps): update dependency charset-normalizer to v3.1.0 (#1518)
renovate-bot Mar 6, 2023
34b4540
chore(deps): update all dependencies (#1522)
renovate-bot Mar 30, 2023
1eb45b9
chore(deps): update all dependencies (#1540)
renovate-bot Apr 6, 2023
10adb53
chore(deps): update all dependencies (#1549)
renovate-bot Apr 18, 2023
e1b7a39
chore(deps): update dependency google-cloud-bigquery to v3.10.0 (#1556)
renovate-bot Apr 19, 2023
eeeca25
chore(deps): update all dependencies (#1557)
renovate-bot Apr 20, 2023
302e920
chore(deps): update dependency requests to v2.31.0 [security] (#1573)
renovate-bot May 25, 2023
936ea49
chore(deps): update all dependencies (#1560)
renovate-bot Jun 1, 2023
dd5d6d1
chore(deps): update all dependencies (#1576)
renovate-bot Jun 1, 2023
6614159
chore(deps): update all dependencies (#1577)
renovate-bot Jul 10, 2023
2a2167f
chore(deps): update all dependencies (#1606)
renovate-bot Jul 10, 2023
c17fe55
test: enable copy table tests (#1609)
alvarowolfx Jul 13, 2023
77325c4
chore(deps): update all dependencies (#1607)
renovate-bot Jul 25, 2023
225710a
chore(deps): bump certifi in /samples/geography (#1627)
dependabot[bot] Jul 25, 2023
29df1db
chore(deps): update all dependencies (#1626)
renovate-bot Aug 9, 2023
516b28a
chore(deps): update all dependencies (#1636)
renovate-bot Aug 11, 2023
62a9ceb
chore(docs): update region tag and move sample and test (#1648)
meredithslota Sep 15, 2023
667e8c3
docs: Revise update_table_expiration sample (#1457)
thejaredchapman Sep 15, 2023
17660f5
docs: revised `create_partitioned_table` sample (#1447)
thejaredchapman Oct 5, 2023
15638a8
docs: revised relax column mode sample (#1467)
thejaredchapman Oct 5, 2023
dae7ce0
chore: [autoapprove] Update `black` and `isort` to latest versions (#…
gcf-owl-bot[bot] Oct 10, 2023
a505318
chore: upgrade mypy (#1705)
Linchin Oct 27, 2023
7341a83
chore(deps): bump urllib3 from 1.26.15 to 1.26.18 in /samples/geograp…
dependabot[bot] Oct 30, 2023
2c16169
chore(deps): update dependency pyarrow to v14 [security] (#1718)
renovate-bot Nov 10, 2023
2f5b6e1
chore: standardize samples directory (#1727)
kiraksi Nov 17, 2023
cd8e83a
chore: standardize samples directory - delete unneeded dependencies (…
kiraksi Nov 22, 2023
3165487
feat: Add support for Python 3.12 (#1736)
gcf-owl-bot[bot] Dec 1, 2023
127d8df
feat: add `Client.query_and_wait` which directly returns a `RowIterat…
tswast Dec 8, 2023
8c52c28
chore: cleanup resources at startup (#1741)
kiraksi Jan 17, 2024
1a38aee
docs: update multiple samples to change query to query_and_wait (#1784)
kiraksi Jan 17, 2024
53a8fd8
docs: update the query with no cache sample to use query_and_wait API…
SalemJorden Jan 18, 2024
f5296f6
docs: remove unused query code sample (#1769)
tswast Jan 19, 2024
379b518
docs: Updates `query` to `query and wait` in samples/desktopapp/user_…
DevStephanie Jan 22, 2024
31834e5
docs: update `client_query_destination_table.py` sample to use `query…
SalemJorden Jan 25, 2024
57d373c
docs: update to use `query_and_wait` in `client_query_w_positional_pa…
DevStephanie Jan 25, 2024
d7e7297
Docs: update the query destination table legacy file to use query_and…
SalemJorden Jan 25, 2024
21dcbc4
docs: update sample for query_to_arrow to use query_and_wait API (#1776)
SalemJorden Jan 25, 2024
c965c9a
docs: update query_external_sheets_permanent_table.py to use query_an…
SalemJorden Jan 26, 2024
f8623e6
docs: update to use API (#1781)
SalemJorden Jan 26, 2024
94f5810
docs: update to use `query_and_wait` in `samples/client_query_w_times…
DevStephanie Jan 26, 2024
7df38bd
docs: update to_geodataframe to use query_and_wait functionality (#1800)
DevStephanie Jan 29, 2024
e55307e
docs: update `client_query_w_named_params.py` to use `query_and_wait`…
SalemJorden Feb 12, 2024
174b110
docs(samples): updates to urllib3 constraint for Python 3.7 (#1834)
chalmerlowe Feb 28, 2024
483de9f
chore(deps): update all dependencies (#1640)
renovate-bot Feb 29, 2024
b12a3bb
chore: use mock from unittest (#1823)
parthea Mar 7, 2024
9ac17c0
chore(deps): update all dependencies (#1835)
renovate-bot Mar 11, 2024
8e7a524
chore(deps): update all dependencies (#1849)
renovate-bot Mar 12, 2024
93b2ae4
chore(deps): update dependency pyarrow to v15.0.2 (#1861)
renovate-bot Mar 18, 2024
4041102
fix: update error logging when converting to pyarrow column fails (#1…
chalmerlowe Mar 19, 2024
9ea3d1f
chore(deps): update dependency google-auth to v2.29.0 (#1865)
renovate-bot Mar 21, 2024
5027c07
chore(deps): update dependency google-api-core to v2.18.0 (#1866)
renovate-bot Mar 22, 2024
7011ba0
feat: add `fields` parameter to `set_iam_policy` for consistency with…
tswast Mar 27, 2024
880dc53
chore(deps): update all dependencies (#1873)
renovate-bot Mar 27, 2024
19a5a41
fix: make `pyarrow` an optional dependency post-3.20.0 yanked release…
tswast Mar 28, 2024
727b00c
chore(deps): update all dependencies (#1875)
renovate-bot Apr 1, 2024
eeea2f3
chore(deps): update all dependencies (#1882)
renovate-bot Apr 8, 2024
156b26b
chore(deps): update all dependencies (#1891)
renovate-bot Apr 11, 2024
386848b
chore(deps): update dependency idna to v3.7 [security] (#1896)
renovate-bot Apr 12, 2024
f1a4b06
chore(deps): update all dependencies (#1893)
renovate-bot Apr 12, 2024
dcc9e64
chore(deps): update all dependencies (#1904)
renovate-bot Apr 19, 2024
e1a9be0
chore(deps): update all dependencies (#1916)
renovate-bot May 16, 2024
8e9c517
chore(deps): update all dependencies (#1921)
renovate-bot May 21, 2024
8d8ae1d
chore(deps): update all dependencies (#1926)
renovate-bot May 28, 2024
56b8b3c
chore(deps): update all dependencies (#1934)
renovate-bot May 29, 2024
5c04a0d
chore(deps): bump requests from 2.31.0 to 2.32.2 in /samples/geograph…
dependabot[bot] May 29, 2024
8de6f1e
chore(deps): update all dependencies (#1938)
renovate-bot May 31, 2024
cc0c568
testing: update BQML training option (#1943)
shollyman Jun 3, 2024
39793a0
chore(deps): update all dependencies (#1946)
renovate-bot Jun 13, 2024
2fd59e6
chore(deps): update all dependencies (#1954)
renovate-bot Jun 13, 2024
87c7263
chore(deps): update dependency urllib3 to v2.2.2 [security] (#1959)
renovate-bot Jun 20, 2024
3fa6f6d
chore(deps): update all dependencies (#1955)
renovate-bot Jun 21, 2024
ce7e959
chore(deps): update dependency certifi to v2024.7.4 [security] (#1968)
renovate-bot Jul 9, 2024
6168a09
feat: use `bigquery-magics` package for the `%%bigquery` magic (#1965)
tswast Jul 10, 2024
e82df33
docs: add short mode query sample & test (#1978)
shollyman Jul 19, 2024
e9b58de
chore(deps): update all dependencies (#1982)
renovate-bot Jul 25, 2024
febe765
chore(deps): update all dependencies (#1983)
renovate-bot Aug 13, 2024
64b4c90
chore(deps): update all dependencies (#1993)
renovate-bot Aug 16, 2024
3d51539
chore(deps): update all dependencies (#2002)
renovate-bot Aug 27, 2024
6df4f7a
chore(deps): update all dependencies (#2004)
renovate-bot Aug 27, 2024
b3bcacc
testing: remove testing identity override (#2011)
shollyman Sep 4, 2024
aff5b9d
chore(deps): update all dependencies (#2005)
renovate-bot Sep 10, 2024
2761813
chore(deps): update all dependencies (#2017)
renovate-bot Sep 11, 2024
eedd32e
chore(deps): update all dependencies (#2018)
renovate-bot Sep 12, 2024
0a14b3d
chore(deps): update all dependencies (#2025)
renovate-bot Sep 20, 2024
ab7cb55
chore(deps): update all dependencies (#2029)
renovate-bot Sep 24, 2024
e1cf25b
chore(deps): bump fiona from 1.9.6 to 1.10.0 in /samples/geography (#…
dependabot[bot] Sep 25, 2024
3e943f3
chore(deps): update all dependencies (#2031)
renovate-bot Sep 26, 2024
3236688
chore(deps): update all dependencies (#2033)
renovate-bot Oct 1, 2024
c13faed
build: use multiScm for Kokoro release builds (#2049)
gcf-owl-bot[bot] Nov 1, 2024
273c7b2
chore(deps): update all dependencies (#2038)
renovate-bot Nov 15, 2024
ba3835d
chore(deps): update all dependencies (#2064)
renovate-bot Nov 15, 2024
7979dc7
chore(deps): update all dependencies (#2068)
renovate-bot Nov 15, 2024
047cf76
chore(deps): update all dependencies (#2070)
renovate-bot Nov 18, 2024
c52f8e0
chore(deps): update all dependencies (#2078)
renovate-bot Nov 26, 2024
a15760f
chore(deps): update all dependencies (#2096)
renovate-bot Jan 2, 2025
c8ac235
chore(deps): update dependency grpcio to v1.69.0 (#2102)
renovate-bot Jan 6, 2025
fd6b146
test: add unit test covering the case where worker streams are stoppe…
tswast Feb 6, 2025
0991d59
deps: Remove Python 3.7 and 3.8 as supported runtimes (#2133)
chalmerlowe Feb 28, 2025
833e6ca
chore(deps): update all dependencies (#2143)
renovate-bot Mar 27, 2025
1762258
chore(deps): update dependency pyasn1-modules to v0.4.2 (#2150)
renovate-bot Mar 31, 2025
976622b
chore(deps): update dependency shapely to v2.1.0 (#2155)
renovate-bot Apr 3, 2025
278e671
chore(deps): update dependency typing-extensions to v4.13.1 (#2156)
renovate-bot Apr 3, 2025
aa7e2fa
test: adds pytest-xdist to speed up processing of CI/CD checks (#2153)
chalmerlowe Apr 11, 2025
40b9199
chore(deps): update all dependencies (#2158)
renovate-bot May 12, 2025
1c15cab
chore(deps): update dependency db-dtypes to v1.4.3 (#2178)
renovate-bot May 12, 2025
f9495e9
chore(deps): update all dependencies to v3.32.0 (#2179)
renovate-bot May 14, 2025
05d50c3
fix(deps): update all dependencies (#2184)
renovate-bot May 21, 2025
a967a3f
chore(deps): update dependency google-auth to v2.40.2 (#2196)
renovate-bot May 23, 2025
66272d2
docs: use query_and_wait in the array parameters sample (#2202)
tswast May 27, 2025
5c7ffdf
feat: job creation mode GA (#2190)
shollyman May 27, 2025
23d7b6a
chore(deps): update dependency pytest-xdist to v3.7.0 (#2203)
renovate-bot May 27, 2025
6e3c1c5
chore(deps): update all dependencies (#2205)
renovate-bot May 30, 2025
81e9d49
chore(deps): update all dependencies (#2209)
renovate-bot Jun 4, 2025
7b57832
chore(deps): update all dependencies (#2211)
renovate-bot Jun 9, 2025
0ff5d2f
chore(deps): update dependency requests to v2.32.4 (#2213)
renovate-bot Jun 9, 2025
65d2b22
chore(deps): update dependency google-api-core to v2.25.1 (#2215)
renovate-bot Jun 13, 2025
c733265
chore(deps): bump urllib3 from 2.4.0 to 2.5.0 in /samples/geography (…
dependabot[bot] Jun 20, 2025
eb196af
chore: add label job sample (#2219)
leahecole Jun 23, 2025
c383c65
chore(deps): update all dependencies (#2216)
renovate-bot Jun 25, 2025
a42ab2e
chore(deps): update all dependencies (#2224)
renovate-bot Jun 27, 2025
fa6325b
chore(deps): update all dependencies (#2226)
renovate-bot Jul 7, 2025
c536b75
chore(deps): update dependency certifi to v2025.7.9 (#2232)
renovate-bot Jul 10, 2025
c2b7906
chore(deps): update dependency certifi to v2025.7.14 (#2237)
renovate-bot Jul 15, 2025
b046d6a
chore(deps): update all dependencies to v3.35.0 (#2242)
renovate-bot Jul 16, 2025
4be13ee
chore(deps): update all dependencies (#2243)
renovate-bot Jul 25, 2025
70d1658
chore(deps): update dependency matplotlib to v3.10.5 (#2251)
renovate-bot Jul 31, 2025
953521b
chore(deps): update all dependencies (#2253)
renovate-bot Aug 5, 2025
c48797b
chore(deps): update all dependencies (#2259)
renovate-bot Sep 3, 2025
e452ea3
chore(deps): update all dependencies (#2275)
renovate-bot Sep 15, 2025
52c15e3
chore(deps): update all dependencies (#2300)
renovate-bot Sep 30, 2025
bd41b2a
chore(deps): update dependency google-auth to v2.41.1 (#2312)
renovate-bot Oct 1, 2025
e1a63ef
chore(deps): update all dependencies (#2314)
renovate-bot Oct 6, 2025
f240fb0
chore(python): Add Python 3.14 to python post processor image (#2317)
gcf-owl-bot[bot] Oct 14, 2025
bd147ea
chore(deps): update dependency urllib3 to v2.6.0 [security] (#2342)
renovate-bot Dec 17, 2025
87f9f3e
chore(deps): update dependency urllib3 to v2.6.3 [security] (#2357)
renovate-bot Jan 21, 2026
5d236f7
chore(deps): update dependency geopandas to v1.1.2 [security] (#2411)
renovate-bot Feb 12, 2026
56e7ee7
chore(deps): update dependency pyasn1 to v0.6.2 [security] (#2407)
renovate-bot Feb 12, 2026
efaa148
Merge remote-tracking branch 'migration/main' into python-bigquery-mi…
parthea Sep 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bigquery/AUTHORING_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md
1 change: 1 addition & 0 deletions bigquery/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/CONTRIBUTING.md
Empty file added bigquery/__init__.py
Empty file.
40 changes: 40 additions & 0 deletions bigquery/add_empty_column.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


def add_empty_column(table_id: str) -> None:
# [START bigquery_add_empty_column]
from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

# TODO(developer): Set table_id to the ID of the table
# to add an empty column.
# table_id = "your-project.your_dataset.your_table_name"

table = client.get_table(table_id) # Make an API request.

original_schema = table.schema
new_schema = original_schema[:] # Creates a copy of the schema.
new_schema.append(bigquery.SchemaField("phone", "STRING"))

table.schema = new_schema
table = client.update_table(table, ["schema"]) # Make an API request.

if len(table.schema) == len(original_schema) + 1 == len(new_schema):
print("A new column has been added.")
else:
print("The column has not been added.")
# [END bigquery_add_empty_column]
56 changes: 56 additions & 0 deletions bigquery/browse_table_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


def browse_table_data(table_id: str) -> None:
# [START bigquery_browse_table]

from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

# TODO(developer): Set table_id to the ID of the table to browse data rows.
# table_id = "your-project.your_dataset.your_table_name"

# Download all rows from a table.
rows_iter = client.list_rows(table_id) # Make an API request.

# Iterate over rows to make the API requests to fetch row data.
rows = list(rows_iter)
print("Downloaded {} rows from table {}".format(len(rows), table_id))
Comment on lines +27 to +32

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Calling list(rows_iter) on an arbitrary table loads all rows into memory at once, which can cause Out Of Memory (OOM) errors for large tables. Since the goal here is only to print the total number of rows, use the total_rows property of the RowIterator instead of loading all rows into memory.

Suggested change
# Download all rows from a table.
rows_iter = client.list_rows(table_id) # Make an API request.
# Iterate over rows to make the API requests to fetch row data.
rows = list(rows_iter)
print("Downloaded {} rows from table {}".format(len(rows), table_id))
# Download all rows from a table.
rows_iter = client.list_rows(table_id) # Make an API request.
# The RowIterator automatically pages results. We can get the total number of rows
# without loading all of them into memory.
print("Table {} contains {} rows.".format(table_id, rows_iter.total_rows))


# Download at most 10 rows.
rows_iter = client.list_rows(table_id, max_results=10)
rows = list(rows_iter)
print("Downloaded {} rows from table {}".format(len(rows), table_id))

# Specify selected fields to limit the results to certain columns.
table = client.get_table(table_id) # Make an API request.
fields = table.schema[:2] # First two columns.
rows_iter = client.list_rows(table_id, selected_fields=fields, max_results=10)
print("Selected {} columns from table {}.".format(len(rows_iter.schema), table_id))

rows = list(rows_iter)
print("Downloaded {} rows from table {}".format(len(rows), table_id))

# Print row data in tabular format.
rows_iter = client.list_rows(table_id, max_results=10)
format_string = "{!s:<16} " * len(rows_iter.schema)
field_names = [field.name for field in rows_iter.schema]
print(format_string.format(*field_names)) # Prints column headers.

for row in rows_iter:
print(format_string.format(*row)) # Prints row data.
# [END bigquery_browse_table]
49 changes: 49 additions & 0 deletions bigquery/client_list_jobs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


def client_list_jobs() -> None:
# [START bigquery_list_jobs]

from google.cloud import bigquery

import datetime

# Construct a BigQuery client object.
client = bigquery.Client()

# List the 10 most recent jobs in reverse chronological order.
# Omit the max_results parameter to list jobs from the past 6 months.
print("Last 10 jobs:")
for job in client.list_jobs(max_results=10): # API request(s)
print("{}".format(job.job_id))

# The following are examples of additional optional parameters:

# Use min_creation_time and/or max_creation_time to specify a time window.
print("Jobs from the last ten minutes:")
ten_mins_ago = datetime.datetime.utcnow() - datetime.timedelta(minutes=10)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

datetime.datetime.utcnow() is deprecated in Python 3.12+. Use datetime.datetime.now(datetime.timezone.utc) instead to get a timezone-aware UTC datetime.

Suggested change
ten_mins_ago = datetime.datetime.utcnow() - datetime.timedelta(minutes=10)
ten_mins_ago = datetime.datetime.now(datetime.timezone.utc) - datetime.timedelta(minutes=10)

for job in client.list_jobs(min_creation_time=ten_mins_ago):
print("{}".format(job.job_id))

# Use all_users to include jobs run by all users in the project.
print("Last 10 jobs run by all users:")
for job in client.list_jobs(max_results=10, all_users=True):
print("{} run by user: {}".format(job.job_id, job.user_email))

# Use state_filter to filter by job state.
print("Last 10 jobs done:")
for job in client.list_jobs(max_results=10, state_filter="DONE"):
print("{}".format(job.job_id))
# [END bigquery_list_jobs]
49 changes: 49 additions & 0 deletions bigquery/client_load_partitioned_table.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


def client_load_partitioned_table(table_id: str) -> None:
# [START bigquery_load_table_partitioned]
from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

# TODO(developer): Set table_id to the ID of the table to create.
# table_id = "your-project.your_dataset.your_table_name"

job_config = bigquery.LoadJobConfig(
schema=[
bigquery.SchemaField("name", "STRING"),
bigquery.SchemaField("post_abbr", "STRING"),
bigquery.SchemaField("date", "DATE"),
],
skip_leading_rows=1,
time_partitioning=bigquery.TimePartitioning(
type_=bigquery.TimePartitioningType.DAY,
field="date", # Name of the column to use for partitioning.
expiration_ms=7776000000, # 90 days.
),
)
uri = "gs://cloud-samples-data/bigquery/us-states/us-states-by-date.csv"

load_job = client.load_table_from_uri(
uri, table_id, job_config=job_config
) # Make an API request.

load_job.result() # Wait for the job to complete.

table = client.get_table(table_id)
print("Loaded {} rows to table {}".format(table.num_rows, table_id))
# [END bigquery_load_table_partitioned]
50 changes: 50 additions & 0 deletions bigquery/client_query_add_column.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


def client_query_add_column(table_id: str) -> None:
# [START bigquery_add_column_query_append]
from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

# TODO(developer): Set table_id to the ID of the destination table.
# table_id = "your-project.your_dataset.your_table_name"

# Retrieves the destination table and checks the length of the schema.
table = client.get_table(table_id) # Make an API request.
print("Table {} contains {} columns".format(table_id, len(table.schema)))

# Configures the query to append the results to a destination table,
# allowing field addition.
job_config = bigquery.QueryJobConfig(
destination=table_id,
schema_update_options=[bigquery.SchemaUpdateOption.ALLOW_FIELD_ADDITION],
write_disposition=bigquery.WriteDisposition.WRITE_APPEND,
)

# Start the query, passing in the extra configuration.
client.query_and_wait(
# In this example, the existing table contains only the 'full_name' and
# 'age' columns, while the results of this query will contain an
# additional 'favorite_color' column.
'SELECT "Timmy" as full_name, 85 as age, "Blue" as favorite_color;',
job_config=job_config,
) # Make an API request and wait for job to complete.

# Checks the updated length of the schema.
table = client.get_table(table_id) # Make an API request.
print("Table {} now contains {} columns".format(table_id, len(table.schema)))
# [END bigquery_add_column_query_append]
53 changes: 53 additions & 0 deletions bigquery/client_query_batch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import typing

if typing.TYPE_CHECKING:
from google.cloud import bigquery


def client_query_batch() -> "bigquery.QueryJob":
# [START bigquery_query_batch]
from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

job_config = bigquery.QueryJobConfig(
# Run at batch priority, which won't count toward concurrent rate limit.
priority=bigquery.QueryPriority.BATCH
)

sql = """
SELECT corpus
FROM `bigquery-public-data.samples.shakespeare`
GROUP BY corpus;
"""

# Start the query, passing in the extra configuration.
query_job = client.query(sql, job_config=job_config) # Make an API request.

# Check on the progress by getting the job's updated state. Once the state
# is `DONE`, the results are ready.
query_job = typing.cast(
"bigquery.QueryJob",
client.get_job(
query_job.job_id, location=query_job.location
), # Make an API request.
)

print("Job {} is currently in state {}".format(query_job.job_id, query_job.state))
# [END bigquery_query_batch]
return query_job
40 changes: 40 additions & 0 deletions bigquery/client_query_destination_table.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


def client_query_destination_table(table_id: str) -> None:
# [START bigquery_query_destination_table]
from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

# TODO(developer): Set table_id to the ID of the destination table.
# table_id = "your-project.your_dataset.your_table_name"

job_config = bigquery.QueryJobConfig(destination=table_id)

sql = """
SELECT corpus
FROM `bigquery-public-data.samples.shakespeare`
GROUP BY corpus;
"""

# Start the query, passing in the extra configuration.
client.query_and_wait(
sql, job_config=job_config
) # Make an API request and wait for the query to finish.

print("Query results loaded to the table {}".format(table_id))
# [END bigquery_query_destination_table]
43 changes: 43 additions & 0 deletions bigquery/client_query_destination_table_clustered.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


def client_query_destination_table_clustered(table_id: str) -> None:
# [START bigquery_query_clustered_table]
from google.cloud import bigquery

# Construct a BigQuery client object.
client = bigquery.Client()

# TODO(developer): Set table_id to the ID of the destination table.
# table_id = "your-project.your_dataset.your_table_name"

sql = "SELECT * FROM `bigquery-public-data.samples.shakespeare`"
cluster_fields = ["corpus"]

job_config = bigquery.QueryJobConfig(
clustering_fields=cluster_fields, destination=table_id
)

# Start the query, passing in the extra configuration.
client.query_and_wait(
sql, job_config=job_config
) # Make an API request and wait for job to complete.

table = client.get_table(table_id) # Make an API request.
if table.clustering_fields == cluster_fields:
print(
"The destination table is written using the cluster_fields configuration."
)
# [END bigquery_query_clustered_table]
Loading
Loading