Skip to content

Conversation

hmeriann
Copy link
Contributor

This PR should fix the https://github.com/duckdblabs/duckdb-internal/issues/2889

The function matching expected and actual result messages, FullMatch(), didn't work well with a reference to a MaterializedQueryResult object (&result.ToString()) casted to a string.
What changed: pass the (expected) result to the match checking function as a string instead of passing an object by reference.

@carlopi
Copy link
Contributor

carlopi commented Aug 29, 2024

I would consider adding a test of this behaviour, to avoid future regression and as demo / documentation, something like:

query I
select 42
----
<REGEX>:42

or equivalent

@duckdb-draftbot duckdb-draftbot marked this pull request as draft August 30, 2024 07:19
@hmeriann hmeriann force-pushed the 2889-regex-not-supported branch from 66d45b9 to 1ef86cd Compare August 30, 2024 07:22
@hmeriann hmeriann requested a review from Tmonster August 30, 2024 07:23
@hmeriann hmeriann force-pushed the 2889-regex-not-supported branch from 1ef86cd to ed3329b Compare August 30, 2024 07:26
@hmeriann
Copy link
Contributor Author

I would consider adding a test of this behaviour

Thank you @carlopi , that is a good point. I've added one test

@hmeriann hmeriann marked this pull request as ready for review September 2, 2024 09:18
@duckdb-draftbot duckdb-draftbot marked this pull request as draft September 12, 2024 08:02
@hmeriann hmeriann marked this pull request as ready for review September 12, 2024 08:02
@Mytherin Mytherin merged commit a2c119f into duckdb:main Sep 13, 2024
28 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Sep 25, 2024
Only bind to SQL value functions if there is no alias with this name present we can bind to instead (duckdb/duckdb#13925)
[Python][Jupyter] Don't use `ExplainFormat::HTML` for `explain('analyze')` (duckdb/duckdb#13928)
[CI] Invert operations on OSX.yml, deploying nightly artifacts before test (duckdb/duckdb#13927)
fix REGEX not supported anymore for valid queries (only statement error) duckdb/duckdb#2889 (duckdb/duckdb#13633)
[Python] Improve `install_extension` to support `repository`/`repository_url` and `version` (duckdb/duckdb#13876)
Remove buffer_manager_allocate.patch and bump spatial (duckdb/duckdb#13895)
github-actions bot added a commit to duckdb/duckdb-r that referenced this pull request Sep 25, 2024
Only bind to SQL value functions if there is no alias with this name present we can bind to instead (duckdb/duckdb#13925)
[Python][Jupyter] Don't use `ExplainFormat::HTML` for `explain('analyze')` (duckdb/duckdb#13928)
[CI] Invert operations on OSX.yml, deploying nightly artifacts before test (duckdb/duckdb#13927)
fix REGEX not supported anymore for valid queries (only statement error) duckdb/duckdb#2889 (duckdb/duckdb#13633)
[Python] Improve `install_extension` to support `repository`/`repository_url` and `version` (duckdb/duckdb#13876)
Remove buffer_manager_allocate.patch and bump spatial (duckdb/duckdb#13895)

Co-authored-by: krlmlr <krlmlr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants