Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Jun 20, 2024
  2. Jun 19, 2024
  3. Jun 18, 2024
    • adam-james's avatar
      Pivot Tables with no Pivot Columns should still download (#44329) · 37abc084
      adam-james authored
      * 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
      Unverified
      37abc084
Loading