Skip to main content

like_prefix

Function like_prefix 

Source
pub fn like_prefix(stats: Option<&ColumnStats>, prefix: &str) -> f64
Expand description

col LIKE 'prefix%' (or any single-prefix anchored pattern). With stats, estimates as range(prefix, prefix + "\u{FFFF}") on the assumption the column’s natural ordering is a prefix order (Text lex). Without stats, DEFAULT_LIKE.