Azure / Azure/azure-sdk-for-python

Purview Entity.get_by_ids batch size limit likely not documented?

Offen
#39,935 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
customer-reported needs-team-attention Purview question Service Attention
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
213

Beschreibung

- **Package Name**: azure-purview-datamap
- **Package Version**: 1.0.0b1
- **Operating System**: Windows
- **Python Version**: 3.11

**Describe the bug**
I'm running into some issues with the `DataMapClient.entity.get_by_ids(guid=guid_list)` method, which fails when the passed list of guids is large. So far, by testing manually I get a response when I pass 193 or less guids in that list. If I send 194 or more guids in that call I get a `JsonDecodeError` from the API. While it makes sense there are limits, 194 seems like an odd number and I've never seen anything like that in the docs. Also, the JsonDecodeError seems hard to decipher, since I'm not actually getting HTTP codes from the API call.

**To Reproduce**
Steps to reproduce the behavior:
1. fetch a list of more than 194 guids from a Purview instance
2. call DataMapClient.entity.get_by_ids(guid=guid_list)

**Expected behavior**
I'd like to know if there's anyplace in the docs where this is mentioned, and if so, get a clear HTTP response of why the call is failing

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit DataMapClient.entity.get_by_ids im Paket azure-purview-datamap und reproduziere den Aufruf mit 193 bzw. 194 GUIDs. Untersuche den zurückgegebenen JsonDecodeError sowie alle verfügbaren Dokumentationen zum Service oder SDK; abgeschlossen ist die Untersuchung, wenn das Batch-Limit und die Fehlerantwort eindeutig dokumentiert sind oder das Problem bestätigt behoben wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, python
Bereich
api, documentation
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.