Skip to content

Bug fix: client request properties

Compare
Choose a tag to compare
@toshetah toshetah released this 21 Apr 07:35
· 307 commits to master since this release
17e6860

BREAKING CHANGES:

  • Change the type of server timeout from int/float into timedelta.
    So far, a code snippet as follow will run, but have the default timeout:
from azure.kusto.data.request import KustoClient, KustoConnectionStringBuilder, ClientRequestProperties
properties = ClientRequestProperties()
properties.set_option(properties.OptionServerTimeout, 8 * 60)
kcsb = KustoConnectionStringBuilder.with_aad_device_authentication(cluster)
client = KustoClient(kcsb)
response = client.execute(db, query, properties=properties)

Client request properties will now expect receiving timedelta. The following timeout will apply:

from datetime import timedelta
from azure.kusto.data.request import KustoClient, KustoConnectionStringBuilder, ClientRequestProperties
properties = ClientRequestProperties()
properties.set_option(properties.OptionServerTimeout, timedelta(8 * 60))
kcsb = KustoConnectionStringBuilder.with_aad_device_authentication(cluster)
client = KustoClient(kcsb)
response = client.execute(db, query, properties=properties)

FEATURES:

None.

FIXES:

None.