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

shovel: filter on fields that aren't indexed #215

Open
ryandotsmith opened this issue Dec 15, 2023 · 1 comment
Open

shovel: filter on fields that aren't indexed #215

ryandotsmith opened this issue Dec 15, 2023 · 1 comment

Comments

@ryandotsmith
Copy link
Member

The following input's filter will not be applied because it has no column specific

"inputs": [{
  "indexed": false,
  "name": "foo",
  "type": "bytes32",
  "filter_op": "contains",
  "filter_arg": ["deadbeef"]
}

This is not ideal. I'd like to filter on a field regardless of whether I'm saving it to the db.

@holic
Copy link
Contributor

holic commented Dec 15, 2023

another use case

"block": [
  { "name": "chain_id", "column": "chain_id" },
  { "name": "log_addr", "column": "log_addr", "filter_op": "contains", "filter_arg": ["deadbeef"]},
  { "name": "block_time", "column": "block_time" }
],

since I already know the address I am filtering on, I don't need to store it in the DB

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

No branches or pull requests

2 participants