public class HiveDDLUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
COL_DELIMITER |
Modifier and Type | Method and Description |
---|---|
static org.apache.calcite.sql.SqlNodeList |
checkReservedDBProperties(org.apache.calcite.sql.SqlNodeList props) |
static org.apache.calcite.sql.SqlNodeList |
checkReservedTableProperties(org.apache.calcite.sql.SqlNodeList props) |
static void |
convertDataTypes(org.apache.calcite.sql.SqlNodeList columns) |
static void |
convertDataTypes(SqlTableColumn.SqlRegularColumn column) |
static org.apache.calcite.sql.SqlNodeList |
deepCopyColList(org.apache.calcite.sql.SqlNodeList colList) |
static SqlTableColumn.SqlRegularColumn |
deepCopyTableColumn(SqlTableColumn.SqlRegularColumn column) |
static byte |
defaultTrait() |
static byte |
disableConstraint(byte trait) |
static byte |
enableConstraint(byte trait) |
static byte |
encodeConstraintTrait(SqlHiveConstraintTrait trait) |
static org.apache.calcite.sql.SqlNodeList |
ensureNonGeneric(org.apache.calcite.sql.SqlNodeList props) |
static byte |
noRelyConstraint(byte trait) |
static byte |
noValidateConstraint(byte trait) |
static byte |
relyConstraint(byte trait) |
static boolean |
requireEnableConstraint(byte trait) |
static boolean |
requireRelyConstraint(byte trait) |
static boolean |
requireValidateConstraint(byte trait) |
static SqlTableOption |
toTableOption(String key,
org.apache.calcite.sql.SqlNode value,
org.apache.calcite.sql.parser.SqlParserPos pos) |
static SqlTableOption |
toTableOption(String key,
String value,
org.apache.calcite.sql.parser.SqlParserPos pos) |
static void |
unescapePartitionSpec(org.apache.calcite.sql.SqlNodeList partSpec) |
static void |
unescapeProperties(org.apache.calcite.sql.SqlNodeList properties) |
static org.apache.calcite.sql.SqlCharStringLiteral |
unescapeStringLiteral(org.apache.calcite.sql.SqlCharStringLiteral literal) |
static byte |
validateConstraint(byte trait) |
public static final String COL_DELIMITER
public static org.apache.calcite.sql.SqlNodeList checkReservedDBProperties(org.apache.calcite.sql.SqlNodeList props) throws ParseException
ParseException
public static org.apache.calcite.sql.SqlNodeList checkReservedTableProperties(org.apache.calcite.sql.SqlNodeList props) throws ParseException
ParseException
public static org.apache.calcite.sql.SqlNodeList ensureNonGeneric(org.apache.calcite.sql.SqlNodeList props) throws ParseException
ParseException
public static SqlTableOption toTableOption(String key, org.apache.calcite.sql.SqlNode value, org.apache.calcite.sql.parser.SqlParserPos pos)
public static SqlTableOption toTableOption(String key, String value, org.apache.calcite.sql.parser.SqlParserPos pos)
public static void convertDataTypes(org.apache.calcite.sql.SqlNodeList columns) throws ParseException
ParseException
public static void convertDataTypes(SqlTableColumn.SqlRegularColumn column) throws ParseException
ParseException
public static byte defaultTrait()
public static byte enableConstraint(byte trait)
public static byte disableConstraint(byte trait)
public static byte validateConstraint(byte trait)
public static byte noValidateConstraint(byte trait)
public static byte relyConstraint(byte trait)
public static byte noRelyConstraint(byte trait)
public static boolean requireEnableConstraint(byte trait)
public static boolean requireValidateConstraint(byte trait)
public static boolean requireRelyConstraint(byte trait)
public static byte encodeConstraintTrait(SqlHiveConstraintTrait trait)
public static org.apache.calcite.sql.SqlNodeList deepCopyColList(org.apache.calcite.sql.SqlNodeList colList)
public static SqlTableColumn.SqlRegularColumn deepCopyTableColumn(SqlTableColumn.SqlRegularColumn column)
public static void unescapeProperties(org.apache.calcite.sql.SqlNodeList properties)
public static org.apache.calcite.sql.SqlCharStringLiteral unescapeStringLiteral(org.apache.calcite.sql.SqlCharStringLiteral literal)
public static void unescapePartitionSpec(org.apache.calcite.sql.SqlNodeList partSpec)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.