This is upcoming 6.6.3, Post exact version you are using. cc @dh
insert into default values ("k|01",1), values ("k|02",1), values ("k_01",1), values ("k_02",1);
-- _ is escape character in like
select count(1) FROM default WHERE meta().id LIKE 'k_%' ;
{
"$1": 4
}
-- treat under score as non escape character
select count(1) FROM default WHERE meta().id LIKE 'k\\_%' ;
{
"$1": 2
}
Match string with a wildcard expression. Use % for zero or more wildcards and _ to match any character at this place in a string.
The wildcard characters can be escaped by preceding them with a backslash (). Backslash itself can also be escaped by preceding it with another backslash.