From c62b1f74ce101af4d8c7c528bf5ac58a6e4d573a Mon Sep 17 00:00:00 2001 From: hafenkran <4216598+hafenkran@users.noreply.github.com> Date: Sun, 3 Nov 2024 18:50:14 +0100 Subject: [PATCH] updated bigquery commit ref; updated function description --- extensions/bigquery/description.yml | 4 ++-- extensions/bigquery/docs/function_description.csv | 5 ----- extensions/bigquery/docs/function_descriptions.csv | 7 +++++++ 3 files changed, 9 insertions(+), 7 deletions(-) delete mode 100644 extensions/bigquery/docs/function_description.csv create mode 100644 extensions/bigquery/docs/function_descriptions.csv diff --git a/extensions/bigquery/description.yml b/extensions/bigquery/description.yml index 63cc4e5..ebe5bc8 100644 --- a/extensions/bigquery/description.yml +++ b/extensions/bigquery/description.yml @@ -1,7 +1,7 @@ extension: name: bigquery description: Integrates DuckDB with Google BigQuery, allowing direct querying and management of BigQuery datasets - version: 1.0.0 + version: 0.1.0 language: C++ build: cmake license: MIT @@ -13,7 +13,7 @@ extension: repo: github: hafenkran/duckdb-bigquery - ref: 656055570493d26de86c4ab3a81f0c1b718835d2 + ref: e5cd4a9ac32ce3380559bc63869c442c14e1fb75 docs: hello_world: | diff --git a/extensions/bigquery/docs/function_description.csv b/extensions/bigquery/docs/function_description.csv deleted file mode 100644 index e901007..0000000 --- a/extensions/bigquery/docs/function_description.csv +++ /dev/null @@ -1,5 +0,0 @@ -function,description,comment,example -bigquery_scan,"Query a single table directly from BigQuery using the specified table.",,"SELECT * FROM bigquery_scan('my_gcp_project.quacking_dataset.duck_tbl');" -bigquery_execute,"Execute arbitrary queries directly in BigQuery using native GoogleSQL.",,"ATTACH 'project=my_gcp_project' AS bq (TYPE bigquery); -CALL bigquery_execute('bq', 'CREATE SCHEMA deluxe_dataset OPTIONS(location=""us"", default_table_expiration_days=3.75);')" -bigquery_clear_cache,"Clear the internal caches to refetch the most current project information from BigQuery.","","CALL bigquery_clear_cache();" diff --git a/extensions/bigquery/docs/function_descriptions.csv b/extensions/bigquery/docs/function_descriptions.csv new file mode 100644 index 0000000..6d8682e --- /dev/null +++ b/extensions/bigquery/docs/function_descriptions.csv @@ -0,0 +1,7 @@ +function,description,comment,example +bigquery_attach,"Attach to a BigQuery project.","","ATTACH 'project=my_gcp_project' as bq (TYPE bigquery);" +bigquery_scan,"Scan a single table directly from BigQuery.",,"SELECT * FROM bigquery_scan('my_gcp_project.quacking_dataset.duck_tbl');" +bigquery_query,"Run a custom GoogleSQL query in BigQuery and read the results.",,"SELECT * FROM bigquery_query('bq', 'SELECT * FROM quacking_dataset.duck_tbl WHERE duck_id = 123');" +bigquery_execute,"Execute an arbitrary GoogleSQL query in BigQuery.",,"CALL bigquery_execute('bq', 'CREATE SCHEMA deluxe_dataset OPTIONS(location=""us"", default_table_expiration_days=3.75);')" +bigquery_jobs,"List jobs in a BigQuery project.","","SELECT * FROM bigquery_jobs('bq');" +bigquery_clear_cache,"Clear the internal caches to refetch the most current project information from BigQuery.","","CALL bigquery_clear_cache();"