https://github.com/thedumbterminal/bigquery-js-udf-example
Example of Javascript UDFs for use with Google BigQuery
https://github.com/thedumbterminal/bigquery-js-udf-example
bigquery google javascript
Last synced: 4 months ago
JSON representation
Example of Javascript UDFs for use with Google BigQuery
- Host: GitHub
- URL: https://github.com/thedumbterminal/bigquery-js-udf-example
- Owner: thedumbterminal
- Created: 2021-03-25T16:27:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T06:16:57.000Z (almost 3 years ago)
- Last Synced: 2025-06-17T13:08:58.823Z (5 months ago)
- Topics: bigquery, google, javascript
- Language: JavaScript
- Homepage: https://www.thedumbterminal.co.uk/posts/2021/03/deploying_javascript_functions_on_google_big_query.html
- Size: 625 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Google BigQuery Javascript UDF Function Examples
[](https://github.com/thedumbterminal/bigquery-js-udf-example/actions/workflows/node.js.yml)
Examples of how to create, test and deploy Google BigQuery user defined functions (UDFs) written in Javascript.
For more information please see the accompanying blog post:
[Deploying Javascript functions on Google Big Query](https://www.thedumbterminal.co.uk/posts/2021/03/deploying_javascript_functions_on_google_big_query.html)
## Install
```
nvm use
npm install
```
## Testing
To run unit tests:
```
npm test
```
To run the distribution asset tests:
```
npm run build
npm run test:dist
````
To run the bigquery tests:
*This requires your terminal to be authenticated with the GCloud SDK*
```
export DEST_BUCKET=your_bucket_name
npm run build
npm run deploy
npm run test:bigquery
```