public abstract class RelToSqlConverterUtil extends Object
| Constructor and Description |
|---|
RelToSqlConverterUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SqlCharStringLiteral |
createRegexPatternLiteral(SqlNode call,
SqlLiteral trimFlag)
Creates regex pattern based on the TRIM flag.
|
static SqlSpecialOperator |
specialOperatorByName(String opName)
Returns a
SqlSpecialOperator with given operator name, mainly used for
unparse override. |
static void |
unparseHiveTrim(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec)
For usage of TRIM, LTRIM and RTRIM in Hive, see
Hive UDF usage.
|
public static void unparseHiveTrim(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
public static SqlCharStringLiteral createRegexPatternLiteral(SqlNode call, SqlLiteral trimFlag)
call - SqlCall contains the values that need to be trimmedtrimFlag - the trimFlag, either BOTH, LEADING or TRAILINGpublic static SqlSpecialOperator specialOperatorByName(String opName)
SqlSpecialOperator with given operator name, mainly used for
unparse override.Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.