-
- Downloads
Pivot Tables with no Pivot Columns should still download (#44329)
* Pivot Tables with no Pivot Columns should still download Fixes #44159 Pivot Tables can still be valid without columns, and therefore the download should respect such a query and be successfully exported. In this PR, the postprocessing of pivot results into 'visual pivot' exports for csv takes into account the zero-column configuration and the download no longer fails. * add a test to confirm that zero cols and >1 measures works as well * Handle the case where there are zero pivot-rows. This is a similar problem to the zero pivot-cols case, just with rows. The app actually doesn't render these tables correctly, but that's a separate frontend bug
Showing
- src/metabase/api/embed/common.clj 0 additions, 21 deletionssrc/metabase/api/embed/common.clj
- src/metabase/query_processor/pivot/postprocess.clj 41 additions, 26 deletionssrc/metabase/query_processor/pivot/postprocess.clj
- src/metabase/query_processor/streaming/csv.clj 2 additions, 1 deletionsrc/metabase/query_processor/streaming/csv.clj
- test/metabase/api/downloads_exports_test.clj 93 additions, 1 deletiontest/metabase/api/downloads_exports_test.clj
Please register or sign in to comment