NeilMacMullen / kusto-loco

C# KQL query engine with flexible I/O layers and visualization
MIT License
43 stars 5 forks source link

round is not actually implemented #54

Closed NeilMacMullen closed 2 months ago

NeilMacMullen commented 3 months ago

m | extend L=round(3.14,1)

gives error...

Function round(number: dynamic, precision: long) is not implemented.

Despite there apparently being an implementation...

[KustoImplementation(Keyword = "Functions.Round")]
internal partial class RoundFunction
{
    private static double ImplP(double input, long precision) => Math.Round(input, (int)precision);
    private static double Impl(double input) => Math.Round(input, 0);
}
NeilMacMullen commented 2 months ago

done