| <!-- | |
| SPDX-License-Identifier: Apache-2.0 | |
| SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership | |
| SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements | |
| --> | |
| <!--- | |
| This file was generated by the dev/update_function_docs.sh script. | |
| Do not edit it manually as changes will be overwritten. | |
| Instead, edit the #[user_doc] attributes on the functions and run the script. | |
| --> | |
| # datafusion-spark Function Reference | |
| Functions in this crate emulate Apache Spark's behavior. Each entry describes how the | |
| function differs from the DataFusion built-in of the same name, if there is one. | |
| ## Scalar Functions | |
| - [Math Functions](scalar/math.md) (28) | |
| - [Conditional Functions](scalar/conditional.md) (2) | |
| - [String Functions](scalar/string.md) (18) | |
| - [Binary String Functions](scalar/binary_string.md) (5) | |
| - [Time and Date Functions](scalar/time_and_date.md) (29) | |
| - [Array Functions](scalar/array.md) (10) | |
| - [Hashing Functions](scalar/hashing.md) (4) | |
| - [Other Functions](scalar/other.md) (6) | |
| - [JSON Functions](scalar/json.md) (3) | |
| - [URL Functions](scalar/url.md) (3) | |
| - [Variant Functions](scalar/variant.md) (1) | |
| ## Aggregate Functions | |
| - [General Functions](aggregate/general.md) (4) | |
| ## All Functions | |
| - [abs](scalar/math.md#abs) | |
| - [add_months](scalar/time_and_date.md#add_months) | |
| - [array](scalar/array.md#array) | |
| - [array_insert](scalar/array.md#array_insert) | |
| - [array_max](scalar/array.md#array_max) | |
| - [array_min](scalar/array.md#array_min) | |
| - [array_position](scalar/array.md#array_position) | |
| - [array_remove](scalar/array.md#array_remove) | |
| - [array_repeat](scalar/array.md#array_repeat) | |
| - [ascii](scalar/string.md#ascii) | |
| - [atan2](scalar/math.md#atan2) | |
| - [avg](aggregate/general.md#avg) | |
| - [base64](scalar/binary_string.md#base64) | |
| - [bin](scalar/math.md#bin) | |
| - [bit_count](scalar/math.md#bit_count) | |
| - [bit_get](scalar/math.md#bit_get) | |
| - [bitmap_bit_position](scalar/other.md#bitmap_bit_position) | |
| - [bitmap_bucket_number](scalar/other.md#bitmap_bucket_number) | |
| - [bitmap_count](scalar/other.md#bitmap_count) | |
| - [bitwise_not](scalar/math.md#bitwise_not) | |
| - [bround](scalar/math.md#bround) | |
| - [ceil](scalar/math.md#ceil) | |
| - [ceiling](scalar/math.md#ceiling) | |
| - [char](scalar/string.md#char) | |
| - [char_length](scalar/string.md#char_length) | |
| - [character_length](scalar/string.md#character_length) | |
| - [collect_list](aggregate/general.md#collect_list) | |
| - [collect_set](aggregate/general.md#collect_set) | |
| - [concat](scalar/string.md#concat) | |
| - [concat_ws](scalar/string.md#concat_ws) | |
| - [contains](scalar/string.md#contains) | |
| - [crc32](scalar/hashing.md#crc32) | |
| - [csc](scalar/math.md#csc) | |
| - [date_add](scalar/time_and_date.md#date_add) | |
| - [date_diff](scalar/time_and_date.md#date_diff) | |
| - [date_from_unix_date](scalar/time_and_date.md#date_from_unix_date) | |
| - [date_part](scalar/time_and_date.md#date_part) | |
| - [date_sub](scalar/time_and_date.md#date_sub) | |
| - [date_trunc](scalar/time_and_date.md#date_trunc) | |
| - [dateadd](scalar/time_and_date.md#dateadd) | |
| - [datediff](scalar/time_and_date.md#datediff) | |
| - [datepart](scalar/time_and_date.md#datepart) | |
| - [dayname](scalar/time_and_date.md#dayname) | |
| - [dayofweek](scalar/time_and_date.md#dayofweek) | |
| - [elt](scalar/string.md#elt) | |
| - [encode](scalar/binary_string.md#encode) | |
| - [equal_null](scalar/other.md#equal_null) | |
| - [expm1](scalar/math.md#expm1) | |
| - [factorial](scalar/math.md#factorial) | |
| - [find_in_set](scalar/string.md#find_in_set) | |
| - [floor](scalar/math.md#floor) | |
| - [format_string](scalar/string.md#format_string) | |
| - [from_utc_timestamp](scalar/time_and_date.md#from_utc_timestamp) | |
| - [getbit](scalar/math.md#getbit) | |
| - [greatest](scalar/math.md#greatest) | |
| - [hash](scalar/hashing.md#hash) | |
| - [hex](scalar/math.md#hex) | |
| - [hour](scalar/time_and_date.md#hour) | |
| - [hypot](scalar/math.md#hypot) | |
| - [if](scalar/conditional.md#if) | |
| - [ilike](scalar/string.md#ilike) | |
| - [is_valid_utf8](scalar/string.md#is_valid_utf8) | |
| - [is_variant_null](scalar/variant.md#is_variant_null) | |
| - [json_array_length](scalar/json.md#json_array_length) | |
| - [json_tuple](scalar/json.md#json_tuple) | |
| - [last_day](scalar/time_and_date.md#last_day) | |
| - [least](scalar/math.md#least) | |
| - [len](scalar/string.md#len) | |
| - [length](scalar/string.md#length) | |
| - [like](scalar/string.md#like) | |
| - [log1p](scalar/math.md#log1p) | |
| - [luhn_check](scalar/string.md#luhn_check) | |
| - [make_date](scalar/time_and_date.md#make_date) | |
| - [make_dt_interval](scalar/time_and_date.md#make_dt_interval) | |
| - [make_interval](scalar/time_and_date.md#make_interval) | |
| - [make_time](scalar/time_and_date.md#make_time) | |
| - [make_valid_utf8](scalar/string.md#make_valid_utf8) | |
| - [minute](scalar/time_and_date.md#minute) | |
| - [monthname](scalar/time_and_date.md#monthname) | |
| - [nanvl](scalar/conditional.md#nanvl) | |
| - [negative](scalar/math.md#negative) | |
| - [next_day](scalar/time_and_date.md#next_day) | |
| - [positive](scalar/math.md#positive) | |
| - [pow](scalar/math.md#pow) | |
| - [power](scalar/math.md#power) | |
| - [printf](scalar/string.md#printf) | |
| - [quote](scalar/string.md#quote) | |
| - [rint](scalar/math.md#rint) | |
| - [round](scalar/math.md#round) | |
| - [sec](scalar/math.md#sec) | |
| - [second](scalar/time_and_date.md#second) | |
| - [sha](scalar/hashing.md#sha) | |
| - [sha1](scalar/hashing.md#sha1) | |
| - [sha2](scalar/hashing.md#sha2) | |
| - [shiftleft](scalar/math.md#shiftleft) | |
| - [shiftright](scalar/math.md#shiftright) | |
| - [shiftrightunsigned](scalar/math.md#shiftrightunsigned) | |
| - [shuffle](scalar/array.md#shuffle) | |
| - [size](scalar/array.md#size) | |
| - [slice](scalar/array.md#slice) | |
| - [soundex](scalar/string.md#soundex) | |
| - [space](scalar/string.md#space) | |
| - [spark_cast](scalar/other.md#spark_cast) | |
| - [stack](scalar/other.md#stack) | |
| - [substr](scalar/string.md#substr) | |
| - [substring](scalar/string.md#substring) | |
| - [time_trunc](scalar/time_and_date.md#time_trunc) | |
| - [timestamp_micros](scalar/time_and_date.md#timestamp_micros) | |
| - [to_binary](scalar/binary_string.md#to_binary) | |
| - [to_json](scalar/json.md#to_json) | |
| - [to_utc_timestamp](scalar/time_and_date.md#to_utc_timestamp) | |
| - [trunc](scalar/time_and_date.md#trunc) | |
| - [try_sum](aggregate/general.md#try_sum) | |
| - [try_to_binary](scalar/binary_string.md#try_to_binary) | |
| - [try_url_decode](scalar/url.md#try_url_decode) | |
| - [unbase64](scalar/binary_string.md#unbase64) | |
| - [unhex](scalar/math.md#unhex) | |
| - [unix_date](scalar/time_and_date.md#unix_date) | |
| - [unix_micros](scalar/time_and_date.md#unix_micros) | |
| - [unix_millis](scalar/time_and_date.md#unix_millis) | |
| - [unix_seconds](scalar/time_and_date.md#unix_seconds) | |
| - [url_decode](scalar/url.md#url_decode) | |
| - [url_encode](scalar/url.md#url_encode) | |
| - [weekday](scalar/time_and_date.md#weekday) | |
| - [width_bucket](scalar/math.md#width_bucket) |