Azure / azure-kusto-dotnet

Azure Data Explorer (Kusto) SDK for .NET
MIT License
8 stars 5 forks source link

Source Code #20

Open Arithmomaniac opened 1 year ago

Arithmomaniac commented 1 year ago

The source code for the other Kusto SDKs is available on Github, e.g. https://github.com/Azure/azure-kusto-python Is there a reason the dotnet one is missing the source code?

yogilad commented 1 year ago

The source code for the C# SDK is developed in an internal repository which does not have public view access. We'll consider replicating the code to a GitHub repo in the future.

mike-wood-dywidag commented 1 year ago

Lack of documentation specifically for querying is making ADX very difficult to work with. We're currently evaluating it for our organisation to move 6 years of sensor data into ADX.

Hunting around the code, it seems that it would be possible to query ADX using linq queries by using KustoDataContext, KustoQueryProvider and Query<T>

However this causes a stack overflow when trying to evaluate the expression.

All documentation simply shows how to query ADX with a statically typed string rather than programatically.

Is it possible to use linq / lamda expressions, and when might there be more comprehensive documentation in this area?

Many thanks.

yogilad commented 1 year ago

@mike-wood-dywidag , unfortunately linq support is not in active development and will be discontinued in future versions. C# SDK has Data Reader API support you can use.

We're in the midst of rewriting coding documentation and basic query is already published (management and ingestion coming soon). It's not a complete API guide but it should be enough to start with. https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/get-started/app-basic-query?tabs=csharp

ThiemeNL commented 1 year ago

An update on opening the source code?