mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
The prettyprint_duration function was originally implemented in IMPALA-12824 to work with the workload management tables which stored durations in integer nanoseconds. These tables have changed to store decimal seconds. The prettyprint_duration function would have required a large investment of time to make it work with decimal values, and since the new format is more human readable anyways, this function has been removed. Change-Id: If2154c2ed9a7217ed4b7587adeae87df55ff03dc Reviewed-on: http://gerrit.cloudera.org:8080/21208 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
1485 lines
44 KiB
XML
1485 lines
44 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
|
|
<concept id="builtins">
|
|
|
|
<title id="title_functions">Impala Built-In Functions</title>
|
|
|
|
<titlealts audience="PDF">
|
|
|
|
<navtitle>Built-In Functions</navtitle>
|
|
|
|
</titlealts>
|
|
|
|
<prolog>
|
|
<metadata>
|
|
<data name="Category" value="Impala"/>
|
|
<data name="Category" value="Impala Functions"/>
|
|
<data name="Category" value="SQL"/>
|
|
<data name="Category" value="Querying"/>
|
|
<data name="Category" value="Data Analysts"/>
|
|
<data name="Category" value="Developers"/>
|
|
</metadata>
|
|
</prolog>
|
|
|
|
<conbody>
|
|
|
|
<p>
|
|
Impala supports several categories of built-in functions. These functions let you perform
|
|
mathematical calculations, string manipulation, date calculations, and other kinds of data
|
|
transformations directly in SQL statements.
|
|
</p>
|
|
|
|
<p>
|
|
The categories of functions supported by Impala are:
|
|
</p>
|
|
|
|
<ul>
|
|
<li>
|
|
<xref href="impala_math_functions.xml#math_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_conversion_functions.xml#conversion_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_datetime_functions.xml#datetime_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_conditional_functions.xml#conditional_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_string_functions.xml#string_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_aggregate_functions.xml#aggregate_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_analytic_functions.xml#analytic_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_bit_functions.xml#bit_functions"/>
|
|
</li>
|
|
|
|
<li>
|
|
<xref href="impala_misc_functions.xml#misc_functions"/>
|
|
</li>
|
|
</ul>
|
|
|
|
<p>
|
|
The following is a list of built-in functions supported in Impala:
|
|
</p>
|
|
|
|
<table id="impala_functions" frame="none" colsep="0" rowsep="0">
|
|
<tgroup cols="1">
|
|
<colspec colnum="1" colname="col1"/>
|
|
<tbody>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/abs"
|
|
>ABS</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/acos"
|
|
>ACOS</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/add_months"
|
|
>ADD_MONTHS</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/adddate"
|
|
>ADDDATE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_appx_median.xml#appx_median">APPX_MEDIAN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/ascii"
|
|
>ASCII</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/asin"
|
|
>ASIN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/atan"
|
|
>ATAN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/atan2"
|
|
>ATAN2</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_avg.xml#avg">AVG</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#avg_analytic">AVG - Analytic
|
|
Function</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/base64decode"
|
|
>BASE64DECODE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/base64encode"
|
|
>BASE64ENCODE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/bitand"
|
|
>BITAND</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/bin"
|
|
>BIN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/bitnot"
|
|
>BITNOT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/bitor"
|
|
>BITOR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/bitxor"
|
|
>BITXOR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/btrim"
|
|
>BTRIM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/case"
|
|
>CASE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/case2"
|
|
>CASE
|
|
WHEN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conversion_functions.xml#conversion_functions/cast"
|
|
>CAST</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/ceil">CEIL, CEILING,
|
|
DCEIL</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/char_length"
|
|
>CHAR_LENGTH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/chr"
|
|
>CHR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/coalesce"
|
|
>COALESCE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/concat"
|
|
>CONCAT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/concat_ws"
|
|
>CONCAT_WS</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/conv"
|
|
>CONV</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/cos"
|
|
>COS</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/cosh"
|
|
>COSH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/cot"
|
|
>COT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_count.xml#count">COUNT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#count_analytic">COUNT - Analytic
|
|
Function</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/countset"
|
|
>COUNTSET</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#cume_dist"
|
|
>CUME_DIST</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_misc_functions.xml#misc_functions/current_database"
|
|
>CURRENT_DATABASE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/current_timestamp"
|
|
>CURRENT_TIMESTAMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/date_add"
|
|
>DATE_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/date_part"
|
|
>DATE_PART</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/date_sub"
|
|
>DATE_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/date_trunc"
|
|
>DATE_TRUNC</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/datediff"
|
|
>DATEDIFF</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_datetime_functions.xml#datetime_functions/day"
|
|
>DAY</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/dayname"
|
|
>DAYNAME</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/dayofweek"
|
|
>DAYOFWEEK</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/dayofyear"
|
|
>DAYOFYEAR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/days_add"
|
|
>DAYS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/days_sub"
|
|
>DAYS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/decode"
|
|
>DECODE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/degrees"
|
|
>DEGREES</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#dense_rank"
|
|
>DENSE_RANK</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/e">E</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_misc_functions.xml#misc_functions/effective_user"
|
|
>EFFECTIVE_USER</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/exp"
|
|
>EXP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/extract"
|
|
>EXTRACT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/factorial"
|
|
>FACTORIAL</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/find_in_set"
|
|
>FIND_IN_SET</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#first_value"
|
|
>FIRST_VALUE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/floor">FLOOR, DFLOOR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/fmod"
|
|
>FMOD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/fnv_hash"
|
|
>FNV_HASH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/from_unixtime"
|
|
>FROM_UNIXTIME</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/from_timestamp"
|
|
>FROM_TIMESTAMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/from_utc_timestamp"
|
|
>FROM_UTC_TIMESTAMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_misc_functions.xml#misc_functions/get_json_object"
|
|
>GET_JSON_OBJECT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/getbit"
|
|
>GETBIT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/greatest"
|
|
>GREATEST</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/group_concat"
|
|
>GROUP_CONCAT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_group_concat.xml#group_concat">GROUP_CONCAT - Analytic
|
|
Function</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/hex"
|
|
>HEX</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_datetime_functions.xml#datetime_functions/hour"
|
|
>HOUR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/hours_add"
|
|
>HOURS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/hours_sub"
|
|
>HOURS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/if"
|
|
>IF</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/ifnull"
|
|
>IFNULL</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/initcap"
|
|
>INITCAP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/instr"
|
|
>INSTR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/int_months_between"
|
|
>INT_MONTHS_BETWEEN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/is_inf"
|
|
>IS_INF</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/is_nan"
|
|
>IS_NAN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/isfalse"
|
|
>ISFALSE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/isnotfalse"
|
|
>ISNOTFALSE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/isnottrue"
|
|
>ISNOTTRUE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/isnull"
|
|
>ISNULL</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/istrue"
|
|
>ISTRUE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/jaro_distance">JARO_DISTANCE,
|
|
JARO_DIST</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/jaro_similarity"
|
|
>JARO_SIMILARITY,
|
|
JARO_SIM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/jaro_winkler_distance"
|
|
>JARO_WINKER_DISTANCE,
|
|
JW_DST</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/jaro_winkler_similarity"
|
|
>JARO_WINKER_SIMILARITY,
|
|
JW_SIM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#lag">LAG</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#last_value"
|
|
>LAST_VALUE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#lead">LEAD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/least"
|
|
>LEAST</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/left"
|
|
>LEFT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/length"
|
|
>LENGTH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/ln">LN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/locate"
|
|
>LOCATE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/log"
|
|
>LOG</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/log10"
|
|
>LOG10</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/log2"
|
|
>LOG2</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/lower"
|
|
>LOWER,
|
|
LCASE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/lpad"
|
|
>LPAD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/ltrim"
|
|
>LTRIM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_max.xml#max">MAX</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#max_analytic">MAX - Analytic
|
|
Function</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/max_int"
|
|
>MAX_INT,
|
|
MAX_TINYINT, MAX_SMALLINT, MAX_BIGINT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/microseconds_add"
|
|
>MICROSECONDS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/microseconds_sub"
|
|
>MICROSECONDS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/millisecond"
|
|
>MILLISECOND</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/milliseconds_add"
|
|
>MILLISECONDS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/milliseconds_sub"
|
|
>MILLISECONDS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_min.xml#min">MIN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#min_analytic">MIN - Analytic
|
|
Function</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/min_int"
|
|
>MIN_INT,
|
|
MIN_TINYINT, MIN_SMALLINT, MIN_BIGINT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/minute"
|
|
>MINUTE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/minutes_add"
|
|
>MINUTES_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/minutes_sub"
|
|
>MINUTES_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/mod"
|
|
>MOD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/month"
|
|
>MONTH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/monthname"
|
|
>MONTHNAME</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/months_add"
|
|
>MONTHS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/months_between"
|
|
>MONTHS_BETWEEN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/months_sub"
|
|
>MONTHS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/murmur_hash"
|
|
>MURMUR_HASH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/nanoseconds_add"
|
|
>NANOSECONDS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/nanoseconds_sub"
|
|
>NANOSECONDS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_ndv.xml#ndv">NDV</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/negative"
|
|
>NEGATIVE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/next_day"
|
|
>NEXT_DAY</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/nonnullvalue"
|
|
>NONNULLVALUE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_datetime_functions.xml#datetime_functions/now"
|
|
>NOW</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#ntile">NTILE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/nullif"
|
|
>NULLIF</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/nullifzero"
|
|
>NULLIFZERO</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/nullvalue"
|
|
>NULLVALUE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/nvl"
|
|
>NVL</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/nvl2"
|
|
>NVL2</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#over">OVER Clause</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/parse_url"
|
|
>PARSE_URL</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#percent_rank"
|
|
>PERCENT_RANK</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/pi">PI</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_misc_functions.xml#misc_functions/pid"
|
|
>PID</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/pmod"
|
|
>PMOD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/positive"
|
|
>POSITIVE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/pow">POW, POWER, DPOW,
|
|
FPOW</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/precision"
|
|
>PRECISION</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href=
|
|
"impala_string_functions.xml#string_functions/prettyprint_bytes">
|
|
PRETTYPRINT_BYTES</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/quarter"
|
|
>QUARTER</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/quotient"
|
|
>QUOTIENT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/radians"
|
|
>RADIANS</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/rand">RAND, RANDOM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#rank">RANK</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/regexp_escape"
|
|
>REGEXP_ESCAPE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/regexp_extract"
|
|
>REGEXP_EXTRACT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/regexp_like"
|
|
>REGEXP_LIKE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/regexp_replace"
|
|
>REGEXP_REPLACE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/repeat"
|
|
>REPEAT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/replace"
|
|
>REPLACE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/reverse"
|
|
>REVERSE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/right"
|
|
>RIGHT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/rotateleft"
|
|
>ROTATELEFT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/rotateright"
|
|
>ROTATERIGHT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/round">ROUND, DROUND</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#row_number"
|
|
>ROW_NUMBER</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/rpad"
|
|
>RPAD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/rtrim"
|
|
>RTRIM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/scale"
|
|
>SCALE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/second"
|
|
>SECOND</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/seconds_add"
|
|
>SECONDS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/seconds_sub"
|
|
>SECONDS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/setbit"
|
|
>SETBIT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/shiftleft"
|
|
>SHIFTLEFT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_bit_functions.xml#bit_functions/shiftright"
|
|
>SHIFTRIGHT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/sign"
|
|
>SIGN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/sin"
|
|
>SIN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/sinh"
|
|
>SINH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_misc_functions.xml#misc_functions/sleep"
|
|
>SLEEP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/space"
|
|
>SPACE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/split_part"
|
|
>SPLIT_PART</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/sqrt"
|
|
>SQRT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_stddev.xml#stddev">STDDEV, STDDEV_SAMP, STDDEV_POP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/strleft"
|
|
>STRLEFT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/strright"
|
|
>STRRIGHT</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/subdate"
|
|
>SUBDATE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/substr"
|
|
>SUBSTR,
|
|
SUBSTRING</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_sum.xml#sum">SUM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_analytic_functions.xml#sum_analytic">SUM - Analytic
|
|
Function</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/tan"
|
|
>TAN</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/tanh"
|
|
>TANH</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/timeofday"
|
|
>TIMEOFDAY</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/timestamp_cmp"
|
|
>TIMESTAMP_CMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/to_date"
|
|
>TO_DATE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/to_timestamp"
|
|
>TO_TIMESTAMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/to_utc_timestamp"
|
|
>TO_UTC_TIMESTAMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_string_functions.xml#string_functions/translate"
|
|
>TRANSLATE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/trim"
|
|
>TRIM</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/trunc"
|
|
>TRUNC</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/truncate"
|
|
>TRUNCATE,
|
|
DTRUNC, TRUNC</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conversion_functions.xml#conversion_functions/typeof"
|
|
>TYPEOF</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/unhex"
|
|
>UNHEX</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/unix_timestamp"
|
|
>UNIX_TIMESTAMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_string_functions.xml#string_functions/upper"
|
|
>UPPER,
|
|
UCASE</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_misc_functions.xml#misc_functions/user"
|
|
>USER</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/utc_timestamp"
|
|
>UTC_TIMESTAMP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_misc_functions.xml#misc_functions/uuid"
|
|
>UUID</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_variance.xml#variance">VARIANCE, VARIANCE_SAMP, VARIANCE_POP,
|
|
VAR_SAMP, VAR_POP</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_misc_functions.xml#misc_functions/version"
|
|
>VERSION</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/weekofyear"
|
|
>WEEKOFYEAR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/weeks_add"
|
|
>WEEKS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/weeks_sub"
|
|
>WEEKS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_math_functions.xml#math_functions/width_bucket"
|
|
>WIDTH_BUCKET</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref href="impala_datetime_functions.xml#datetime_functions/year"
|
|
>YEAR</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/years_add"
|
|
>YEARS_ADD</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_datetime_functions.xml#datetime_functions/years_sub"
|
|
>YEARS_SUB</xref>
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>
|
|
<xref
|
|
href="impala_conditional_functions.xml#conditional_functions/zeroifnull"
|
|
>ZEROIFNULL</xref>
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
|
|
</conbody>
|
|
|
|
</concept>
|