Class AlterExternalTable
- java.lang.Object
-
- net.snowflake.hivemetastoreconnector.commands.Command
-
- net.snowflake.hivemetastoreconnector.commands.AlterExternalTable
-
public class AlterExternalTable extends Command
A class for the AlterExternalTable command TODO: Split into TouchExternalTable and AlterColumnsExternalTable- Author:
- wwong
-
-
Constructor Summary
Constructors Constructor Description AlterExternalTable(org.apache.hadoop.hive.metastore.events.AlterTableEvent alterTableEvent, SnowflakeConf snowflakeConf)Creates a AlterTable command
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>generateSqlQueries()Generates the necessary queries on a Hive alter table event-
Methods inherited from class net.snowflake.hivemetastoreconnector.commands.Command
getDatabaseName, getTableName
-
-
-
-
Constructor Detail
-
AlterExternalTable
public AlterExternalTable(org.apache.hadoop.hive.metastore.events.AlterTableEvent alterTableEvent, SnowflakeConf snowflakeConf)Creates a AlterTable command- Parameters:
alterTableEvent- Event to generate a command fromsnowflakeConf- - the configuration for Snowflake Hive metastore listener
-
-
Method Detail
-
generateSqlQueries
public List<String> generateSqlQueries() throws SQLException, UnsupportedOperationException
Generates the necessary queries on a Hive alter table event- Specified by:
generateSqlQueriesin classCommand- Returns:
- The Snowflake queries generated
- Throws:
SQLException- Thrown when there was an error executing a Snowflake SQL query (if a Snowflake query must be executed).UnsupportedOperationException- Thrown when the input is invalid
-
-