Bug fix: client request properties
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.