Is data obtained via graphql limited to 100 buckets by design? #13960
|
Hi! I have been working with my own library on top of skywalking's oap graphql's queries. depending on resolution and interval requested, several tests shown that only 100 buckets max are returned. This is true and visible even on new horizon's UI (ask for last 4 hours only get first 100 minutes) - Is that by design or is it a bug? I will appreciate if somebody can help me understand this. Regards. - Miguel |
Replies: 1 comment 2 replies
|
There is a limit, but it isn't 100, and what you hit is not by design — it's a bug. Thanks for the clear report. The intended limit is 500 points, and it errors instead of truncating. The 100 comes from the storage engine, not from SkyWalking's query layer. BanyanDB applies its own default limit to any query that arrives without one — 100 rows for measures ( So: This is BanyanDB-only. Elasticsearch fetches those rows by explicit document id ( Fix: #13961. Every BydbQL query now leaves OAP carrying an explicit Until that ships, a query whose point count stays at or under 100 returns complete data — so a coarser |
There is a limit, but it isn't 100, and what you hit is not by design — it's a bug. Thanks for the clear report.
The intended limit is 500 points, and it errors instead of truncating.
DurationUtils.MAX_TIME_RANGE = 500is the only cap the query layer means to impose, and exceeding it raisesDuration data error, the range between the start time and the end time can't exceed 500 minutes. Your 4-hour minute-step query is 240 points — well inside that — so it should have come back in full.The 100 comes from the storage engine, not from SkyWalking's query layer. BanyanDB applies its own default limit to any query that arrives without one — 100 rows for measures (
defaultLimitinpkg/query/logi…