Functions are Ready to Use!
β
You can call ANY public BigFunction without install
The functions are deployed in 39 public datasets (one dataset per region) so that you can call them without install.
β
You can also deploy the public BigFunctions
You can deploy public BigFunctions (or your own) in your GCP project with a single command using BigFunctions framework.
Function CategoriesΒΆ
β¬οΈ Load Data (23 functions)ΒΆ
There are 2 types pof load functions:
get
functions enable toselect
external data in aselect
statement.load
functions enable toload
data into a destination table.
exchange_rate
: Getexchange_rate
faker
: Generates fake dataget
: Requesturl
get_appstore_reviews
: GET Apple App Store Reviews of an appget_data_from_apify
: Get data using an apifyactor
.get_github_data
: Get data frompublic_repo
intodestination_dataset
get_json
: GET jsondata
fromurl
get_meteo
: Getmeteo
get_playstore_reviews
: GET Google Play Store Reviews of an appget_transport_emissions
: Get the transport CO2 emissions given thedistance_km
get_webpage_data
: Extractdata
fromurl
usingprompt
get_webpage_metadata
: Get webpage metadataget_webpage_structured_data
: Get webpage Structured Datalist_public_datasets
: Returns list of BigQuerypublic_datasets
load_api_data
: Load data from 250+ sources using Airbyte Python Connectorsload_duckdb_database
: Download duckdb database intodestination_dataset
load_file
: Download web file intodestination_table
load_google_trends
: Load daily Google Trendsload_saas_data
: Load SAAS data from 250+ sources using Airbyte Python Connectors
π₯ Transform (101 functions)ΒΆ
[...] Transform Array
are_arrays_equal
: Return true ifarray1
=array2
array_contains
: Returnstrue
ifvalue
is in arrayarr
else returnsfalse
array_intersect
: Returns the intersection of two arrays.array_union
: Returns the union of two arrays.benford_distance
: Calculate the distance from Benford's Law for givenvalues
.distinct_values
: Return distinct valuesfind_greater_value
: Return theoffset
(zero-based index) of the firstvalue
inarr
wherevalue >= x
find_lower_value
: Return theoffset
(zero-based index) of the firstvalue
inarr
wherevalue <= x
find_value
: Return the firstoffset
(zero-based index) ofvalue
in arrayarr
frequent_values
: Returnsfrequent_values
among array ofvalues
get_value
: Return the firstvalue
with a keysearch_key
fromkey_value_items
last_value
: Return last value of arraymax_value
: Return max value of arraymedian_value
: Return median value of arraymin_max_scaler
: Performs min-max scaling on an array.min_value
: Return min value of arraypercentile_value
: Returns percentile of an array with percentile a float in range [0, 1].rare_values
: Returnsrare_values
among array ofvalues
remove_value
: Return an array with all values exceptvalue
.sort_values
: Return sorted array (ascending)sort_values_desc
: Return sorted array (descending)sum_values
: Return the sum of array valuesz_scores
: Computez_scores
Transform Ip
ip2asn
: Getasn
ofip
ip2continent
: Getcontinent_code
ofip
ip2continent_name
: Getcontinent
ofip
ip2country
: Getcountry_code
ofip
ip2country_name
: Getcountry_name
ofip
ip_range2ip_networks
: Convert an IP range into a json list of IP networks in CIDR notation
πΆ GA4
create_ga4_views
: Create views to help querying GA4 Data
π§ Machine Learning
precision_recall_auc
: Returns the Area Under the Precision Recall Curve (a.k.a. AUC PR)precision_recall_curve
: Returns the Precision-Recall Curveprophet
: Return Time Series Forecast as json using prophetprophet_table
: Return Time Series Forecast as table using prophetroc_auc
: Returns the Area Under the Receiver Operating Characteristic Curve (a.k.a. ROC AUC)roc_curve
: Returns the Receiver Operating Characteristic Curve (a.k.a. ROC Curve)sentiment_score
: Compute sentiment score ofcontent
{...} Transform Json
create_materialized_view_w_flattened_json_column
: Create a Materialized view of a table withjson_column
flatteneditems2json
: Returnsjson
object from array ofkey_value_items
json_column_schema
: Returns the schema of a json columnjson_items
: Extractkey_value_items
fromjson_string
json_keys
: Extractkeys
fromjson_string
json_merge
: Mergejson_string1
andjson_string2
json_query
: Extract data fromjson_string
using advanced json queryingjson_schema
: Returns the schema ofdata
json_values
: Extractvalues
fromjson_string
sql_to_flatten_json_column
: Generate the SQL to flatten a jsoncolumn
β¨ Transform String
camel2snake
: Convertstring
from camelCase to snake_caseconvert_non_ascii_characters_to_unicode_escape_sequences
: Replace all non ASCII characters with escape unicodedeidentify
: Masks sensitive information of typeinfo_types
intext
detect_language
: Detectstext
languagedetect_sensitive_info
: Detect sensitive information intext
is_email_valid
: Return true ifemail
is validis_phone_number_valid
: Return ifphone_number
is validmarkdown2html
: Convertmarkdown
tohtml
ngram_frequency_similarity
: Calculates n-gram similarity between two stringsparse_url
: Returnurl
partsparse_user_agent
: Parses User Agent strings into several componentsphone_number_info
: Getphone_number
inforemove_accents
: Remove accentsremove_extra_whitespaces
: Remove unwanted whitespacesremove_strings
: Remove any string ofstrings_to_remove
fromstring
remove_words
: Remove any word ofwords_to_remove
fromstring
render_handlebars_template
: Render template with context using handlebars.js templating libraryrender_template
: Render template with context using nunjucks.js templating libraryreplace_special_characters
: Replace most common special characters in astring
withreplacement
translate
: Translatetext
intotarget_language
url_decode
: Decodeurl_encoded_string
xml_extract
: Returns content extracted from XML from given XPATH
π Transform Geo Data
geocode
: Getaddress
details from Google Mapsgeocode_fr
: Getaddress
details from api-adresse.data.gouv.frh3
: Wrapper around Uber H3reverse_geocode
: Get address details atlatitude
,longitude
validate_address
: Validateaddress
using Google Maps
π Graph
connected_components
: Compute the connected components of a non-directed graph.
π¨ Convert Data Format
html2pdf
: Converthtml
topdf
json2excel
: Dump data to excel filejson2xml
: Returns XML for given JSON stringxml2json
: Returns JSON as a string for given XML string
π Transform Date
date_sub_isoyear
: Returns same dayyears
beforegenerate_dates
: Generate a table of datesgregorian2hijri
: Convert Gregorian Date to Hijri Date (taken from here)is_public_holiday
: Return true ifdate
corresponds to a public holiday incountry_code
parse_date
: Parse date with automatic format detectiontranslated_month_name
: Gettranslated_month_name
translated_weekday_name
: Gettranslated_weekday_name
1οΈβ£ Transform Numeric
compute_linear_regression_coefficients
: Returns linear regression coefficients fromx
,y
columns.format_percentage
: Returnfirst_number / second_number
as a formatted percentagenps
: Returns the NPS (Net Promoter Score)quantize_into_bins
: Get thebin_range
in which belongsvalue
quantize_into_bins_with_labels
: Get thelabel
of the bin in which belongsvalue
quantize_into_fixed_width_bins
: Get thebin_range
in which belongsvalue
weighted_average
: Returns the weigthed average elements.
π§ AI
ask_ai
: Ask Anything!ask_appstore_reviews
: Ask AI what your app users think.ask_my_data
: Ask your data anyquestion
in natural language.categorize
: Categorizeitems
in categories and subcategories.classify_text
: Classifytext
amongcandidate_labels
generate_categories
: Returncategories
ofitems
.generate_face_embedding
: Detect Face on image and Generate its Embeddinggenerate_sql
: Transformquestion
to a SQL query.
π Take Actions (19 functions)ΒΆ
π Export
export_table_to_datastore
: Exportfully_qualified_table
to datastoreexport_to_datastore
: Exportsdata
to Datastoreexport_to_pubsub
: Exportsdata
andattributes
to Pub/Subtopic
.export_to_storage
: Exportscontent
to Cloud Storagepost
: POSTdata
tourl
.upload_table_to_gsheet
: Upload data fromtable_or_view_or_query
to Google Sheetupload_to_gsheet
: Uploaddata
(a json array of objects) to a Google Sheet
π¬ Notify
send_google_chat_message
: Sendsmessage
to google chat spacesend_mail
: Sends an emailsend_mail_with_excel
: Sends an email withtable_or_view_or_query
data attached as excel filesend_mail_with_gmail
: Sends an email using your gmail accountsend_slack_message
: Sendsmessage
to a slack channel.send_sms
: Sendsmessage
via SMS tophone_number
send_teams_adaptive_card
: SendsAdaptive Card
to a Microsoft Teams channel.send_teams_message
: Sendsmessage
to a Microsoft Teams channel.
π¨ Trigger Event
refresh_powerbi
: Refresh a Power BI dataset (semantic model)refresh_tableau
: Refresh a tableau datasource or workbooktrigger_dataform
: Triggers a Dataform workflow in the specified project, location, repository and workspace.
π¨ Utils (10 functions)ΒΆ
deduplicate_rows
: Returns the deduplicated rows ofquery_or_table_or_view
get_latest_partition_timestamp
: Return the maximum of the partition column offully_qualified_table
get_table_columns
: Get the column information of the given table fromINFORMATION_SCHEMA.COLUMNS
get_view_history
: Get BigQuery View historylist_scheduled_queries
: Returnsscheduled_queries
of projectproject
.run_python
: Run anypython_code
.sleep
: Sleep duringseconds
secondstimestamp_from_unix_date_time
: Interpretsunix_date_time
as the number ofdate_time_part
since1970-01-01 00:00:00 UTC
.timestamp_to_unix_date_time
: Returns the number ofdate_time_part
since1970-01-01 00:00:00 UTC
.upsert
: Mergesquery_or_table_or_view
into thedestination_table
.