I think it is reasonable to consider that a bug. We should implement the
function both as it works today and as you were originally expecting it.
Any ideas about about a good naming scheme for the two?

Unfortunately the regular contains() method does substring matching, but I
think the name repeated_contains() should be used for exact matching. I'm
inclined to suggest something like repeated_contains_regex_matching() for
the other, but that is a bit long.

On Mon, Sep 21, 2015 at 2:41 AM, Stefán Baxter <[email protected]>
wrote:

> Hi
>
> repeated_contains seems to have a strange default behavior as it behaves
> like a startsWith, rather than a equalTo.
>
> With this data:
>
> {"alist":["cat","dog"]}
> {"alist":["catastrophic"]}
>
>
> and this query:;
>
> select alist from table where repeated_contains(`alist`,'cat');
>
>
> both records are returned.
>
> I do realize that repeated_contains accepts regular expressions but i
> wonder if this behavior is by design or a bug. (I also know that I can end
> the query string with a $ but that just does not seem right)
>
> Regards,
>  -Stefan
>

Reply via email to