-
Notifications
You must be signed in to change notification settings - Fork 397
Fix ancestors_of exception for tables with >=2000 snapshots #821
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
Conversation
|
Hi @ndrluis - thank you for raising this. This looks like an issue we'd definitely want to fix. Just to help with reviewing this PR, and for future records, would you be able to share the stack trace of the exception you are running into in this edge case? |
|
Hi @syun64, this is the stacktrace |
Hey @ndrluis thanks for sharing the stacktrace. If the issue is with the recursion depth, could we try writing this in a simple way that doesn't require recursion? i.e. |
a84b6e5 to
8d639b8
Compare
8d639b8 to
5c0dfdd
Compare
|
@syun64 Thank you for the review. I made the changes as you asked and also made a slight change due to a mypy error regarding the snapshot_by_id type |
sungwy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fokko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndrluis Thanks, looking good 👍 @syun64 appreciate the review 🙌
When I was running some tests in production, I discovered this error.