You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "test.py", line 17, in <module>
response = client.execute(db, query)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/kusto/data/request.py", line 396, in execute
return self.execute_query(database, query, properties)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/kusto/data/request.py", line 407, in execute_query
self._query_endpoint, database, query, None, KustoClient._query_default_timeout, properties
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/kusto/data/request.py", line 462, in _execute
return KustoResponseDataSetV2(response.json())
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/kusto/data/_response.py", line 134, in __init__
super(KustoResponseDataSetV2, self).__init__([t for t in json_response if t["FrameType"] == "DataTable"])
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/kusto/data/_response.py", line 18, in __init__
self.tables = [KustoResultTable(t) for t in json_response]
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/kusto/data/_models.py", line 137, in __init__
self.rows = [KustoResultRow(self.columns, row) for row in json_table["Rows"]]
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/azure/kusto/data/_models.py", line 71, in __init__
typed_value = KustoResultRow.convertion_funcs[column_type](value)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/decimal.py", line 657, in __new__
raise TypeError("Cannot convert %r to Decimal" % value)
TypeError: Cannot convert None to Decimal
Repro
schema:
Problem description
Code fails with error
TypeError: Cannot convert None to Decimal
It's because of:
azure-kusto-python/azure-kusto-data/azure/kusto/data/_models.py
Line 71 in 6bf07c3
decimal
to thisif
fixes problemazure-kusto-python/azure-kusto-data/azure/kusto/data/_models.py
Line 51 in 6bf07c3
full stacktrace:
Output of
pip freeze
The text was updated successfully, but these errors were encountered: