public class DefaultIncompatibleTableChangeHandler extends Object implements IMetaStoreIncompatibleChangeHandler
HiveAlterHandler when a table is altered to check if the column type changes if any
are allowed or not.| Modifier and Type | Method and Description |
|---|---|
void |
allowChange(org.apache.hadoop.conf.Configuration conf,
Table oldTable,
Table newTable)
Checks if the column type changes in the oldTable and newTable are allowed or not.
|
static DefaultIncompatibleTableChangeHandler |
get() |
public static DefaultIncompatibleTableChangeHandler get()
public void allowChange(org.apache.hadoop.conf.Configuration conf,
Table oldTable,
Table newTable)
throws InvalidOperationException
allowChange in interface IMetaStoreIncompatibleChangeHandlerconf - The configuration which if incompatible col type changes are allowed
or not.oldTable - The instance of the table being altered.newTable - The new instance of the table which represents the altered state of
the table.InvalidOperationExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.