public class OperationConverterUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<TableChange> |
buildModifyColumnChange(Column oldColumn,
Column newColumn,
TableChange.ColumnPosition columnPosition) |
static TableSchema |
changeColumn(TableSchema oldSchema,
String oldName,
TableColumn newTableColumn,
boolean first,
String after) |
static Operation |
convertAddReplaceColumns(ObjectIdentifier tableIdentifier,
SqlAddReplaceColumns addReplaceColumns,
CatalogTable catalogTable,
org.apache.calcite.sql.validate.SqlValidator sqlValidator) |
static Operation |
convertChangeColumn(ObjectIdentifier tableIdentifier,
SqlChangeColumn changeColumn,
ResolvedCatalogTable catalogTable,
org.apache.calcite.sql.validate.SqlValidator sqlValidator) |
static Map<String,String> |
extractProperties(org.apache.calcite.sql.SqlNodeList propList) |
static String |
getComment(SqlTableColumn column) |
public static Operation convertAddReplaceColumns(ObjectIdentifier tableIdentifier, SqlAddReplaceColumns addReplaceColumns, CatalogTable catalogTable, org.apache.calcite.sql.validate.SqlValidator sqlValidator)
public static Operation convertChangeColumn(ObjectIdentifier tableIdentifier, SqlChangeColumn changeColumn, ResolvedCatalogTable catalogTable, org.apache.calcite.sql.validate.SqlValidator sqlValidator)
public static List<TableChange> buildModifyColumnChange(Column oldColumn, Column newColumn, @Nullable TableChange.ColumnPosition columnPosition)
public static TableSchema changeColumn(TableSchema oldSchema, String oldName, TableColumn newTableColumn, boolean first, String after)
@Nullable public static String getComment(SqlTableColumn column)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.