Skip to content

Create ClientRequestProperties class

Compare
Choose a tag to compare
@toshetah toshetah released this 11 Dec 16:54
· 345 commits to master since this release
afb9449

Create ClientRequestProperties class.

BREAKING CHANGES:

  • ClientRequestProperties class is introduced. The methods azure.kusto.data.request.KustoClient.execute* will no longer have the arguments accept_partial_results, timeout.
    In order to set them, an instance of ClientRequestProperties should be initiated and passed to the execute methods. Example:
from azure.kusto.data.request import ClientRequestProperties
properties = ClientRequestProperties()
properties.set_option(ClientRequestProperties.OptionDeferPartialQueryFailures, True)
properties.set_option(ClientRequestProperties.OptionServerTimeout, 10) # 10 seconds to timeout
r = client.execute_query("Database1", query, properties)

FEATURES:

  • The ClientRequestProperties allow to pass options in the request body. See example above.

FIXES:

None