Pivot Exports/Downloads Should Not include pivot-grouping or 'Extra' Rows (#47832)
* Pivot Exports/Downloads Should Not include pivot-grouping or 'Extra' Rows Fixes 46561 When downloading a pivot table's data, a column 'pivot-grouping' is included as well as 'extra' rows that correspond to various totals in the table. This PR removes the pivot-grouping column and any of these 'extra' rows from the downloads/exports. * fix xlsx * Fix csv * fix json * add test and fix some failing tests * fmt * Update src/metabase/query_processor/streaming/csv.clj Co-authored-by:metamben <103100869+metamben@users.noreply.github.com> * static viz table renders filter out pivot-grouping * address review feedback * add some comments to try explain the changes --------- Co-authored-by:
metamben <103100869+metamben@users.noreply.github.com>
Showing
- src/metabase/pulse/render/table.clj 19 additions, 9 deletionssrc/metabase/pulse/render/table.clj
- src/metabase/query_processor/pivot/postprocess.clj 5 additions, 0 deletionssrc/metabase/query_processor/pivot/postprocess.clj
- src/metabase/query_processor/streaming/csv.clj 29 additions, 13 deletionssrc/metabase/query_processor/streaming/csv.clj
- src/metabase/query_processor/streaming/json.clj 43 additions, 24 deletionssrc/metabase/query_processor/streaming/json.clj
- src/metabase/query_processor/streaming/xlsx.clj 51 additions, 39 deletionssrc/metabase/query_processor/streaming/xlsx.clj
- test/metabase/api/downloads_exports_test.clj 44 additions, 13 deletionstest/metabase/api/downloads_exports_test.clj
- test/metabase/pulse/render/body_test.clj 25 additions, 0 deletionstest/metabase/pulse/render/body_test.clj
- test/metabase/pulse/render/test_util.clj 21 additions, 0 deletionstest/metabase/pulse/render/test_util.clj
Please register or sign in to comment