本文介绍 Databricks 到 Databricks Delta Sharing 共享视图中支持的函数和运算符。
为了保护数据安全,Databricks 到 Databricks Delta Sharing 共享视图仅允许以下 Azure Databricks 内置函数和运算符子集:
- -
- !
- /
- /
- &
- %
- ^
- +
- <
<<
- <=
- <=>
- =
- ==
- >
- >=
>>
>>>
- |
- ~
- abs
- acos
- acosh
- add_months
- aes_decrypt
- aes_encrypt
- 总和
- 和
- 任意
- any_value
- 大约计数不同
- 近似百分位数
- approx_top_k
- array
- array_agg
- array_append
- array_compact
- array_contains
- array_distinct
- array_except
- array_insert
- array_intersect数组交集函数
- 数组连接
- array_max
- array_min
- 数组位置
- array_prepend
- array_remove
- 数组重复
- array_size
- 数组排序
- array_union
- 数组重叠
- arrays_zip
- ascii
- asin
- asinh
- assert_true
- atan
- atan2
- atanh
- avg
- base64
- 之间
- bigint
- 箱
- 二元
- bit_and
- bit_count
- bit_get
- bit_length
- bit_or
- bit_reverse
- bit_xor
- bitmap_bit_position
- bitmap_bucket_number
- bitmap_construct_agg
- bitmap_count
- bitmap_or_agg
- bool_and
- bool_or
- 布尔
- bround
- btrim
- 基数
- 投
- cbrt
- ceil
- 天花板
- char
- char_length
- 字符长度
- charindex
- chr
- 融合
collate
collation
- collect_list
- collect_set
- concat
- 包含
- conv
- convert_timezone
- corr
- 余弦
- cosh
- 婴儿床
- 计数
- count_if
- count_min_sketch
- covar_pop
- covar_samp
- crc32
- csc
- cume_dist
- curdate
- current_catalog
- current_database
- current_date
- current_metastore
- current_recipient
- current_schema
- current_timestamp
- current_timezone
- current_version
- 日期
- date_add
- 日期差异
- date_format
- 从 Unix 日期转换日期
- date_part
- date_sub
- date_trunc
- dateadd
- datediff
datepart
- 日
- dayofmonth
- 星期几
- dayofyear
- 十进制
- 解码
- 度
- dense_rank
- div
- 双
- e
- element_at
- 编码
- endswith
- every
- 存在
- exp
- 爆炸
- explode_outer
- expm1
- 提取
- 阶乘
- 滤波器
- find_in_set
- 第一
- first_value
- 扁平 化
- 漂浮
- 地板
- forall
- format_number
- format_string
- from_unixtime
- from_utc_timestamp
- 获取
- getbit
- getdate
- 最大
- 分组
- grouping_id
- h3_boundaryasgeojson
- h3_boundaryaswkb
- h3_boundaryaswkt
- h3_centerasgeojson
- h3_centeraswkb
- h3_centeraswkt
- h3_compact
- h3_coverash3
- h3_coverash3string
- h3_distance
- h3_h3tostring
- h3_hexring
- h3_ischildof
- h3_ispentagon
- h3_isvalid
- h3_kring
- h3_kringdistances
- h3_longlatash3
- h3_longlatash3string
- h3_maxchild
- h3_minchild
- h3_pointash3
- h3_pointash3string
- h3_polyfillash3
- h3_polyfillash3string
- h3_resolution
- h3_stringtoh3
- h3_tessellateaswkb
- h3_tochildren
- h3_toparent
- h3_try_coverash3
- h3_try_coverash3string
- h3_try_distance
- h3_try_polyfillash3
- h3_try_polyfillash3string
- h3_try_tessellateaswkb
- h3_try_validate
- h3_解压缩
- h3_validate
- 哈希
- 十六进制
- histogram_numeric
- hll_sketch_agg
- hll_union_agg
- hour
- hypot
- 如果
- iff
- ifnull
- ilike
- 在
- 内嵌
- inline_outer
- int
- isnan
- isnotnull
- isnull
- 峰度
- 延迟
- 最后
- 最后一天
- 最后值
- 铅
- 最少
- 左
- len
- 长度
- levenshtein
- 喜欢
- ln
localtimestamp
- 日志
- log10
- log1p
- log2
- 降低
- luhn_check
- make_date
- make_dt_interval
- make_interval
- make_timestamp(创建时间戳)
make_timestamp_ltz
make_timestamp_ntz
- make_ym_interval
- 地图
- map_concat
- map_contains_key
- map_entries
- map_filter
- map_from_arrays
- 从条目映射
- map_keys
- map_values
- map_zip_with
- 最大
- max_by
- md5
- 平均值
- 中位数
- min
- min_by
- minute
- 模组
- 模式
- month
monthname
- 月份之间
- named_struct
- nanvl
- negative
- next_day
- 不
- 现在
- nth_value
- ntile
- nullif
- octet_length
- 或
- 覆盖
- 百分位排名
- 百分比
- 百分位近似
- percentile_cont
- percentile_disc
- 圆周率
- pmod
- 位置
- positive
- 战俘
- 力量
- printf
- quarter
- 弧度
- 南非兰特
- randn
- 随机
- 等级
- 减少
- regexp
- regexp_extract
- regexp_extract_all
- regexp_like
- regexp_replace
- regr_avgx
- regr_avgy
- regr_count
- regr_intercept
- regr_r2
- regr_slope
- regr_sxx
- regr_sxy
- regr_syy
- 重复
- 替换
- 反向
- 右
- rint
- rlike
- 圆
- row_number
- rpad
- rtrim
- 秒
- second
- 序列
- session_window
- 沙
- sha1
- sha2
- 左移
- shiftright
- shiftrightunsigned
- 随机选择
- 标志
- signum
- 正弦
- sinh
- size
- 偏斜性
- 切片
- smallint
- 一些
- sort_array
- 拆分
- 拆分部分
- sqrt
- 栈
- startswith
- 标准
- stddev
- stddev_pop
- stddev_samp
- str_to_map
- 字符串
stringdecode
- 结构
- substr
- 子字符串
- substring_index
- 总和
- 鞣制
- tanh
- 时间戳
- timestamp_micros
- timestamp_millis
- timestamp_seconds
- tinyint
- 转换为二进制
- to_char
- to_date
to_geography
to_geometry
- to_number
- to_timestamp
to_timestamp_ltz
to_timestamp_ntz
- to_unix_timestamp
- to_utc_timestamp
- to_varchar
- 变换
- transform_keys
- 转换值
- 修剪
- trunc
- try_add
- try_avg
- try_divide
- try_mod
- try_multiply
try_remainder
- try_subtract
- try_sum
- try_to_binary
try_to_geography
try_to_geometry
- 尝试转换为数字
- 尝试_转换为时间戳
- typeof
- ucase
- unbase64
- unhex
- unix_date
- unix_micros
- unix_millis
- unix_seconds
- unix_timestamp
- 上部
- url_decode
- url_encode
- uuid
- var_pop
- var_samp
- 方差
- 版本
- weekday
- 年内周数
when
- width_bucket
- 窗口
- window_time
- 年
- zip_with