Sign in
apache
/
spark
/
v1.6.1
/
.
/
sql
/
hive
/
src
/
test
/
resources
/
golden
/
udf_if-0-b7ffa85b5785cccef2af1b285348cc2c
blob: ce583fe81ff6844c54351934d7f733d40a7076a2 [
file
] [
log
] [
blame
]
IF
(
expr1
,
expr2
,
expr3
)
-
If
expr1
is
TRUE
(
expr1
<>
0
and
expr1
<>
NULL
)
then
IF
()
returns expr2
;
otherwise it returns expr3
.
IF
()
returns a numeric
or
string
value
,
depending on the context
in
which it
is
used
.