天天看點

Spark SQL 内置函數清單

• 1 !

• 2 %

• 3 &

• 4 *

• 5 +

• 6 -

• 7 /

• 8 <

• 9 <=

• 10 <=>

• 11 =

• 12 ==

• 13 >

• 14 >=

• 15 ^

• 16 abs

• 17 acos

• 18 add_months

• 19 and

• 20 approx_count_distinct

• 21 approx_percentile

• 22 array

• 23 array_contains

• 24 ascii

• 25 asin

• 26 assert_true

• 27 atan

• 28 atan2

• 29 avg

• 30 base64

• 31 bigint

• 32 bin

• 33 binary

• 34 bit_length

• 35 boolean

• 36 bround

• 37 cast

• 38 cbrt

• 39 ceil

• 40 ceiling

• 41 char

• 42 char_length

• 43 character_length

• 44 chr

• 45 coalesce

• 46 collect_list

• 47 collect_set

• 48 concat

• 49 concat_ws

• 50 conv

• 51 corr

• 52 cos

• 53 cosh

• 54 cot

• 55 count

• 56 count_min_sketch

• 57 covar_pop

• 58 covar_samp

• 59 crc32

• 60 cube

• 61 cume_dist

• 62 current_database

• 63 current_date

• 64 current_timestamp

• 65 date

• 66 date_add

• 67 date_format

• 68 date_sub

• 69 date_trunc

• 70 datediff

• 71 day

• 72 dayofmonth

• 73 dayofweek

• 74 dayofyear

• 75 decimal

• 76 decode

• 77 degrees

• 78 dense_rank

• 79 double

• 80 e

• 81 elt

• 82 encode

• 83 exp

• 84 explode

• 85 explode_outer

• 86 expm1

• 87 factorial

• 88 find_in_set

• 89 first

• 90 first_value

• 91 float

• 92 floor

• 93 format_number

• 94 format_string

• 95 from_json

• 96 from_unixtime

• 97 from_utc_timestamp

• 98 get_json_object

• 99 greatest

• 100 grouping

• 101 grouping_id

• 102 hash

• 103 hex

• 104 hour

• 105 hypot

• 106 if

• 107 ifnull

• 108 in

• 109 initcap

• 110 inline

• 111 inline_outer

• 112 input_file_block_length

• 113 input_file_block_start

• 114 input_file_name

• 115 instr

• 116 int

• 117 isnan

• 118 isnotnull

• 119 isnull

• 120 java_method

• 121 json_tuple

• 122 kurtosis

• 123 lag

• 124 last

• 125 last_day

• 126 last_value

• 127 lcase

• 128 lead

• 129 least

• 130 left

• 131 length

• 132 levenshtein

• 133 like

• 134 ln

• 135 locate

• 136 log

• 137 log10

• 138 log1p

• 139 log2

• 140 lower

• 141 lpad

• 142 ltrim

• 143 map

• 144 map_keys

• 145 map_values

• 146 max

• 147 md5

• 148 mean

• 149 min

• 150 minute

• 151 mod

• 152 monotonically_increasing_id

• 153 month

• 154 months_between

• 155 named_struct

• 156 nanvl

• 157 negative

• 158 next_day

• 159 not

• 160 now

• 161 ntile

• 162 nullif

• 163 nvl

• 164 nvl2

• 165 octet_length

• 166 or

• 167 parse_url

• 168 percent_rank

• 169 percentile

• 170 percentile_approx

• 171 pi

• 172 pmod

• 173 posexplode

• 174 posexplode_outer

• 175 position

• 176 positive

• 177 pow

• 178 power

• 179 printf

• 180 quarter

• 181 radians

• 182 rand

• 183 randn

• 184 rank

• 185 reflect

• 186 regexp_extract

• 187 regexp_replace

• 188 repeat

• 189 replace

• 190 reverse

• 191 right

• 192 rint

• 193 rlike

• 194 rollup

• 195 round

• 196 row_number

• 197 rpad

• 198 rtrim

• 199 second

• 200 sentences

• 201 sha

• 202 sha1

• 203 sha2

• 204 shiftleft

• 205 shiftright

• 206 shiftrightunsigned

• 207 sign

• 208 signum

• 209 sin

• 210 sinh

• 211 size

• 212 skewness

• 213 smallint

• 214 sort_array

• 215 soundex

• 216 space

• 217 spark_partition_id

• 218 split

• 219 sqrt

• 220 stack

• 221 std

• 222 stddev

• 223 stddev_pop

• 224 stddev_samp

• 225 str_to_map

• 226 string

• 227 struct

• 228 substr

• 229 substring

• 230 substring_index

• 231 sum

• 232 tan

• 233 tanh

• 234 timestamp

• 235 tinyint

• 236 to_date

• 237 to_json

• 238 to_timestamp

• 239 to_unix_timestamp

• 240 to_utc_timestamp

• 241 translate

• 242 trim

• 243 trunc

• 244 ucase

• 245 unbase64

• 246 unhex

• 247 unix_timestamp

• 248 upper

• 249 uuid

• 250 var_pop

• 251 var_samp

• 252 variance

• 253 weekofyear

• 254 when

• 255 window

• 256 xpath

• 257 xpath_boolean

• 258 xpath_double

• 259 xpath_float

• 260 xpath_int

• 261 xpath_long

• 262 xpath_number

• 263 xpath_short

• 264 xpath_string

• 265 year

繼續閱讀