tomasfabian / ksqlDB.RestApi.Client-DotNet

ksqlDb.RestApi.Client is a C# LINQ-enabled client API for issuing and consuming ksqlDB push and pull queries and executing statements.
MIT License
93 stars 24 forks source link

Feature/function translations #41

Closed tomasfabian closed 1 year ago

tomasfabian commented 1 year ago

Added support for custom function translations (invocations):

  private static class F
  {
    [KSqlFunction]
    public static double Abs(double input) => throw new NotSupportedException();

    [KSqlFunction(FunctionName = "Abs")]
    public static double MyAbs(double input) => throw new NotSupportedException();
  }
Expression<Func<Tweet, double>> expression = c => F.Abs(c.Amount);