You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "SettZhou (via GitHub)" <gi...@apache.org> on 2025/07/28 09:08:37 UTC
[D] Download error with povit table [superset]
GitHub user SettZhou created a discussion: Download error with povit table
Download error when i create a povit table with Aggregation function . And i use function : 1、show rows total 2、show rows subtotal 3、show columns total 4、show columns subtotal 5、transpose pivot.
GitHub link: https://github.com/apache/superset/discussions/34348
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Download error with povit table [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] edited a comment on the discussion: Download error with povit table
<!-- Answer -->
There aren't any existing tickets or documentation that directly address download errors with pivot tables when all advanced options (aggregation, show rows/columns totals and subtotals, transpose) are enabled. Recent changes to Superset's export logic—especially the backend `pivot_df` function—handle these features by building a complex DataFrame with MultiIndexes, inserting totals/subtotals, and flattening for CSV/Excel output. When all options are used together, this complexity can trigger backend errors or malformed downloads, especially if there are edge cases in index/column manipulation or DataFrame flattening during export [[pivot_df implementation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/charts/client_processing.py)].
If possible, try disabling one or more of the advanced options (like subtotals or transpose) to see if a specific combination triggers the error. If you can share the exact error message, your Superset version, or any logs/stack traces, that would help pinpoint the root cause. Recent improvements to export functionality may also be relevant if you're on a newer version [[PR 33569](https://github.com/apache/superset/pull/33569), [PR 33357](https://github.com/apache/superset/pull/33357)].
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=reply-with-mention&utm_term=apache%2Fsuperset).*
---
Share context across your team and agents. Try [Dosu](https://dosu.dev?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-tagline&utm_term=apache%2Fsuperset).
[](https://app.dosu.dev/response-feedback?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-feedback&utm_term=apache%2Fsuperset&message_id=39ea0bb4-4536-4d7a-8de1-87d966d8bea0) [](https://github.dosu.com/apache/superset?utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-learn-repo&utm_term=apache%2Fsuperset) [](https://app.dosu.dev/signup?referrer=openSource&source=github-footer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-comment-footer-20260415&utm_content=knowledge-infrastructure-add-team&utm_term=apache%2Fsuperset)
GitHub link: https://github.com/apache/superset/discussions/34348#discussioncomment-13907997
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [D] Download error with povit table [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: Download error with povit table
<!-- Answer -->
There aren't any existing tickets or documentation that directly address download errors with pivot tables when all advanced options (aggregation, show rows/columns totals and subtotals, transpose) are enabled. Recent changes to Superset's export logic—especially the backend `pivot_df` function—handle these features by building a complex DataFrame with MultiIndexes, inserting totals/subtotals, and flattening for CSV/Excel output. When all options are used together, this complexity can trigger backend errors or malformed downloads, especially if there are edge cases in index/column manipulation or DataFrame flattening during export [[pivot_df implementation](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/charts/client_processing.py)].
If possible, try disabling one or more of the advanced options (like subtotals or transpose) to see if a specific combination triggers the error. If you can share the exact error message, your Superset version, or any logs/stack traces, that would help pinpoint the root cause. Recent improvements to export functionality may also be relevant if you're on a newer version [[PR 33569](https://github.com/apache/superset/pull/33569), [PR 33357](https://github.com/apache/superset/pull/33357)].
<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
---
<sup>How did I do? [Good](https://app.dosu.dev/response-feedback/39ea0bb4-4536-4d7a-8de1-87d966d8bea0?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/39ea0bb4-4536-4d7a-8de1-87d966d8bea0?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/39ea0bb4-4536-4d7a-8de1-87d966d8bea0?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/39ea0bb4-4536-4d7a-8de1-87d966d8bea0?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/39ea0bb4-4536-4d7a-8de1-87d966d8bea0?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/39ea0bb4-4536-4d7a-8de1-87d966d8bea0?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/39ea0bb4-4536-4d7a-8de1-87d966d8bea0?feedback_type=other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&
nbsp;[](https://go.dosu.dev/discord-bot) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/34348)
GitHub link: https://github.com/apache/superset/discussions/34348#discussioncomment-13907997
----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org