Skip to content
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

vreplication: can't filter using IN or OR #10073

Open
derekperkins opened this issue Apr 11, 2022 · 0 comments
Open

vreplication: can't filter using IN or OR #10073

derekperkins opened this issue Apr 11, 2022 · 0 comments
Labels
Component: VReplication Type: Enhancement Logical improvement (somewhere between a bug and feature)

Comments

@derekperkins
Copy link
Member

derekperkins commented Apr 11, 2022

Pretty straightforward from the title. With all the recent enhancements vreplication and evalengine (not sure if this is actually used in vrep), I expected to be able to filter vreplication for multiple values, since I can already filter for single values. It seems like overkill to have to specify 3 separate vreplication streams for 3 separate values.

VReplication using IN:

SELECT event_id AS id, workspace_id as keyspace_id, reward_id, event_type 
FROM users_rewards__events 
WHERE event_type IN (3,7,8)

Error:

vttablet: rpc error: code = Unknown desc = comparison operator in not supported

VReplication using OR:

SELECT event_id AS id, workspace_id as keyspace_id, reward_id, event_type 
FROM users_rewards__events 
WHERE event_type event_type=3 OR event_type=7 OR event_type=8

Error:

vttablet: rpc error: code = Unknown desc = unsupported constraint: event_type = 3 or event_type = 7 or event_type = 8

Materialize config:

{
  "workflow": "billing__coupon_syncer__msgs",
  "source_keyspace": "iam",
  "target_keyspace": "workspaces",
  "table_settings": [
    {
      "target_table": "billing__chargebee_coupon_syncer__msgs",
      "source_expression": "SELECT event_id AS id, workspace_id as keyspace_id, reward_id, event_type FROM users_rewards__events WHERE event_type=3 OR event_type=7 OR event_type=8"
    }
  ],
  "tablet_types": "REPLICA"
}

Related Issues:

Version: > v13 - pretty close to current main on 2022-04-11

@derekperkins derekperkins added Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: VReplication Needs Triage This issue needs to be correctly labelled and triaged labels Apr 11, 2022
@mattlord mattlord removed the Needs Triage This issue needs to be correctly labelled and triaged label Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VReplication Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

No branches or pull requests

2 participants