Apply Column Sort To Pivot Sections (#49802) (#49988)
* Apply Column Sort To Pivot Sections
Fixes #49437
This PR fixes the dataset API so that column sorts (ascending/descending settings on pivot-rows and pivot-cols) are
properly parsed and passed through the QP.
After that, I've also modified the post processor to use the sort orders properly in pivoted exports.
* println debugging :)
* fixing a few tests
* fix a few more tests
Co-authored-by: adam-james <21064735+adam-james-v@users.noreply.github.com>
Showing
- src/metabase/api/dataset.clj 1 addition, 1 deletionsrc/metabase/api/dataset.clj
- src/metabase/query_processor/middleware/pivot_export.clj 2 additions, 1 deletionsrc/metabase/query_processor/middleware/pivot_export.clj
- src/metabase/query_processor/pivot.clj 30 additions, 4 deletionssrc/metabase/query_processor/pivot.clj
- src/metabase/query_processor/pivot/postprocess.clj 44 additions, 13 deletionssrc/metabase/query_processor/pivot/postprocess.clj
- test/metabase/api/downloads_exports_test.clj 0 additions, 8 deletionstest/metabase/api/downloads_exports_test.clj
- test/metabase/query_processor/pivot_test.clj 3 additions, 3 deletionstest/metabase/query_processor/pivot_test.clj
Loading
Please register or sign in to comment