Real Kusto widens int's to long's, Kusto.Language doesn't
davidnx opened this issue · comments
I found that even in trivial cases, real Kusto seems to widen int's to long's, which doesn't match Kusto.Language analysis behavior.
Something as simple as the Add operator illustrates this:
print v=int(1) + int(2)
Kusto.Language analysis of query indicates the result type is (v: int)
, but real Kusto produces (v:long)
(verified using print v=gettype(int(1) + int(2))
).
Are there docs to explain this behavior and whether this is expected or if it is a bug in the analyzer or in the engine?
Possibly related
See also: #67
The same kind of widening might be playing a role for a function call like bin(int(9), int(5))
. Instead of produing int
, real Kusto produces long
. Not sure if arguments are always widened from int to long, or if the bin function simply isn't implemented for int
inputs.
It looks like there is a problem with promoting int's to longs for these cases. It will get fixed.
This has been fixed.
@mattwar do you have an estimate when a new Nuget will be published with these changes? Latest released version 10.0.1
doesn't include the fix as far as I can tell. Thanks!