DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 313 forks source link

ArgumentError: List of aggregates should not be empty #500

Open ShubhankarKG opened 2 years ago

ShubhankarKG commented 2 years ago

I was following the tutorial for Cubes. After creating the browser, the next command is

result = browser.aggregate()

On trying this, I got an error:

/usr/local/lib/python3.7/dist-packages/cubes/sql/browser.py in aggregation_statement(self, cell, aggregates, drilldown, split, for_summary)
    530 
    531         if not aggregates:
--> 532             raise ArgumentError("List of aggregates should not be empty")
    533 
    534         if not isinstance(drilldown, Drilldown):

ArgumentError: List of aggregates should not be empty