Skip to main content

Module ordering

Module ordering 

Source
Expand description

Physical output positions and ordering expression identities.

Structs§

OutputTarget

Functions§

append_row_at_time_projection
distinct_output_target_position
identity_order_columns
one_based_output_position
order_projection
Build collision-free physical target columns for a plain SELECT whose ORDER BY must be able to see both input columns and SELECT-list aliases. Public aliases cannot safely be appended directly: SELECT x + 1 AS x ... ORDER BY x must order by the output alias, while ORDER BY x + 1 still resolves x against the input namespace. Each non-star target is therefore computed once under an opaque internal attribute and assigned its public label only after Sort/Limit has consumed it.
order_projection_targets
output_position_error
output_selection_positions
output_target_position
prior_distinct_key_index
resolve_order_expression
resolve_order_expression_ref
split_locking_order_projections
validate_distinct_ordering