cmu-db / optd

CMU-DB's Cascades optimizer framework
https://cmu-db.github.io/optd/
MIT License
373 stars 22 forks source link

feat: refine like selectivity computation #165

Closed Gun9niR closed 7 months ago

Gun9niR commented 7 months ago

See get_like_selectivity for details. This fix significantly narrows the selectivity gap of LIKE between optd and Postgres on JOB.

https://github.com/cmu-db/optd/blob/4fae01af3cbc723be5b6a85e1fae8bc31c1fa297/optd-datafusion-repr/src/cost/base_cost/filter.rs#L347-L357