public class SchemaChangeUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Type |
applyTableChange2Type(Type type,
TableChanges.ColumnAddChange adds)
Apply all the DDL add operations to Type to produce a new internalSchema.
|
static InternalSchema |
applyTableChanges2Schema(InternalSchema internalSchema,
TableChanges.ColumnAddChange adds)
Apply all the DDL add operations to internalSchema to produce a new internalSchema.
|
static InternalSchema |
applyTableChanges2Schema(InternalSchema internalSchema,
TableChanges.ColumnDeleteChange deletes)
Apply all the DDL delete operations to internalSchema to produce a new internalSchema.
|
static InternalSchema |
applyTableChanges2Schema(InternalSchema internalSchema,
TableChanges.ColumnUpdateChange updates)
Apply all the DDL update operations to internalSchema to produce a new internalSchema.
|
static boolean |
isTypeUpdateAllow(Type src,
Type dsr)
Whether to allow the column type to be updated.
|
static boolean |
shouldPromoteType(Type src,
Type dsr) |
public static boolean isTypeUpdateAllow(Type src, Type dsr)
src - origin column type.dsr - new column type.public static InternalSchema applyTableChanges2Schema(InternalSchema internalSchema, TableChanges.ColumnAddChange adds)
internalSchema - origin internalSchema.adds - a wrapper class for all the DDL add operations.public static Type applyTableChange2Type(Type type, TableChanges.ColumnAddChange adds)
type - origin hudi Type.adds - a wrapper class for all the DDL add operations.public static InternalSchema applyTableChanges2Schema(InternalSchema internalSchema, TableChanges.ColumnDeleteChange deletes)
internalSchema - origin internalSchema.deletes - a wrapper class for all the DDL delete operations.public static InternalSchema applyTableChanges2Schema(InternalSchema internalSchema, TableChanges.ColumnUpdateChange updates)
internalSchema - origin internalSchema.updates - a wrapper class for all the DDL update operations.Copyright © 2024 The Apache Software Foundation. All rights reserved.