File tree Expand file tree Collapse file tree
gooddata-sdk/gooddata_sdk/compute/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -175,20 +175,13 @@ def _create_totals(self) -> Optional[list[models.Total]]:
175175 models .Total (
176176 local_identifier = total .local_id ,
177177 metric = total .metric_local_id ,
178- function = ExecutionDefinition . _convert_total_aggregation ( total .aggregation ),
178+ function = total .aggregation . upper ( ),
179179 total_dimensions = total_dims ,
180180 )
181181 )
182182
183183 return totals
184184
185- @staticmethod
186- def _convert_total_aggregation (aggregation : str ) -> str :
187- # native total is represented as NAT in visualization objects, but needs to be NATIVE in execution
188- if aggregation .upper () == "NAT" :
189- return "NATIVE"
190- return aggregation .upper ()
191-
192185 def _create_result_spec (self ) -> models .ResultSpec :
193186 dimensions = self ._create_dimensions ()
194187 totals = self ._create_totals ()
You can’t perform that action at this time.
0 commit comments