Igor Strupinskiy
05/12/2023, 1:14 AMgd_result_table = sdk.tables.for_items(
workspace_id=gd_workspace_id,
items=attributes_to_query,
filters=filters,
)
When my result table has more than 10,000 entries, the above raises an exception. I was curious if that 10,000 was a hard limit, or something I could configure?
If it is a hard limit — is there a way I can configure the above query to just return the top N rows instead, where N <= 10,000?Jan Soubusta
05/12/2023, 7:28 AMJan Soubusta
05/12/2023, 7:29 AMJan Kadlec
05/12/2023, 8:17 AMfrom gooddata_pandas import GoodPandas
from gooddata_sdk import RankingFilter, ObjId
good_pandas = GoodPandas("<http://localhost:3000>", "YWRtaW46Ym9vdHN0cmFwOmFkbWluMTIz")
df_factory = good_pandas.data_frames("demo")
df_factory.for_items(
items=dict(
reg="label/region",
category="label/products.category",
price="fact/price",
order_amount=ObjId(type="metric", id="order_amount"),
),
filter_by=RankingFilter(
metrics=[ObjId(type="metric", id="order_amount")],
operator="TOP",
value=10,
dimensionality=[]
)
)
Igor Strupinskiy
05/12/2023, 3:13 PMJan Kadlec
05/12/2023, 3:16 PMsdk.tables.for_items
as well 🙂Igor Strupinskiy
05/12/2023, 3:16 PMIgor Strupinskiy
05/12/2023, 3:17 PMIgor Strupinskiy
05/12/2023, 3:17 PMJan Kadlec
05/12/2023, 3:17 PMIgor Strupinskiy
05/12/2023, 3:18 PMJan Soubusta
05/12/2023, 3:28 PMIgor Strupinskiy
05/12/2023, 3:30 PMJan Kadlec
05/12/2023, 3:32 PMJan Soubusta
05/12/2023, 3:36 PM