azure-functions-sql-extension icon indicating copy to clipboard operation
azure-functions-sql-extension copied to clipboard

Feature request : support accumulations on output (compound assignments)

Open Fleid opened this issue 4 years ago • 3 comments

The UPDATE and MERGE commands in SQL allow compound assignments:

+= Add and assign -= Subtract and assign

I can't think of a way to do that with the current output binding. Supporting these assignments would allow us to build accumulations (materialized views).

Fleid avatar Nov 19 '21 00:11 Fleid

example implementation in full code: https://docs.microsoft.com/en-us/azure/stream-analytics/sql-database-upsert#option-2-merge-with-compound-assignment-accumulate-via-a-custom-sql-query

dzsquared avatar Feb 02 '22 21:02 dzsquared

Drew, I suppose this is for others stumbling on this issue?

Fleid avatar Feb 02 '22 21:02 Fleid

@Fleid - yep! adding just a bit more context as we get more traffic.

dzsquared avatar Feb 03 '22 01:02 dzsquared