skip to main content
Supported SQL Functionality and Extensions : SQL Expressions : Functions
  

Try DataDirect Drivers Now

Functions

The driver supports a number of functions that you can use in expressions, as listed in the following tables.
Table 23. Set Functions Supported
Set Function
Support in HiveQL
Count
Supported
AVG
Supported
MIN
Supported
MAX
Supported
SUM
Supported
DISTINCT
Supported
ALL
Supported
Table 24. Numeric Functions Supported
Numeric Function
Support in HiveQL
CHAR_LENGTH CHARACTER_LENGTH
Not supported. Use LENGTH(string) instead.
Position...In
Not supported
BIT_LENGTH(s)
Not supported
OCTET_LENGTH(str)
Not supported
EXTRACT...FROM
Not supported
TIMEZONE_HOUR
Not supported
TIMEZONE_MINUTE
Not supported
Table 25. String Functions Supported
String Function
Support in HiveQL
Substring
Supported
Convert … using
Not supported
TRIM
Supported.
Leading
Not supported. Use LTRIM.
Trailing
Not supported. Use RTRIM.
Both
Not supported (default behavior of TRIM)
Table 26. Date/Time Functions Supported
Date/Time Function
Support in HiveQL
CURRENT_DATE( )
Not supported
CURRENT_TIME( )
Not supported
CURRENT_TIMESTAMP
Not supported. Use UNIX_TIMESTAMP().
Table 27. System Functions Supported
System Function
Support in HiveQL
CASE ... END
Supported
COALESCE
Supported
NULLIF
Not supported
CAST
Supported