bigfunctions > load_duckdb_database
load_duckdb_database¶
Call or Deploy load_duckdb_database
?
✅ You can call this load_duckdb_database
bigfunction directly from your Google Cloud Project (no install required).
- This
load_duckdb_database
function is deployed inbigfunctions
GCP project in 39 datasets for all of the 39 BigQuery regions. You need to use the dataset in the same region as your datasets (otherwise you may have a function not found error). - Function is public, so it can be called by anyone. Just copy / paste examples below in your BigQuery console. It just works!
- You may prefer to deploy the BigFunction in your own project if you want to build and manage your own catalog of functions. This is particularly useful if you want to create private functions (for example calling your internal APIs). Discover the framework
Public BigFunctions Datasets:
Region | Dataset |
---|---|
eu |
bigfunctions.eu |
us |
bigfunctions.us |
europe-west1 |
bigfunctions.europe_west1 |
asia-east1 |
bigfunctions.asia_east1 |
... | ... |
Description¶
Signature
load_duckdb_database(duckdb_file_url, destination_dataset)
Description
Download duckdb database into destination_dataset
This function extends load_duckdb_database_into_temp_dataset
function.
Each call:
- Creates a new temporary dataset only accessible to you in bigfunctions project.
- Downloads the tables of the duckdb database to this temporary dataset.
- Copies the table into
destination_dataset
before deleting them from the temporary dataset.
Examples¶
load duckdb database used in evidence examples
call bigfunctions.eu.load_duckdb_database('https://github.com/evidence-dev/sql-prophet/raw/refs/heads/main/sources/needful_things/needful_things.duckdb', 'your_project.your_dataset');
select * from bigfunction_result;
call bigfunctions.us.load_duckdb_database('https://github.com/evidence-dev/sql-prophet/raw/refs/heads/main/sources/needful_things/needful_things.duckdb', 'your_project.your_dataset');
select * from bigfunction_result;
call bigfunctions.europe_west1.load_duckdb_database('https://github.com/evidence-dev/sql-prophet/raw/refs/heads/main/sources/needful_things/needful_things.duckdb', 'your_project.your_dataset');
select * from bigfunction_result;
+--------+
+ status +
+--------+
+ ok +
+--------+
Need help using load_duckdb_database
?
The community can help! Engage the conversation on Slack
For professional suppport, don't hesitate to chat with us.
Found a bug using load_duckdb_database
?
If the function does not work as expected, please
- report a bug so that it can be improved.
- or open the discussion with the community on Slack.
For professional suppport, don't hesitate to chat with us.
Spread the word¶
BigFunctions is fully open-source. Help make it a success by spreading the word!