Im trying to write a custom UDAF for KSQLDB. First i wanted to try out the example: https://docs.ksqldb.io/en/latest/how-to-guides/create-a-user-defi ...
Im trying to write a custom UDAF for KSQLDB. First i wanted to try out the example: https://docs.ksqldb.io/en/latest/how-to-guides/create-a-user-defi ...
We find the performance issue while using SQLCLR user defined aggregate function(UDA), Here are our scenario: We have 2 columns needed to calculate: ...
I am trying to add a new column in cassandra table to aid in some client side operations. The table is already there, and it has data in it. The prima ...
I created IBinarySerialize region in order to create my CLR for my user defined aggregate. I am trying to replicate my XIRR function in C# just to lea ...
I am looking into implementing a UserDefinedAggregateFunction in spark and see that a bufferSchema is needed. I understand how to create it, but my is ...
Here’s a sample of what I have in mind. When you query tbl with the aggregation function you should be this Result Tally Agregation function SQL: ...
I'm comparing my custom CLR aggregate vs AVG (SQL Server 2017). My queries are: And CLR is Execution plans are quite different, though. CLR que ...
Write an aggregate to count the number of times the number 40 is seen in a column. Use your aggregate to count the number of 40 year olds in the dire ...
I am using mariadb 10.3.9, and have created a user defined aggregate function (UDAF) and placed in a common_schema. This schema contains my utility fu ...
I have create and used a lot of times a SQL CLR aggregate which is concatenating values - it also order the values by specified number and use user in ...
I always thought that Spark does not allow to define User-Defined-Window-Functions. I just tested the "Geometric Mean" UDAF example from here (https:/ ...
I am trying to use Spark UDAF to summarize two existing columns into a new column. Most of the tutorials on Spark UDAF out there use indices to get th ...
I am creating a user-defined aggregate function that needs an additional parameter. More precisely it is a cumulative (aka window) minimum that takes ...
I have been trying to create custom aggregate function in SQL Server. I finally got it working (wrote assembly in C#). The goal is to concatenate all ...
I'm trying to create an UDAF on Spark (2.0.1, Scala 2.11) as below. This is to essentially aggregates tuples and output a Map import org.apache.spar ...
I am trying to create a function which counts and sums values by day (to later calculate the average). I got this far: This fails because tupleValu ...
I get some data from my mongodb that looks like this: It's not really necessary to know what is inside. I wrote an UserDefinedAggregateFunction li ...
I´m trying to find a way, to calculate the Median for a given Dataframe. Now I want to do sth like that: df.groupBy("col1").agg(calcmedian("col2")) ...
I am trying to define a UserDefinedAggregateFunction(UDAF) in Spark, which counts the number of occurrences for each unique values in a column of a gr ...
Hy, I have post a question about CLR User-Defined Aggregates few month ago oon this post. This works like a charm. But now I would like to quite th ...