saFieldName string,
saType enumspb.IndexedValueType,
// Using expr.Val instead of sqlparser.String(expr) because the latter escapes chars using MySQL
// conventions which is incompatible with SQLite.
var sqlValue string
switch expr.Type {
case sqlparser.StrVal:
sqlValue = fmt.Sprintf(`'%s'`, expr.Val)