@Internal public interface SqlCallSyntax
BuiltInFunctionDefinitions
into a SQL string.Modifier and Type | Field and Description |
---|---|
static SqlCallSyntax |
AS
Special sql syntax for AS.
|
static SqlCallSyntax |
BINARY_OP
Binary operator syntax, as in "x + y".
|
static SqlCallSyntax |
CAST
Special sql syntax for CAST operators (CAST, TRY_CAST, REINTERPRET_CAST).
|
static SqlCallSyntax |
COLLECTION_CTOR
Function syntax for collection ctors, such as ARRAY[1, 2, 3] or MAP['a', 1, 'b', 2].
|
static SqlCallSyntax |
DISTINCT
Function syntax for handling DISTINCT aggregates.
|
static SqlCallSyntax |
FLOOR_OR_CEIL
Special sql syntax for FLOOR and CEIL.
|
static SqlCallSyntax |
FUNCTION
Function syntax, as in "Foo(x, y)".
|
static SqlCallSyntax |
IN
Call syntax for
BuiltInFunctionDefinitions.IN . |
static SqlCallSyntax |
MULTIPLE_BINARY_OP
Binary operator syntax that in Table API can accept multiple operands, as in "x AND y AND t
AND w".
|
static SqlCallSyntax |
OVER |
static SqlCallSyntax |
OVERLAY
Special sql syntax for OVERLAY.
|
static SqlCallSyntax |
SUBSTRING
Special sql syntax for SUBSTRING operators (SUBSTRING, SUBSTR).
|
static SqlCallSyntax |
TRIM
Special sql syntax for TRIM.
|
static SqlCallSyntax |
UNARY_PREFIX_OP
Prefix unary operator syntax, as in "- x".
|
static SqlCallSyntax |
UNARY_SUFFIX_OP
Postfix unary operator syntax, as in "x ++".
|
static SqlCallSyntax |
WINDOW_START_END |
Modifier and Type | Method and Description |
---|---|
String |
unparse(String sqlName,
List<ResolvedExpression> operands) |
default String |
unparseDistinct(String sqlName,
List<ResolvedExpression> operands)
Special case for aggregate functions, which can have a DISTINCT function applied.
|
static final SqlCallSyntax FUNCTION
static final SqlCallSyntax DISTINCT
static final SqlCallSyntax COLLECTION_CTOR
static final SqlCallSyntax BINARY_OP
static final SqlCallSyntax MULTIPLE_BINARY_OP
static final SqlCallSyntax UNARY_SUFFIX_OP
static final SqlCallSyntax UNARY_PREFIX_OP
static final SqlCallSyntax CAST
Example: CAST(123 AS STRING)
static final SqlCallSyntax SUBSTRING
Example: SUBSTR('abc' FROM 'abcdef' FOR 3)
static final SqlCallSyntax FLOOR_OR_CEIL
Examples:
static final SqlCallSyntax TRIM
Example: TRIM BOTH ' ' FROM 0;
static final SqlCallSyntax OVERLAY
Example: OVERLAY('abcd' PLACING 'def' FROM 3 FOR 2)
static final SqlCallSyntax AS
static final SqlCallSyntax IN
BuiltInFunctionDefinitions.IN
.static final SqlCallSyntax WINDOW_START_END
static final SqlCallSyntax OVER
String unparse(String sqlName, List<ResolvedExpression> operands)
default String unparseDistinct(String sqlName, List<ResolvedExpression> operands)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.