Asynchronous background fetching causes confusing behavior if items are requested before they are done being fetched
ymost opened this issue · 1 comments
ymost commented
Example code:
client = PyKustoClient(CLUSTER)
client.get_databases_names()
This might return an empty list because fetching the list of databases in the background did not finish yet. This is confusing for the user, who might think there are no databases, or that there is a bug in getting the list.
Possible solutions:
- Print a log message to explain why the returned list is empty.
- Make the various "get_" methods blocking.
DaniellePoleg commented
We encountered this also in table.get_columns()