How to pass in multiple expressions in find_ancestors() #1331
-
In the docs it seems possible to pass in multiple expressions into find_ancestor function. How do I do that in practice? Passing in an array of expressions throws an error. |
Beta Was this translation helpful? Give feedback.
Answered by
georgesittas
Mar 22, 2023
Replies: 1 comment 1 reply
-
The method expects a variable number of arguments, for example in column.find_ancestor(exp.Qualify, exp.Order, exp.Having, exp.Hint) If you have an array |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
georgesittas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The method expects a variable number of arguments, for example in
scope.py
we do:If you have an array
types
, you can pass in*types
instead.