Azure / pykusto

Query Kusto like a pro from the comfort of your Jupyter notebook
MIT License
30 stars 10 forks source link

Retry config causes an exception beacuse of bug in argumets order in client execute function #158

Closed ofrikleinfeld closed 3 years ago

ofrikleinfeld commented 3 years ago

In _src.client.py the function execute is defined as follows: def execute(self, query: KQL, retry_config: RetryConfig = None) -> KustoResponse: return self.__database.execute(query, retry_config)

but the database.execute function receives three arguments, without explicitly naming the argument as retry_config, it is used as the properties argument.

def execute(self, query: KQL, properties: ClientRequestProperties = None, retry_config: RetryConfig = None) -> KustoResponse: return self.__client.execute(self.__name, query, properties, retry_config)