kartothek icon indicating copy to clipboard operation
kartothek copied to clipboard

normalize "in" predicate as disjunction of "=="

Open lr4d opened this issue 4 years ago • 8 comments

Description:

The following two statements are equivalent:

  • x in [1,2,3]
  • (x == 1) or (x == 2) or (x == 3)

This approach simplifies the function by just calling itself instead of iterating over a for loop and essentially running the code block under if op == "==": for each value of an "in" predicate

  • [ ] Closes #xxxx
  • [ ] Changelog entry

lr4d avatar Feb 24 '21 15:02 lr4d