Azure / pykusto

Query Kusto like a pro from the comfort of your Jupyter notebook

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asynchronous background fetching causes confusing behavior if items are requested before they are done being fetched

ymost opened this issue · comments

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:

  1. Print a log message to explain why the returned list is empty.
  2. Make the various "get_" methods blocking.

We encountered this also in table.get_columns()