Class ApplyPreferredTableWriterPartitioning

java.lang.Object
io.trino.sql.planner.iterative.rule.ApplyPreferredTableWriterPartitioning
All Implemented Interfaces:
Rule<TableWriterNode>

public class ApplyPreferredTableWriterPartitioning extends Object implements Rule<TableWriterNode>
Rule verifies if preconditions for using preferred write partitioning are met: - expected number of partitions to be written (based on table stat) is greater than or equal to preferred_write_partitioning_min_number_of_partitions session property, - use_preferred_write_partitioning is set to true. If precondition are met the TableWriterNode is modified to mark the intention to use preferred write partitioning: value of TableWriterNode.getPreferredPartitioningScheme() is set as result of TableWriterNode.getPartitioningScheme().