SupportsPartitionManagement¶
SupportsPartitionManagement
is an extension of the Table abstraction for partitioned tables.
Contract¶
createPartition¶
void createPartition(
InternalRow ident,
Map<String, String> properties)
Used when:
AlterTableAddPartitionExec
physical command is executed
dropPartition¶
boolean dropPartition(
InternalRow ident)
Used when:
AlterTableDropPartitionExec
physical command is executed
listPartitionIdentifiers¶
InternalRow[] listPartitionIdentifiers(
String[] names,
InternalRow ident)
Used when:
ShowPartitionsExec
physical command is executed
loadPartitionMetadata¶
Map<String, String> loadPartitionMetadata(
InternalRow ident)
partitionExists¶
boolean partitionExists(
InternalRow ident)
Used when:
AlterTableAddPartitionExec
andAlterTableDropPartitionExec
physical commands are executed
partitionSchema¶
StructType partitionSchema()
Used when:
AlterTableAddPartitionExec
,AlterTableDropPartitionExec
andShowPartitionsExec
physical commands are executedSupportsPartitionManagement
is requested to partitionExistsCheckAnalysis
is requested to checkShowPartitionsResolvePartitionSpec
logical analysis rule is executed
replacePartitionMetadata¶
void replacePartitionMetadata(
InternalRow ident,
Map<String, String> properties)