-
Notifications
You must be signed in to change notification settings - Fork 155
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
Default string output of TableSet with multiple layers of nesting throws AttributeError: 'TableSet' object has no attribute 'rows'
#765
Comments
Thank you for reporting! The issue was that group_by – uniquely – returns a TableSet instead of a Table. Calling group_by a second time yielded a TableSet containing TableSets (instead of directly containing Tables), causing the error. |
Ah, my solution worked for group_by, but it messed up pivot (which calls group_by and aggregate) and aggregate (which contains logic for nested table sets). |
Does this make any sense for that input?
|
The patch: #776 |
…ableset fix: Fix TableSet.print_structure for nested tablesets, #765
Example below. I encountered this while exploring a dataset in an ipdb debugging session (debugging a dbt macro). For some reason ipdb wasn't showing me the full stack traces for errors -- just the exception type and description.
So the only output I got looked like this:
making this issue more confusing than it may have otherwise been.
Note, now that I understand this is simply an issue with the string output on the REPL and not an issue with the underlying data (and I can still save it to disk), this issue does not block me.
Example to reproduce
Input:
Actual string output:
JSON output for clarity:
Expected string output:
???
(I have no ideas here other than "probably not an exception". 🙂 Figured I'd still go ahead and share.)
The text was updated successfully, but these errors were encountered: