Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bin function returns wrong type #67

Closed
davidnx opened this issue Mar 11, 2022 · 1 comment
Closed

bin function returns wrong type #67

davidnx opened this issue Mar 11, 2022 · 1 comment

Comments

@davidnx
Copy link

davidnx commented Mar 11, 2022

It seems like the bin function declaration is incorrect since it declares ReturnTypeKind.Parameter0 and this doesn't match actual Kusto behavior.

Trivial example:

print v = bin(10, 1.5)

Kusto.Language analysis of this query claims the result type is (v:long), but real Kusto produces (v:real).

Same issue, slightly more complex example

In this case, the implications are more significant:

print v=bin(5, 0.8)
| union (print v=1234.5)

Kusto.Language analysis of this query claims the result type is (v_long: long, v_real: real), but real Kusto produces (v:real).

More info

Tested with Microsoft.Azure.Kusto.Language version 10.0.1. Used App Insights to verify Kusto behavior in case this is relevant.

@mattwar
Copy link
Contributor

mattwar commented Mar 17, 2022

This one has also been fixed.

@mattwar mattwar closed this as completed Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants