You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make the "Export to pivoted .CSV" option work for a (relatively) convoluted pivot table and I found some issues. I will create a bug report for each of them.
Description
If the pivot table has multiple fields selected as 'Rows', the resulting csv file merges all of them into one column, instead of separating them like in the table shown in the browser (check screenshots).
Steps to reproduce:
Create a "pivot table" graph.
Select multiple 'Rows' under the data section.
Select one or multiple 'Metrics'.
Click on 'Download' -> 'Export to pivoted .CSV'
Additional information
If you select 'ROWS' in 'APPLY METRICS ON' instead of 'COLUMNS', it will then merge the name of the metrics and the rows fields.
Screenshots/recordings
Browser
CSV
Superset version
4.1.1
Python version
3.10
Node version
I don't know
Browser
Firefox
Additional context
Source code:
I'm using version 4.1.1, but I tried updating 'post_processing.py' to match what's in the master branch's 'client_processing.py' since I needed PR #29898 (which doesn't seem to affect this issue).
The issue you're experiencing with the "Export to pivoted .CSV" feature, where multiple 'Rows' fields are merged into one column in the resulting CSV file, seems to be a known problem. Unfortunately, I couldn't find specific details in the Superset codebase about how this feature handles multiple 'Rows' fields during export. However, there is a comment in the codebase indicating that any changes to the logic in the PivotTableChart.tsx file should be reflected in the corresponding Python function in post_processing.py[1].
Since you've already tried updating post_processing.py to match the master branch's client_processing.py and noted that PR #29898 doesn't seem to affect this issue, it might be worth investigating further into the logic within these files to see if there are any discrepancies or areas that could be adjusted to handle multiple 'Rows' fields correctly.
If you haven't already, you might want to check if there are any recent updates or discussions in the Superset community that address this specific issue, as it could be a bug that others have encountered as well.
Bug description
I'm trying to make the "Export to pivoted .CSV" option work for a (relatively) convoluted pivot table and I found some issues. I will create a bug report for each of them.
Description
If the pivot table has multiple fields selected as 'Rows', the resulting csv file merges all of them into one column, instead of separating them like in the table shown in the browser (check screenshots).
Steps to reproduce:
Additional information
If you select 'ROWS' in 'APPLY METRICS ON' instead of 'COLUMNS', it will then merge the name of the metrics and the rows fields.
Screenshots/recordings
Browser

CSV

Superset version
4.1.1
Python version
3.10
Node version
I don't know
Browser
Firefox
Additional context
Source code:
I'm using version 4.1.1, but I tried updating 'post_processing.py' to match what's in the master branch's 'client_processing.py' since I needed PR #29898 (which doesn't seem to affect this issue).
Feature flags:
Checklist
The text was updated successfully, but these errors were encountered: