Skip to content

How to pass in multiple expressions in find_ancestors() #1331

Closed Answered by georgesittas
steven-luabase asked this question in Q&A
Discussion options

You must be logged in to vote

The method expects a variable number of arguments, for example in scope.py we do:

column.find_ancestor(exp.Qualify, exp.Order, exp.Having, exp.Hint)

If you have an array types, you can pass in *types instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@steven-luabase
Comment options

Answer selected by georgesittas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants