Skip to content

Issue#3762 Adding Regex MatchAll feature - #6234

Open
meggamind wants to merge 1 commit into
rethinkdb:v2.4.xfrom
meggamind:match_all
Open

Issue#3762 Adding Regex MatchAll feature#6234
meggamind wants to merge 1 commit into
rethinkdb:v2.4.xfrom
meggamind:match_all

Conversation

@meggamind

@meggamind meggamind commented Jan 20, 2017

Copy link
Copy Markdown

Description

<Please fill in the description of your pull request here. Thank you for your contribution!>

@meggamind meggamind changed the title Issue#3762 Regex Match All Issue#3762 Adding Regex MatchAll feature Jan 20, 2017
@marshall007

Copy link
Copy Markdown
Contributor

@BadBuddha thanks for the PR, this looks good! We'll want to add some polyglot tests for this. See test/rql_test/src/match.yaml as a starting point and let us know if you have any questions.

Once that's done we'll need to implement the new match_all term in the other drivers. That should be fairly trivial, but @AtnNn and I can help with that effort if necessary/desired.

@AtnNn or @srh can you review the server changes?

@@ -2,2420 +2,2433 @@
// hash: "186fb20ea9911710e910acfab0f4f221d59d7c04"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see the documentation of matchAll in that branch. Did you edit this file manually?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll checkout reql_docs.js, I think there was issue with atom editor. Sorry should have seen this.

Comment thread src/pprint/js_pprint.cc
*last_is_dot = false;
*last_should_r_wrap = false;
return make_optional(var.arg(0));
return boost::make_optional(var.arg(0));

@AtnNn AtnNn Jan 29, 2017

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened here? This change seems unrelated.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't remember changing this, will 'checkout' this file too

@AtnNn

AtnNn commented Jan 29, 2017

Copy link
Copy Markdown
Member

The code looks good to me. However the commit includes a lot of unrelated changes to reql_docs.js and it partly reverts the removal of boost::optional.

With that fixed, I think it could be merged. However it would still be missing tests, and needs to be added to the other drivers.

@meggamind

Copy link
Copy Markdown
Author

I'll add tests and add this to the other drivers. I should just search for all the places match is being used as matching all and replace it with match_all ?

@AtnNn

AtnNn commented Jan 31, 2017

Copy link
Copy Markdown
Member

I would add separate tests for match_all in https://github.com/rethinkdb/rethinkdb/blob/next/test/rql_test/src/match.yaml

For the python driver it should be added in two places in https://github.com/rethinkdb/rethinkdb/blob/next/drivers/python/rethinkdb/ast.py

For ruby and java it should be similar.

@srh
srh changed the base branch from next to v2.4.x April 17, 2022 01:38
@srh

srh commented Apr 17, 2022

Copy link
Copy Markdown
Contributor

Pointing at v2.4.x in anticipation of making that the new main branch of this repo.

I intend to revisit this after v2.4.2 is released.

@gabor-boros

gabor-boros commented May 6, 2022

Copy link
Copy Markdown
Member

FTR: ql2.proto file is missing the new term

@gabor-boros gabor-boros added this to the 2.5.0 milestone May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

5 participants