microsoft / Kusto-Query-Language

Kusto Query Language is a simple and productive language for querying Big Data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support join failure in Diagnotics: "Inconsistent data types for the join keys"?

callmewhy opened this issue · comments

Hi, we noticed that the kind of error "Inconsistent data types for the join keys (TenantId, TenantId) (StringBuffer, UniqueId)" cannot be detected in kustoCode.GetDiagnotics()

Sample query

let a = datatable(id: string) [];
let b = datatable(id: guid) [];
a | join kind=inner b on id

In Kusto Client there is also no error detected, so I supposed it's not supported by static analytics yet.

But it should be able to be detected as it's a type mismatch and we have the context for projected columns. Do you consider supporting this feature?

Thanks

Yes, I'll add this check to the static analysis.

This has been added to the semantic analysis.

Hi @mattwar , thanks for the code change, I see the error in internal Kusto Client now. How can I take the latest code in NuGet? I saw the nuget Kusto.Language is still v11.0 published 2month ago. When will the new version be available? Thanks