-
-
Save epappas/a1095fc106f6b498997a044d24ba4dfd to your computer and use it in GitHub Desktop.
Revisions
-
ML-engineer created this gist
Jul 4, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ import duckdb from google.cloud import bigquery bqclient = bigquery.Client() table = bigquery.TableReference.from_string( "bigquery-public-data.utility_us.country_code_iso" ) rows = bqclient.list_rows(table) country_code_iso = rows.to_arrow(create_bqstorage_client=True) cursor = duckdb.connect() print(cursor.execute('SELECT * FROM country_code_iso').fetchall())