dolthub / go-mysql-server

A MySQL-compatible relational database with a storage agnostic query engine. Implemented in pure Go.
Apache License 2.0
2.32k stars 199 forks source link

Assume text index comparisons are exact #2619

Closed max-hoffman closed 1 month ago

max-hoffman commented 1 month ago

We currently do not eliminate filters of the form column(VARCHAR) = text literal (longtext) when pushing filters into index lookups. The safety check is necessary at least for datetimes, spatial/fulltext and partial TEXT indexes. It's not clear whether it is necessary for full varchar indexes.

dolt side seems OK: https://github.com/dolthub/dolt/pull/8218