Class SqlStdOperatorTable
- All Implemented Interfaces:
SqlOperatorTable
SqlOperatorTable
containing
the standard operators and functions.-
Field Summary
Modifier and TypeFieldDescriptionstatic final SqlFunction
TheABS(numeric)
function.static final SqlFunction
TheACOS(numeric)
function.static final SqlQuantifyOperator
static final SqlQuantifyOperator
static final SqlQuantifyOperator
static final SqlQuantifyOperator
static final SqlQuantifyOperator
The< ALL
operator.static final SqlQuantifyOperator
static final SqlBinaryOperator
LogicalAND
operator.static final SqlAggFunction
ANY_VALUE
aggregate function.static final SqlAggFunction
APPROX_COUNT_DISTINCT
aggregate function.static final SqlBasicAggFunction
ARG_MAX
aggregate function.static final SqlBasicAggFunction
ARG_MIN
aggregate function.static final SqlSpecialOperator
ARGUMENT_ASSIGNMENT
operator (=<
) assigns an argument to a function call to a particular named parameter.static final SqlMultisetQueryConstructor
The ARRAY Query Constructor.static final SqlArrayValueConstructor
The ARRAY Value Constructor.static final SqlAsOperator
AS
operator associates an expression in the SELECT clause with an alias.static final SqlFunction
static final SqlFunction
TheASIN(numeric)
function.static final SqlFunction
TheATAN(numeric)
function.static final SqlFunction
TheATAN2(numeric, numeric)
function.static final SqlAggFunction
AVG
aggregate function.static final SqlBetweenOperator
static final SqlAggFunction
BIT_AND
aggregate function.static final SqlAggFunction
BIT_OR
aggregate function.static final SqlAggFunction
BIT_XOR
aggregate function.static final SqlFunction
BITAND
scalar function.static final SqlBasicFunction
static final SqlFunction
BITNOT
scalar function.static final SqlFunction
BITOR
scalar function.static final SqlFunction
BITXOR
scalar function.static final SqlFunction
The CARDINALITY operator, used to retrieve the number of elements in a MULTISET, ARRAY or MAP.static final SqlCaseOperator
static final SqlFunction
The SQLCAST
operator.static final SqlFunction
TheCBRT(numeric)
function.static final SqlFunction
TheCEIL
function.static final SqlBasicFunction
static final SqlFunction
Alias forCHAR_LENGTH
.static final SqlMatchFunction
CLASSIFIER
function to be used withinMATCH_RECOGNIZE
.static final SqlFunction
The COALESCE builtin function.static final SqlAggFunction
The COLLECT operator.static final SqlSpecialOperator
The "table function derived table" operator, which a table-valued function into a relation, e.g.static final SqlColumnListConstructor
The COLUMN_LIST constructor.static final SqlBinaryOperator
String and array-to-array concatenation operator, '||
'.static final SqlOverlapsOperator
static final SqlFunction
TheCONVERT(charValue, srcCharsetName, destCharsetName)
function convertscharValue
withdestCharsetName
, whose original encoding is specified bysrcCharsetName
.static final SqlFunction
TheCOS(numeric)
function.static final SqlFunction
TheCOT(numeric)
function.static final SqlAggFunction
COUNT
aggregate function.static final SqlAggFunction
COVAR_POP
aggregate function.static final SqlAggFunction
COVAR_SAMP
aggregate function.static final SqlInternalOperator
CUBE
operator, occurs withinGROUP BY
clause or nested within aGROUPING SETS
.static final SqlRankFunction
CUME_DIST
window function.static final SqlFunction
TheCURRENT_CATALOG
function.static final SqlFunction
TheCURRENT_DATE
function.static final SqlFunction
TheCURRENT_PATH
function.static final SqlFunction
TheCURRENT_ROLE
function.static final SqlFunction
TheCURRENT_SCHEMA
function.static final SqlFunction
TheCURRENT_TIME [(precision)]
function.static final SqlFunction
TheCURRENT_TIMESTAMP [(precision)]
function.static final SqlFunction
TheCURRENT_USER
function.static final SqlOperator
The sequence current value function:CURRENT VALUE FOR sequence
.static final SqlCursorConstructor
The CURSOR constructor.static final SqlSpecialOperator
Infix datetime plus operator, 'DATETIME + INTERVAL
'.static final SqlDatePartFunction
The SQLDAYOFMONTH
operator.static final SqlDatePartFunction
The SQLDAYOFWEEK
operator.static final SqlDatePartFunction
The SQLDAYOFYEAR
operator.static final SqlSpecialOperator
DEFAULT
operator indicates that an argument to a function call is to take its default value..static final SqlFunction
TheDEGREES(numeric)
function.static final SqlRankFunction
DENSE_RANK
window function.static final SqlPostfixOperator
static final SqlOperator
DESCRIPTOR(column_name, ...).static final SqlBinaryOperator
Arithmetic division operator, '/
'.static final SqlBinaryOperator
Internal integer arithmetic division operator, '/INT
'.static final SqlOperator
Dot operator, '.
', used for referencing fields of records.static final SqlFunction
The ELEMENT operator, used to convert a multiset with only one item to a "regular" type.static final SqlInternalOperator
The internal "$ELEMENT_SLICE" operator returns the first field of the only element of a multiset.static final SqlBinaryOperator
Logical equals operator, '=
'.static final SqlSpecialOperator
Internal operator used to represent the ESCAPE clause of a LIKE or SIMILAR TO expression.static final SqlAggFunction
EVERY
aggregate function.static final SqlSetOperator
static final SqlSetOperator
static final SqlPrefixOperator
static final SqlFunction
TheEXP(numeric)
function.static final SqlPrefixOperator
Keyword which allows an identifier to be explicitly flagged as a table.static final SqlInternalOperator
EXTEND
operator.static final SqlFunction
The SQLEXTRACT
operator.static final SqlFilterOperator
FILTER
operator filters which rows are included in an aggregate function.static final SqlPrefixOperator
FINAL
function to be used withinMATCH_RECOGNIZE
.static final SqlFunction
FIRST
function to be used withinMATCH_RECOGNIZE
.static final SqlAggFunction
FIRST_VALUE
aggregate function.static final SqlFunction
TheFLOOR
function.static final SqlAggFunction
The FUSION operator.static final SqlBinaryOperator
Logical greater-than operator, '>
'.static final SqlBinaryOperator
Logical greater-than-or-equal operator, '>=
'.static final SqlAggFunction
GROUP_ID()
function.static final SqlAggFunction
GROUPING(c1 [, c2, ...])
function.static final SqlAggFunction
GROUPING_ID
function is a synonym forGROUPING
.static final SqlInternalOperator
GROUPING SETS
operator, occurs withinGROUP BY
clause or nested within aGROUPING SETS
.static final SqlAggFunction
HISTOGRAM
aggregate function support.static final SqlFunction
HISTOGRAM_FIRST_VALUE
window aggregate function.static final SqlFunction
HISTOGRAM_LAST_VALUE
window aggregate function.static final SqlFunction
HISTOGRAM_MAX
window aggregate function.static final SqlFunction
HISTOGRAM_MIN
window aggregate function.static final SqlFunction
HOP as a table function.static final SqlGroupedWindowFunction
TheHOP_END
auxiliary function of theHOP
group function.static final SqlGroupedWindowFunction
TheHOP
group function.static final SqlGroupedWindowFunction
TheHOP_START
auxiliary function of theHOP
group function.static final SqlDatePartFunction
The SQLHOUR
operator.static final SqlNullTreatmentOperator
IGNORE NULLS
operator.static final SqlOverlapsOperator
static final SqlOverlapsOperator
static final SqlBinaryOperator
IN
operator tests for a value's membership in a sub-query or a list of values.static final SqlFunction
Use of theIN_FENNEL
operator forces the argument to be evaluated in Fennel.static final SqlFunction
static final SqlSetOperator
static final SqlSetOperator
static final SqlAggFunction
The INTERSECTION operator.static final SqlSpecialOperator
Interval expression, 'INTERVAL n timeUnit
'.static final SqlPostfixOperator
static final SqlBinaryOperator
The internal$IS_DIFFERENT_FROM
operator is the same as the user-levelIS_DISTINCT_FROM
in all respects except that the test for equality on character datatypes treats trailing spaces as significant.static final SqlBinaryOperator
IS DISTINCT FROM
operator.static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlBinaryOperator
IS NOT DISTINCT FROM
operator.static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlOperator
The item operator[ ... ]
, used to access a given element of an array, map or struct.static final SqlFunction
static final SqlJsonArrayAggAggFunction
static final SqlFunction
Deprecated.static final SqlFunction
static final SqlFunction
Deprecated.static final SqlFunction
Deprecated.static final SqlFunction
Deprecated.static final SqlFunction
static final SqlJsonObjectAggAggFunction
static final SqlFunction
Deprecated.static final SqlFunction
static final SqlFunction
Deprecated.static final SqlFunction
Deprecated.static final SqlFunction
Deprecated.static final SqlFunction
Deprecated.static final SqlFunction
Deprecated.static final org.apache.calcite.sql.fun.SqlJsonTypeOperator
static final SqlFunction
static final SqlPostfixOperator
static final SqlAggFunction
LAG
aggregate function.static final SqlMatchFunction
LAST
function to be used withinMATCH_RECOGNIZE
.static final SqlFunction
TheLAST_DAY(date)
function.static final SqlAggFunction
LAST_VALUE
aggregate function.static final SqlSpecialOperator
TheLATERAL
operator.static final SqlAggFunction
LEAD
aggregate function.static final SqlBinaryOperator
Logical less-than operator, '<
'.static final SqlBinaryOperator
Logical less-than-or-equal operator, '<=
'.static final SqlSpecialOperator
static final SqlAggFunction
The LISTAGG operator.static final SqlLiteralChainOperator
static final SqlFunction
TheLN(numeric)
function.static final SqlFunction
TheLOCALTIME [(precision)]
function.static final SqlFunction
TheLOCALTIMESTAMP [(precision)]
function.static final SqlFunction
TheLOG10(numeric)
function.static final SqlFunction
static final SqlMultisetQueryConstructor
The MAP Query Constructor.static final SqlMapValueConstructor
The MAP Value Constructor, e.g.static final SqlFunction
MATCH_NUMBER
function to be used withinMATCH_RECOGNIZE
.static final SqlAggFunction
MAX
aggregate function.static final SqlBinaryOperator
MultisetMEMBER OF
, which returns whether a element belongs to a multiset.static final SqlAggFunction
MIN
aggregate function.static final SqlBinaryOperator
Infix arithmetic minus operator, '-
'.static final SqlDatetimeSubtractionOperator
A special operator for the subtraction of two DATETIMEs.static final SqlDatePartFunction
The SQLMINUTE
operator.static final SqlFunction
Arithmetic remainder functionMOD
.static final SqlAggFunction
MODE
aggregate function.static final SqlDatePartFunction
The SQLMONTH
operator.static final SqlBinaryOperator
Arithmetic multiplication operator, '*
'.static final SqlMultisetSetOperator
TheMULTISET EXCEPT [ALL]
operator.static final SqlMultisetSetOperator
TheMULTISET EXCEPT DISTINCT
operator.static final SqlMultisetSetOperator
TheMULTISET INTERSECT [ALL]
operator.static final SqlMultisetSetOperator
TheMULTISET INTERSECT DISTINCT
operator.static final SqlMultisetQueryConstructor
The MULTISET Query Constructor.static final SqlMultisetSetOperator
TheMULTISET UNION [ALL]
operator.static final SqlMultisetSetOperator
TheMULTISET UNION DISTINCT
operator.static final SqlMultisetValueConstructor
The MULTISET Value Constructor.static final SqlBinaryOperator
static final SqlBinaryOperator
static final SqlOperator
static final SqlFunction
NEXT
function to be used withinMATCH_RECOGNIZE
.static final SqlOperator
The sequence next value function:NEXT VALUE FOR sequence
.static final SqlPrefixOperator
static final SqlBetweenOperator
static final SqlBinaryOperator
Logical not-equals operator, '<>
'.static final SqlBinaryOperator
NOT IN
operator tests for a value's membership in a sub-query or a list of values.static final SqlSpecialOperator
static final SqlSpecialOperator
static final SqlBinaryOperator
static final SqlAggFunction
NTH_VALUE
aggregate function.static final SqlAggFunction
NTILE
aggregate function.static final SqlFunction
static final SqlPostfixOperator
static final SqlPostfixOperator
static final SqlFunction
protected com.google.common.collect.ImmutableMultimap<String,
SqlOperator> Contains all (name, operator) pairs.static final SqlBinaryOperator
LogicalOR
operator.static final SqlBinaryOperator
TheOVER
operator, which applies an aggregate functions to awindow
.static final SqlOverlapsOperator
static final SqlFunction
static final SqlBinaryOperator
|
operator to create alternate patterns withinMATCH_RECOGNIZE
.static final SqlBinaryOperator
Operator to concatenate patterns withinMATCH_RECOGNIZE
.static final SqlSpecialOperator
EXCLUDE
operator withinMATCH_RECOGNIZE
.static final SqlSpecialOperator
PERMUTE
operator to combine patterns withinMATCH_RECOGNIZE
.static final SqlSpecialOperator
Operator to quantify patterns withinMATCH_RECOGNIZE
.static final SqlRankFunction
PERCENT_RANK
window function.static final SqlBinaryOperator
Arithmetic remainder operator, '%
', an alternative toMOD
allowed if under certain conformance levels.static final SqlAggFunction
PERCENTILE_CONT
inverse distribution aggregate function.static final SqlAggFunction
PERCENTILE_DISC
inverse distribution aggregate function.static final SqlOverlapsOperator
static final SqlFunction
ThePI
function.static final SqlBinaryOperator
Infix arithmetic plus operator, '+
'.static final SqlFunction
static final SqlBinaryOperator
static final SqlBinaryOperator
static final SqlBasicFunction
ThePOWER(numeric, numeric)
function.static final SqlOverlapsOperator
static final SqlMatchFunction
PREV
function to be used withinMATCH_RECOGNIZE
.static final SqlOperator
static final List<SqlQuantifyOperator>
static final SqlDatePartFunction
The SQLQUARTER
operator.static final SqlFunction
TheRADIANS(numeric)
function.static final SqlBasicFunction
TheRAND([seed])
function, which yields a random double, optionally with seed.static final SqlRandIntegerFunction
TheRAND_INTEGER([seed, ] bound)
function, which yields a random integer, optionally with seed.static final SqlRankFunction
RANK
window function.static final SqlAggFunction
REGR_COUNT
aggregate function.static final SqlAggFunction
REGR_SXX
aggregate function.static final SqlAggFunction
REGR_SYY
aggregate function.static final SqlSpecialOperator
AnREINTERPRET
operator is internal to the planner.static final SqlFunction
TheREPLACE(string, search, replace)
function.static final SqlNullTreatmentOperator
RESPECT NULLS
operator.static final SqlInternalOperator
ROLLUP
operator, occurs withinGROUP BY
clause or nested within aGROUPING SETS
.static final SqlFunction
TheROUND(numeric [, integer])
function.static final SqlRowOperator
static final SqlRankFunction
ROW_NUMBER
window function.static final SqlPrefixOperator
RUNNING
function to be used withinMATCH_RECOGNIZE
.static final SqlInternalOperator
The internal "$SCALAR_QUERY" operator returns a scalar value from a record type.static final SqlInternalOperator
Operator that tests whether its left operand is included in the range of values covered by search arguments.static final SqlDatePartFunction
The SQLSECOND
operator.static final SqlFunction
SESSION as a table function.static final SqlGroupedWindowFunction
TheSESSION_END
auxiliary function of theSESSION
group function.static final SqlGroupedWindowFunction
TheSESSION
group function.static final SqlGroupedWindowFunction
TheSESSION_START
auxiliary function of theSESSION
group function.static final SqlFunction
TheSESSION_USER
function.static final SqlInternalOperator
SetSemanticsTable represents as an input table with set semantics.static final SqlFunction
TheSIGN(numeric)
function.static final SqlSpecialOperator
static final SqlFunction
TheSIN(numeric)
function.static final SqlAggFunction
SINGLE_VALUE
aggregate function.static final SqlInternalOperator
The internal "$SLICE" operator takes a multiset of records and returns a multiset of the first column of those records.static final SqlAggFunction
SOME
aggregate function.static final SqlQuantifyOperator
static final SqlQuantifyOperator
static final SqlQuantifyOperator
static final SqlQuantifyOperator
static final SqlQuantifyOperator
The< SOME
operator (synonymous with< ANY
).static final SqlQuantifyOperator
static final SqlFunction
TheSQRT(numeric)
function.static final SqlAggFunction
STDDEV
aggregate function.static final SqlAggFunction
STDDEV_POP
aggregate function.static final SqlAggFunction
STDDEV_SAMP
aggregate function.static final SqlInternalOperator
The internal$STRUCT_ACCESS
operator is used to access a field of a record.static final SqlBinaryOperator
Submultiset.static final SqlFunction
The character substring function:SUBSTRING(string FROM start [FOR length])
.static final SqlOverlapsOperator
static final SqlAggFunction
SUM
aggregate function.static final SqlAggFunction
SUM0
aggregate function.static final SqlBetweenOperator
static final SqlBetweenOperator
static final SqlFunction
TheSYSTEM_USER
function.static final SqlSpecialOperator
TheTABLESAMPLE
operator.static final SqlFunction
TheTAN(numeric)
function.static final SqlThrowOperator
static final SqlFunction
TheTIMESTAMPADD
function.static final SqlFunction
TheTIMESTAMPDIFF
function.static final SqlFunction
TheTRANSLATE/CONVERT(char_value USING transcodingName)
function alters the character set of a string value from one base character set to transcodingName.static final SqlFunction
The "TRIM" function.static final SqlBasicFunction
TheTRUNCATE(numeric [, integer])
function.static final SqlFunction
TUMBLE as a table function.static final SqlGroupedWindowFunction
TheTUMBLE_END
auxiliary function of theTUMBLE
group function.static final SqlGroupedWindowFunction
TheTUMBLE
group function.static final SqlGroupedWindowFunction
TheTUMBLE_START
auxiliary function of theTUMBLE
group function.static final SqlPrefixOperator
Prefix arithmetic minus operator, '-
'.static final SqlPrefixOperator
Prefix arithmetic plus operator, '+
'.static final SqlSetOperator
static final SqlSetOperator
static final SqlPrefixOperator
static final SqlUnnestOperator
TheUNNEST
operator.static final SqlUnnestOperator
TheUNNEST WITH ORDINALITY
operator.static final SqlFunction
static final SqlFunction
TheUSER
function.static final SqlSpecialOperator
static final SqlAggFunction
VAR_POP
aggregate function.static final SqlAggFunction
VAR_SAMP
aggregate function.static final SqlAggFunction
VARIANCE
aggregate function.static final SqlDatePartFunction
The SQLWEEK
operator.static final SqlWithinDistinctOperator
WITHIN_DISTINCT
operator performs aggregations on distinct data input.static final SqlWithinGroupOperator
WITHIN_GROUP
operator performs aggregations on ordered data input.static final SqlDatePartFunction
The SQLYEAR
operator.Fields inherited from class org.apache.calcite.sql.util.ReflectiveSqlOperatorTable
IS_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SqlQuantifyOperator
Returns the operator forALL comparisonKind
.static @Nullable SqlGroupedWindowFunction
auxiliaryToGroup
(SqlKind kind) Returns the group function for which a given kind is an auxiliary function, or null if it is not an auxiliary function.protected static com.google.common.collect.ImmutableMultimap<String,
SqlOperator> buildIndex
(Iterable<? extends SqlOperator> operators) Derives a value to be assigned tooperators
from a given list of operators.static @Nullable SqlCall
Converts a call to a grouped auxiliary function to a call to the grouped window function.static List<Pair<SqlNode,
AuxiliaryConverter>> Deprecated.static void
convertGroupToAuxiliaryCalls
(SqlCall call, BiConsumer<SqlNode, AuxiliaryConverter> consumer) Converts a call to a grouped window function to a call to its auxiliary window function(s).static SqlOperator
floorCeil
(boolean floor, SqlConformance conformance) Returns the operator forFLOOR
andCEIL
with given floor flag and library.Retrieves a list of all functions and operators in this table.static SqlStdOperatorTable
instance()
Returns the standard operator table, creating it if necessary.static SqlOperator
like
(boolean negated, boolean caseSensitive) Returns the operator forLIKE
with given case-sensitivity, optionally negated.protected void
lookUpOperators
(String name, boolean caseSensitive, Consumer<SqlOperator> consumer) Looks up operators, optionally matching case-sensitively.static SqlOperator
reverse
(SqlOperator operator) Deprecated.protected void
setOperators
(com.google.common.collect.Multimap<String, SqlOperator> operators) static SqlQuantifyOperator
Returns the operator forSOME comparisonKind
.Methods inherited from class org.apache.calcite.sql.util.ReflectiveSqlOperatorTable
init, lookupOperatorOverloads, register
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.sql.SqlOperatorTable
getOperatorList
-
Field Details
-
UNION
-
UNION_ALL
-
EXCEPT
-
EXCEPT_ALL
-
INTERSECT
-
INTERSECT_ALL
-
MULTISET_UNION_DISTINCT
TheMULTISET UNION DISTINCT
operator. -
MULTISET_UNION
TheMULTISET UNION [ALL]
operator. -
MULTISET_EXCEPT_DISTINCT
TheMULTISET EXCEPT DISTINCT
operator. -
MULTISET_EXCEPT
TheMULTISET EXCEPT [ALL]
operator. -
MULTISET_INTERSECT_DISTINCT
TheMULTISET INTERSECT DISTINCT
operator. -
MULTISET_INTERSECT
TheMULTISET INTERSECT [ALL]
operator. -
AND
LogicalAND
operator. -
AS
AS
operator associates an expression in the SELECT clause with an alias. -
ARGUMENT_ASSIGNMENT
ARGUMENT_ASSIGNMENT
operator (=<
) assigns an argument to a function call to a particular named parameter. -
DEFAULT
DEFAULT
operator indicates that an argument to a function call is to take its default value.. -
FILTER
FILTER
operator filters which rows are included in an aggregate function. -
WITHIN_GROUP
WITHIN_GROUP
operator performs aggregations on ordered data input. -
WITHIN_DISTINCT
WITHIN_DISTINCT
operator performs aggregations on distinct data input. -
CUBE
CUBE
operator, occurs withinGROUP BY
clause or nested within aGROUPING SETS
. -
ROLLUP
ROLLUP
operator, occurs withinGROUP BY
clause or nested within aGROUPING SETS
. -
GROUPING_SETS
GROUPING SETS
operator, occurs withinGROUP BY
clause or nested within aGROUPING SETS
. -
GROUPING
GROUPING(c1 [, c2, ...])
function.Occurs in similar places to an aggregate function (
SELECT
,HAVING
clause, etc. of an aggregate query), but not technically an aggregate function. -
GROUP_ID
GROUP_ID()
function. (Oracle-specific.) -
GROUPING_ID
GROUPING_ID
function is a synonym forGROUPING
.Some history. The
GROUPING
function is in the SQL standard, and originally supported only one argument.GROUPING_ID
is not standard (though supported in Oracle and SQL Server) and supports one or more arguments.The SQL standard has changed to allow
GROUPING
to have multiple arguments. It is now equivalent toGROUPING_ID
, so we madeGROUPING_ID
a synonym forGROUPING
. -
EXTEND
EXTEND
operator. -
CONCAT
String and array-to-array concatenation operator, '||
'.- See Also:
-
DIVIDE
Arithmetic division operator, '/
'. -
PERCENT_REMAINDER
Arithmetic remainder operator, '%
', an alternative toMOD
allowed if under certain conformance levels. -
RAND_INTEGER
TheRAND_INTEGER([seed, ] bound)
function, which yields a random integer, optionally with seed. -
RAND
TheRAND([seed])
function, which yields a random double, optionally with seed. -
DIVIDE_INTEGER
Internal integer arithmetic division operator, '/INT
'. This is only used to adjust scale for numerics. We distinguish it from user-requested division since some personalities want a floating-point computation, whereas for the internal scaling use of division, we always want integer division. -
DOT
Dot operator, '.
', used for referencing fields of records. -
EQUALS
Logical equals operator, '=
'. -
GREATER_THAN
Logical greater-than operator, '>
'. -
IS_DISTINCT_FROM
IS DISTINCT FROM
operator. -
IS_NOT_DISTINCT_FROM
IS NOT DISTINCT FROM
operator. Is equivalent toNOT(x IS DISTINCT FROM y)
-
IS_DIFFERENT_FROM
The internal$IS_DIFFERENT_FROM
operator is the same as the user-levelIS_DISTINCT_FROM
in all respects except that the test for equality on character datatypes treats trailing spaces as significant. -
GREATER_THAN_OR_EQUAL
Logical greater-than-or-equal operator, '>=
'. -
IN
IN
operator tests for a value's membership in a sub-query or a list of values. -
NOT_IN
NOT IN
operator tests for a value's membership in a sub-query or a list of values. -
SEARCH
Operator that tests whether its left operand is included in the range of values covered by search arguments. -
SOME_LT
The< SOME
operator (synonymous with< ANY
). -
SOME_LE
-
SOME_GT
-
SOME_GE
-
SOME_EQ
-
SOME_NE
-
ALL_LT
The< ALL
operator. -
ALL_LE
-
ALL_GT
-
ALL_GE
-
ALL_EQ
-
ALL_NE
-
QUANTIFY_OPERATORS
-
LESS_THAN
Logical less-than operator, '<
'. -
LESS_THAN_OR_EQUAL
Logical less-than-or-equal operator, '<=
'. -
MINUS
-
MULTIPLY
Arithmetic multiplication operator, '*
'. -
NOT_EQUALS
Logical not-equals operator, '<>
'. -
OR
LogicalOR
operator. -
PLUS
Infix arithmetic plus operator, '+
'. -
DATETIME_PLUS
Infix datetime plus operator, 'DATETIME + INTERVAL
'. -
INTERVAL
Interval expression, 'INTERVAL n timeUnit
'. -
MEMBER_OF
MultisetMEMBER OF
, which returns whether a element belongs to a multiset.For example, the following returns
false
:'green' MEMBER OF MULTISET ['red','almost green','blue']
-
SUBMULTISET_OF
Submultiset. Checks to see if an multiset is a sub-set of another multiset.For example, the following returns
false
:MULTISET ['green'] SUBMULTISET OF MULTISET['red', 'almost green', 'blue']
The following returns
true
, in part because multisets are order-independent:MULTISET ['blue', 'red'] SUBMULTISET OF MULTISET ['red', 'almost green', 'blue']
-
NOT_SUBMULTISET_OF
-
DESC
-
NULLS_FIRST
-
NULLS_LAST
-
IS_NOT_NULL
-
IS_NULL
-
IS_NOT_TRUE
-
IS_TRUE
-
IS_NOT_FALSE
-
IS_FALSE
-
IS_NOT_UNKNOWN
-
IS_UNKNOWN
-
IS_A_SET
-
IS_NOT_A_SET
-
IS_EMPTY
-
IS_NOT_EMPTY
-
IS_JSON_VALUE
-
IS_NOT_JSON_VALUE
-
IS_JSON_OBJECT
-
IS_NOT_JSON_OBJECT
-
IS_JSON_ARRAY
-
IS_NOT_JSON_ARRAY
-
IS_JSON_SCALAR
-
IS_NOT_JSON_SCALAR
-
JSON_VALUE_EXPRESSION
-
JSON_TYPE_OPERATOR
public static final org.apache.calcite.sql.fun.SqlJsonTypeOperator JSON_TYPE_OPERATOR -
EXISTS
-
UNIQUE
-
NOT
-
UNARY_MINUS
-
UNARY_PLUS
-
EXPLICIT_TABLE
Keyword which allows an identifier to be explicitly flagged as a table. For example,select * from (TABLE t)
orTABLE t
. See alsoCOLLECTION_TABLE
. -
FINAL
FINAL
function to be used withinMATCH_RECOGNIZE
. -
RUNNING
RUNNING
function to be used withinMATCH_RECOGNIZE
. -
SUM
SUM
aggregate function. -
COUNT
COUNT
aggregate function. -
MODE
MODE
aggregate function. -
APPROX_COUNT_DISTINCT
APPROX_COUNT_DISTINCT
aggregate function. -
ARG_MAX
ARG_MAX
aggregate function. -
ARG_MIN
ARG_MIN
aggregate function. -
MIN
MIN
aggregate function. -
MAX
MAX
aggregate function. -
EVERY
EVERY
aggregate function. -
SOME
SOME
aggregate function. -
LAST_VALUE
LAST_VALUE
aggregate function. -
ANY_VALUE
ANY_VALUE
aggregate function. -
FIRST_VALUE
FIRST_VALUE
aggregate function. -
NTH_VALUE
NTH_VALUE
aggregate function. -
LEAD
LEAD
aggregate function. -
LAG
LAG
aggregate function. -
NTILE
NTILE
aggregate function. -
SINGLE_VALUE
SINGLE_VALUE
aggregate function. -
AVG
AVG
aggregate function. -
STDDEV_POP
STDDEV_POP
aggregate function. -
REGR_COUNT
REGR_COUNT
aggregate function. -
REGR_SXX
REGR_SXX
aggregate function. -
REGR_SYY
REGR_SYY
aggregate function. -
COVAR_POP
COVAR_POP
aggregate function. -
COVAR_SAMP
COVAR_SAMP
aggregate function. -
STDDEV_SAMP
STDDEV_SAMP
aggregate function. -
STDDEV
STDDEV
aggregate function. -
VAR_POP
VAR_POP
aggregate function. -
VAR_SAMP
VAR_SAMP
aggregate function. -
VARIANCE
VARIANCE
aggregate function. -
BITCOUNT
-
BITAND
BITAND
scalar function. -
BITOR
BITOR
scalar function. -
BITXOR
BITXOR
scalar function. -
BITNOT
BITNOT
scalar function. -
BIT_AND
BIT_AND
aggregate function. -
BIT_OR
BIT_OR
aggregate function. -
BIT_XOR
BIT_XOR
aggregate function. -
HISTOGRAM_AGG
HISTOGRAM
aggregate function support. Used by window aggregate versions of MIN/MAX -
HISTOGRAM_MIN
HISTOGRAM_MIN
window aggregate function. -
HISTOGRAM_MAX
HISTOGRAM_MAX
window aggregate function. -
HISTOGRAM_FIRST_VALUE
HISTOGRAM_FIRST_VALUE
window aggregate function. -
HISTOGRAM_LAST_VALUE
HISTOGRAM_LAST_VALUE
window aggregate function. -
SUM0
SUM0
aggregate function. -
CUME_DIST
CUME_DIST
window function. -
DENSE_RANK
DENSE_RANK
window function. -
PERCENT_RANK
PERCENT_RANK
window function. -
RANK
RANK
window function. -
ROW_NUMBER
ROW_NUMBER
window function. -
ROW
-
IGNORE_NULLS
IGNORE NULLS
operator. -
RESPECT_NULLS
RESPECT NULLS
operator. -
MINUS_DATE
A special operator for the subtraction of two DATETIMEs. The format of DATETIME subtraction is:"(" <datetime> "-" <datetime> ")" <interval qualifier>
This operator is special since it needs to hold the additional interval qualifier specification.
-
MULTISET_VALUE
The MULTISET Value Constructor. e.g. "MULTISET[1,2,3]
". -
MULTISET_QUERY
The MULTISET Query Constructor. e.g. "SELECT dname, MULTISET(SELECT FROM emp WHERE deptno = dept.deptno) FROM dept
". -
ARRAY_QUERY
The ARRAY Query Constructor. e.g. "SELECT dname, ARRAY(SELECT FROM emp WHERE deptno = dept.deptno) FROM dept
". -
MAP_QUERY
The MAP Query Constructor. e.g. "MAP(SELECT empno, deptno FROM emp)
". -
CURSOR
The CURSOR constructor. e.g. "SELECT * FROM TABLE(DEDUP(CURSOR(SELECT * FROM EMPS), 'name'))
". -
COLUMN_LIST
The COLUMN_LIST constructor. e.g. the ROW() call in "SELECT * FROM TABLE(DEDUP(CURSOR(SELECT * FROM EMPS), ROW(name, empno)))
". -
UNNEST
TheUNNEST
operator. -
UNNEST_WITH_ORDINALITY
TheUNNEST WITH ORDINALITY
operator. -
LATERAL
TheLATERAL
operator. -
COLLECTION_TABLE
The "table function derived table" operator, which a table-valued function into a relation, e.g. "SELECT * FROM TABLE(ramp(5))
".This operator has function syntax (with one argument), whereas
EXPLICIT_TABLE
is a prefix operator. -
OVERLAPS
-
CONTAINS
-
PRECEDES
-
IMMEDIATELY_PRECEDES
-
SUCCEEDS
-
IMMEDIATELY_SUCCEEDS
-
PERIOD_EQUALS
-
VALUES
-
LITERAL_CHAIN
-
THROW
-
JSON_EXISTS
-
JSON_VALUE
-
JSON_QUERY
-
JSON_OBJECT
-
JSON_OBJECTAGG
-
JSON_ARRAY
-
JSON_TYPE
Deprecated. -
JSON_DEPTH
Deprecated. -
JSON_LENGTH
Deprecated. -
JSON_KEYS
Deprecated. -
JSON_PRETTY
Deprecated. -
JSON_REMOVE
Deprecated. -
JSON_STORAGE_SIZE
Deprecated. -
JSON_INSERT
Deprecated. -
JSON_REPLACE
Deprecated. -
JSON_SET
Deprecated. -
JSON_ARRAYAGG
-
BETWEEN
-
SYMMETRIC_BETWEEN
-
NOT_BETWEEN
-
SYMMETRIC_NOT_BETWEEN
-
NOT_LIKE
-
LIKE
-
NOT_SIMILAR_TO
-
SIMILAR_TO
-
POSIX_REGEX_CASE_SENSITIVE
-
POSIX_REGEX_CASE_INSENSITIVE
-
NEGATED_POSIX_REGEX_CASE_SENSITIVE
-
NEGATED_POSIX_REGEX_CASE_INSENSITIVE
-
ESCAPE
Internal operator used to represent the ESCAPE clause of a LIKE or SIMILAR TO expression. -
CASE
-
PROCEDURE_CALL
-
NEW
-
OVER
TheOVER
operator, which applies an aggregate functions to awindow
.Operands are as follows:
- name of window function (
SqlCall
) - window name (
SqlLiteral
) or window in-line specification (org.apache.calcite.sql.SqlWindow.SqlWindowOperator
)
- name of window function (
-
REINTERPRET
AnREINTERPRET
operator is internal to the planner. When the physical storage of two types is the same, this operator may be used to reinterpret values of one type as the other. This operator is similar to a cast, except that it does not alter the data value. Like a regular cast it accepts one operand and stores the target type as the return type. It performs an overflow check if it has any second operand, whether true or not. -
SUBSTRING
The character substring function:SUBSTRING(string FROM start [FOR length])
.If the length parameter is a constant, the length of the result is the minimum of the length of the input and that length. Otherwise it is the length of the input.
-
REPLACE
TheREPLACE(string, search, replace)
function. Not standard SQL, but in Oracle and Postgres. -
CONVERT
TheCONVERT(charValue, srcCharsetName, destCharsetName)
function convertscharValue
withdestCharsetName
, whose original encoding is specified bysrcCharsetName
.The SQL standard defines
CONVERT(charValue USING transcodingName)
, and MySQL implements it; Calcite supports this in the following TRANSLATE function.MySQL and Microsoft SQL Server have a
CONVERT(type, value)
function; Calcite does not currently support this, either. -
TRANSLATE
TheTRANSLATE/CONVERT(char_value USING transcodingName)
function alters the character set of a string value from one base character set to transcodingName.It is defined in the SQL standard. See also the non-standard
SqlLibraryOperators.TRANSLATE3
, which has a different purpose. -
OVERLAY
-
TRIM
The "TRIM" function. -
POSITION
-
CHAR_LENGTH
-
CHARACTER_LENGTH
Alias forCHAR_LENGTH
. -
OCTET_LENGTH
-
UPPER
-
LOWER
-
INITCAP
-
ASCII
-
POWER
ThePOWER(numeric, numeric)
function.The return type is always
DOUBLE
since we don't know what the result type will be by just looking at the operand types. For examplePOWER(INTEGER, INTEGER)
can return a non-INTEGER if the second operand is negative. -
SQRT
TheSQRT(numeric)
function. -
MOD
Arithmetic remainder functionMOD
.- See Also:
-
LN
TheLN(numeric)
function. -
LOG10
TheLOG10(numeric)
function. -
ABS
TheABS(numeric)
function. -
ACOS
TheACOS(numeric)
function. -
ASIN
TheASIN(numeric)
function. -
ATAN
TheATAN(numeric)
function. -
ATAN2
TheATAN2(numeric, numeric)
function. -
CBRT
TheCBRT(numeric)
function. -
COS
TheCOS(numeric)
function. -
COT
TheCOT(numeric)
function. -
DEGREES
TheDEGREES(numeric)
function. -
EXP
TheEXP(numeric)
function. -
RADIANS
TheRADIANS(numeric)
function. -
ROUND
TheROUND(numeric [, integer])
function. -
SIGN
TheSIGN(numeric)
function. -
SIN
TheSIN(numeric)
function. -
TAN
TheTAN(numeric)
function. -
TRUNCATE
TheTRUNCATE(numeric [, integer])
function. -
PI
ThePI
function. -
FIRST
FIRST
function to be used withinMATCH_RECOGNIZE
. -
LAST
LAST
function to be used withinMATCH_RECOGNIZE
. -
PREV
PREV
function to be used withinMATCH_RECOGNIZE
. -
NEXT
NEXT
function to be used withinMATCH_RECOGNIZE
. -
CLASSIFIER
CLASSIFIER
function to be used withinMATCH_RECOGNIZE
. -
MATCH_NUMBER
MATCH_NUMBER
function to be used withinMATCH_RECOGNIZE
. -
NULLIF
-
COALESCE
The COALESCE builtin function. -
FLOOR
TheFLOOR
function. -
CEIL
TheCEIL
function. -
USER
TheUSER
function. -
CURRENT_USER
TheCURRENT_USER
function. -
SESSION_USER
TheSESSION_USER
function. -
SYSTEM_USER
TheSYSTEM_USER
function. -
CURRENT_PATH
TheCURRENT_PATH
function. -
CURRENT_ROLE
TheCURRENT_ROLE
function. -
CURRENT_CATALOG
TheCURRENT_CATALOG
function. -
CURRENT_SCHEMA
TheCURRENT_SCHEMA
function. -
LOCALTIME
TheLOCALTIME [(precision)]
function. -
LOCALTIMESTAMP
TheLOCALTIMESTAMP [(precision)]
function. -
CURRENT_TIME
TheCURRENT_TIME [(precision)]
function. -
CURRENT_TIMESTAMP
TheCURRENT_TIMESTAMP [(precision)]
function. -
CURRENT_DATE
TheCURRENT_DATE
function. -
TIMESTAMP_ADD
TheTIMESTAMPADD
function. -
TIMESTAMP_DIFF
TheTIMESTAMPDIFF
function. -
IN_FENNEL
Use of theIN_FENNEL
operator forces the argument to be evaluated in Fennel. Otherwise acts as identity function. -
CAST
The SQLCAST
operator.The SQL syntax is
CAST(expression AS type)
When the CAST operator is applies as a
SqlCall
, it has two arguments: the expression and the type. The type must not include a constraint, soCAST(x AS INTEGER NOT NULL)
, for instance, is invalid.When the CAST operator is applied as a
RexCall
, the target type is simply stored as the return type, not an explicit operand. For example, the expressionCAST(1 + 2 AS DOUBLE)
will become a call toCAST
with the expression1 + 2
as its only operand.The
RexCall
form can also have a type which contains aNOT NULL
constraint. When this expression is implemented, if the value is NULL, an exception will be thrown. -
EXTRACT
The SQLEXTRACT
operator. Extracts a specified field value from a DATETIME or an INTERVAL. E.g.
EXTRACT(HOUR FROM INTERVAL '364 23:59:59')
returns23
-
YEAR
The SQLYEAR
operator. Returns the Year from a DATETIME E.g.
YEAR(date '2008-9-23')
returns2008
-
QUARTER
The SQLQUARTER
operator. Returns the Quarter from a DATETIME E.g.
QUARTER(date '2008-9-23')
returns3
-
MONTH
The SQLMONTH
operator. Returns the Month from a DATETIME E.g.
MONTH(date '2008-9-23')
returns9
-
WEEK
The SQLWEEK
operator. Returns the Week from a DATETIME E.g.
WEEK(date '2008-9-23')
returns39
-
DAYOFYEAR
The SQLDAYOFYEAR
operator. Returns the DOY from a DATETIME E.g.
DAYOFYEAR(date '2008-9-23')
returns267
-
DAYOFMONTH
The SQLDAYOFMONTH
operator. Returns the Day from a DATETIME E.g.
DAYOFMONTH(date '2008-9-23')
returns23
-
DAYOFWEEK
The SQLDAYOFWEEK
operator. Returns the DOW from a DATETIME E.g.
DAYOFWEEK(date '2008-9-23')
returns2
-
HOUR
The SQLHOUR
operator. Returns the Hour from a DATETIME E.g.
HOUR(timestamp '2008-9-23 01:23:45')
returns1
-
MINUTE
The SQLMINUTE
operator. Returns the Minute from a DATETIME E.g.
MINUTE(timestamp '2008-9-23 01:23:45')
returns23
-
SECOND
The SQLSECOND
operator. Returns the Second from a DATETIME E.g.
SECOND(timestamp '2008-9-23 01:23:45')
returns45
-
LAST_DAY
TheLAST_DAY(date)
function. -
ELEMENT
The ELEMENT operator, used to convert a multiset with only one item to a "regular" type. Example ... log(ELEMENT(MULTISET[1])) ... -
ITEM
The item operator[ ... ]
, used to access a given element of an array, map or struct. For example,myArray[3]
,"myMap['foo']"
,myStruct[2]
ormyStruct['fieldName']
.The SQL standard calls the ARRAY variant a <array element reference>. Index is 1-based. The standard says to raise "data exception - array element error" but we currently return null.
MAP is not standard SQL.
-
ARRAY_VALUE_CONSTRUCTOR
The ARRAY Value Constructor. e.g. "ARRAY[1, 2, 3]
". -
MAP_VALUE_CONSTRUCTOR
The MAP Value Constructor, e.g. "MAP['washington', 1, 'obama', 44]
". -
SLICE
The internal "$SLICE" operator takes a multiset of records and returns a multiset of the first column of those records.It is introduced when multisets of scalar types are created, in order to keep types consistent. For example,
MULTISET [5]
has typeINTEGER MULTISET
but is translated to an expression of typeRECORD(INTEGER EXPR$0) MULTISET
because in our internal representation of multisets, every element must be a record. Applying the "$SLICE" operator to this result converts the type back to anINTEGER MULTISET
multiset value.$SLICE
is often translated away when the multiset type is converted back to scalar values. -
ELEMENT_SLICE
The internal "$ELEMENT_SLICE" operator returns the first field of the only element of a multiset.It is introduced when multisets of scalar types are created, in order to keep types consistent. For example,
ELEMENT(MULTISET [5])
is translated to$ELEMENT_SLICE(MULTISET (VALUES ROW (5 EXPR$0))
It is translated away when the multiset type is converted back to scalar values.NOTE: jhyde, 2006/1/9: Usages of this operator are commented out, but I'm not deleting the operator, because some multiset tests are disabled, and we may need this operator to get them working!
-
SCALAR_QUERY
The internal "$SCALAR_QUERY" operator returns a scalar value from a record type. It assumes the record type only has one field, and returns that field as the output. -
STRUCT_ACCESS
-
CARDINALITY
The CARDINALITY operator, used to retrieve the number of elements in a MULTISET, ARRAY or MAP. -
COLLECT
The COLLECT operator. Multiset aggregator function. -
PERCENTILE_CONT
PERCENTILE_CONT
inverse distribution aggregate function.The argument must be a numeric literal in the range 0 to 1 inclusive (representing a percentage), and the return type is the type of the
ORDER BY
expression. -
PERCENTILE_DISC
PERCENTILE_DISC
inverse distribution aggregate function.The argument must be a numeric literal in the range 0 to 1 inclusive (representing a percentage), and the return type is the type of the
ORDER BY
expression. -
LISTAGG
The LISTAGG operator. String aggregator function. -
FUSION
The FUSION operator. Multiset aggregator function. -
INTERSECTION
The INTERSECTION operator. Multiset aggregator function. -
NEXT_VALUE
The sequence next value function:NEXT VALUE FOR sequence
. -
CURRENT_VALUE
The sequence current value function:CURRENT VALUE FOR sequence
. -
TABLESAMPLE
TheTABLESAMPLE
operator.Examples:
<query> TABLESAMPLE SUBSTITUTE('sampleName')
(non-standard)<query> TABLESAMPLE BERNOULLI(<percent>) [REPEATABLE(<seed>)]
(standard, but not implemented for FTRS yet)<query> TABLESAMPLE SYSTEM(<percent>) [REPEATABLE(<seed>)]
(standard, but not implemented for FTRS yet)
Operand #0 is a query or table; Operand #1 is a
SqlSampleSpec
wrapped in aSqlLiteral
. -
DESCRIPTOR
DESCRIPTOR(column_name, ...). -
TUMBLE
TUMBLE as a table function. -
HOP
HOP as a table function. -
SESSION
SESSION as a table function. -
TUMBLE_OLD
TheTUMBLE
group function.This operator is named "$TUMBLE" (not "TUMBLE") because it is created directly by the parser, not by looking up an operator by name.
Why did we add TUMBLE to the parser? Because we plan to support TUMBLE as a table function (see [CALCITE-3272]); "TUMBLE" as a name will only be used by the TUMBLE table function.
After the TUMBLE table function is introduced, we plan to deprecate this TUMBLE group function, and in fact all group functions. See [CALCITE-3340] for details.
-
TUMBLE_START
TheTUMBLE_START
auxiliary function of theTUMBLE
group function. -
TUMBLE_END
TheTUMBLE_END
auxiliary function of theTUMBLE
group function. -
HOP_OLD
TheHOP
group function. -
HOP_START
TheHOP_START
auxiliary function of theHOP
group function. -
HOP_END
TheHOP_END
auxiliary function of theHOP
group function. -
SESSION_OLD
TheSESSION
group function. -
SESSION_START
TheSESSION_START
auxiliary function of theSESSION
group function. -
SESSION_END
TheSESSION_END
auxiliary function of theSESSION
group function. -
PATTERN_ALTER
|
operator to create alternate patterns withinMATCH_RECOGNIZE
.If
p1
andp2
are patterns thenp1 | p2
is a pattern that matchesp1
orp2
. -
PATTERN_CONCAT
Operator to concatenate patterns withinMATCH_RECOGNIZE
.If
p1
andp2
are patterns thenp1 p2
is a pattern that matchesp1
followed byp2
. -
PATTERN_QUANTIFIER
Operator to quantify patterns withinMATCH_RECOGNIZE
.If
p
is a pattern thenp{3, 5}
is a pattern that matches between 3 and 5 occurrences ofp
. -
PATTERN_PERMUTE
PERMUTE
operator to combine patterns withinMATCH_RECOGNIZE
.If
p1
andp2
are patterns thenPERMUTE (p1, p2)
is a pattern that matches all permutations ofp1
andp2
. -
PATTERN_EXCLUDE
EXCLUDE
operator withinMATCH_RECOGNIZE
.If
p
is a pattern then{- p -}
} is a pattern that excludesp
from the output. -
SET_SEMANTICS_TABLE
SetSemanticsTable represents as an input table with set semantics. -
operators
Contains all (name, operator) pairs. Effectively a sorted immutable multimap.There can be several operators with the same name (case-insensitive or case-sensitive) and these operators will lie in a contiguous range which we can find efficiently using binary search.
-
-
Constructor Details
-
SqlStdOperatorTable
public SqlStdOperatorTable()
-
-
Method Details
-
instance
Returns the standard operator table, creating it if necessary. -
lookUpOperators
Looks up operators, optionally matching case-sensitively. -
auxiliaryToGroup
Returns the group function for which a given kind is an auxiliary function, or null if it is not an auxiliary function. -
convertAuxiliaryToGroupCall
Converts a call to a grouped auxiliary function to a call to the grouped window function. For other calls returns null.For example, converts
TUMBLE_START(rowtime, INTERVAL '1' HOUR))
toTUMBLE(rowtime, INTERVAL '1' HOUR))
. -
convertGroupToAuxiliaryCalls
@Deprecated public static List<Pair<SqlNode,AuxiliaryConverter>> convertGroupToAuxiliaryCalls(SqlCall call) Deprecated.Converts a call to a grouped window function to a call to its auxiliary window function(s). -
convertGroupToAuxiliaryCalls
public static void convertGroupToAuxiliaryCalls(SqlCall call, BiConsumer<SqlNode, AuxiliaryConverter> consumer) Converts a call to a grouped window function to a call to its auxiliary window function(s).For example, converts
TUMBLE_START(rowtime, INTERVAL '1' HOUR))
toTUMBLE(rowtime, INTERVAL '1' HOUR))
. -
some
Returns the operator forSOME comparisonKind
. -
all
Returns the operator forALL comparisonKind
. -
reverse
Deprecated.UseSqlOperator.reverse()
, but beware that it has slightly different semanticsReturns the binary operator that corresponds to this operator but in the opposite direction. Or returns this, if its kind is not reversible.For example,
reverse(GREATER_THAN)
returnsLESS_THAN
. -
like
Returns the operator forLIKE
with given case-sensitivity, optionally negated. -
floorCeil
Returns the operator forFLOOR
andCEIL
with given floor flag and library. -
getOperatorList
Description copied from interface:SqlOperatorTable
Retrieves a list of all functions and operators in this table. Used for automated testing. Depending on the table type, may or may not be mutable.- Specified by:
getOperatorList
in interfaceSqlOperatorTable
- Returns:
- list of SqlOperator objects
-
setOperators
-
buildIndex
protected static com.google.common.collect.ImmutableMultimap<String,SqlOperator> buildIndex(Iterable<? extends SqlOperator> operators) Derives a value to be assigned tooperators
from a given list of operators.
-
SqlOperator.reverse()
, but beware that it has slightly different semantics