public class TableSchemaUtils extends Object
Modifier and Type | Method and Description |
---|---|
static List<TableChange> |
buildModifyColumnChange(Column oldColumn,
Column newColumn,
TableChange.ColumnPosition columnPosition)
This method is copied from OperationConverterUtils#buildModifyColumnChange located in
flink-table-planner, and should be synchronized if
OperationConverterUtils#buildModifyColumnChange changes in the the future.
|
static ResolvedSchema |
changeColumn(ResolvedSchema oldSchema,
String oldName,
Column newTableColumn,
boolean first,
String after)
Change a column in the old table schema and return the updated table schema.
|
static ResolvedSchema |
resolvedSchema(org.apache.calcite.rel.RelNode calciteTree) |
public static ResolvedSchema resolvedSchema(org.apache.calcite.rel.RelNode calciteTree)
public static List<TableChange> buildModifyColumnChange(Column oldColumn, Column newColumn, @Nullable TableChange.ColumnPosition columnPosition)
public static ResolvedSchema changeColumn(ResolvedSchema oldSchema, String oldName, Column newTableColumn, boolean first, String after)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.