Skip to content

REGEXP_MATCHES returns wrong results. #6581

@lloydtabb

Description

@lloydtabb

What happens?

Weirdly, REGEXP_MATCH for '[A]' fails to match for a single character.

The first where clause emits no results, the second emits (correctly) two results.

To Reproduce

SELECT word
FROM (SELECT UNNEST(['FLASH','TOAST','BELL' ]) as word)
WHERE REGEXP_MATCHES(word, '[A]')
-- WHERE REGEXP_MATCHES(word, '[AS]')

OS:

linux

DuckDB Version:

0.7.1

DuckDB Client:

cli

Full Name:

lloyd tabb

Affiliation:

google

Have you tried this on the latest master branch?

  • I agree

Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

  • I agree

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions