Skip to content

Commit

Permalink
Merge pull request #832 from hkad98/jkd/pandas-perf
Browse files Browse the repository at this point in the history
fix: call get_full_catalog when necessary
  • Loading branch information
hkad98 authored Oct 7, 2024
2 parents 6745865 + 1622674 commit 2edc83c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gooddata-pandas/gooddata_pandas/data_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,10 @@ def compute_and_extract(
exec_def = response.exec_def
cols = list(columns.keys())

catalog = sdk.catalog_workspace_content.get_full_catalog(workspace_id)

if not exec_def.has_attributes():
return _extract_for_metrics_only(response, cols, col_to_metric_idx), dict()
else:
catalog = sdk.catalog_workspace_content.get_full_catalog(workspace_id)
return _extract_from_attributes_and_maybe_metrics(
response,
catalog,
Expand Down

0 comments on commit 2edc83c

Please sign in to comment.