Skip to content

Remove the pattern type #2873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Jan 16, 2023

This follows up on the removal of the match operator and introduction of pattern search using predicates of the form lhs == /rhs/ by removing the pattern type without replacement.

In theory this is a hard and incompatible breaking change. However, we know of no single user that has relied upon the pattern type being available, and as such it should be safe to remove it without a transparent upgrade path.

To make clear just how unlikely it is that anyone ran into this: users would've had to have a field of type pattern #index=skip in their schema, as attempting to index a pattern field crashed because we never actually implemented support for it, which was (1) never documented and (2) nobody ever complained about it.

@dominiklohmann dominiklohmann requested a review from a team January 16, 2023 18:25
@dominiklohmann dominiklohmann force-pushed the topic/remove-the-pattern-type branch 4 times, most recently from e8b7096 to 57afa56 Compare January 16, 2023 18:41
This follows up on the removal of the match operator and introduction of
pattern search using predicates of the form `lhs == /rhs/` by removing
the pattern type without replacement.

In theory this is a hard and incompatible breaking change. However, we
know of no single user that has relied upon the pattern type being
available, and as such it _should_ be safe to be removed without a
transparent upgrade path.

To make clear just how unlikely it is that anyone ran into this: users
would've had to have a field of type `pattern #index=skip` in their
schema, as attempting to index a pattern field crashed because we never
actually implemented support for it, which was (1) never documented and
(2) nobody ever complained about it.
@dominiklohmann dominiklohmann force-pushed the topic/remove-the-pattern-type branch from 57afa56 to 34932de Compare January 16, 2023 18:44
Copy link
Member

@mavam mavam left a comment

Choose a reason for hiding this comment

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

Wow, that was fast. 🙂

@dominiklohmann dominiklohmann removed the request for review from a team January 16, 2023 19:34
@dominiklohmann dominiklohmann merged commit 954800d into master Jan 17, 2023
@dominiklohmann dominiklohmann deleted the topic/remove-the-pattern-type branch January 17, 2023 11:12
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.

2 participants