SupportsPartitionManagement¶
SupportsPartitionManagement is an extension of the Table abstraction for partitioned tables.
Contract¶
createPartition¶
void createPartition(
InternalRow ident,
Map<String, String> properties)
Used when:
AlterTableAddPartitionExecphysical command is executed
dropPartition¶
boolean dropPartition(
InternalRow ident)
Used when:
AlterTableDropPartitionExecphysical command is executed
listPartitionIdentifiers¶
InternalRow[] listPartitionIdentifiers(
String[] names,
InternalRow ident)
Used when:
ShowPartitionsExecphysical command is executed
loadPartitionMetadata¶
Map<String, String> loadPartitionMetadata(
InternalRow ident)
partitionExists¶
boolean partitionExists(
InternalRow ident)
Used when:
AlterTableAddPartitionExecandAlterTableDropPartitionExecphysical commands are executed
partitionSchema¶
StructType partitionSchema()
Used when:
AlterTableAddPartitionExec,AlterTableDropPartitionExecandShowPartitionsExecphysical commands are executedSupportsPartitionManagementis requested to partitionExistsCheckAnalysisis requested to checkShowPartitionsResolvePartitionSpeclogical analysis rule is executed
replacePartitionMetadata¶
void replacePartitionMetadata(
InternalRow ident,
Map<String, String> properties)