You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's impossible to handle a constant parameter in an aggregate function. I hope it's a bug, not the by design behaviour. (E.g. say, I want to evaluate a truncated mean and need to pass the upper and lower bounds as constants).
To Reproduce
Create an aggregate using the attached source file.
Execute the following statements:
createtabletest(id int, value int);
insert into test(id, value) values(1, 1);
select myagg(id, 1) from test group by value;
So I have to do some workaround: accept the second parameter as bat*, create an iterator for it and do BUNtail(it, 0). I think it's nor graceful neither very efficient.
And it does work for the ungrouped case, but I can't get the proper parameter value. It looks like there is some random number there.
select myagg(id, 1) from test;
Expected behavior (in merovingian.log)
#DFLOWworker1019: myagg: ERROR: COL2: 1
Actual behavior (in merovingian.log)
#DFLOWworker1019: myagg: ERROR: COL2: 1298
Software versions
MonetDB v11.47.3 (hg id: 79dbf838f044 88683)
Almalinux 8
self-installed and compiled
The text was updated successfully, but these errors were encountered:
It's impossible to handle a constant parameter in an aggregate function. I hope it's a bug, not the by design behaviour. (E.g. say, I want to evaluate a truncated mean and need to pass the upper and lower bounds as constants).
To Reproduce
Create an aggregate using the attached source file.
Execute the following statements:
Expected behavior
Actual behavior
So I have to do some workaround: accept the second parameter as
bat*
, create an iterator for it and doBUNtail(it, 0)
. I think it's nor graceful neither very efficient.And it does work for the ungrouped case, but I can't get the proper parameter value. It looks like there is some random number there.
Expected behavior (in merovingian.log)
Actual behavior (in merovingian.log)
Software versions
The text was updated successfully, but these errors were encountered: