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
I am not so sure how many times my UDF will be called though
On every new row I think yes but how do I make sure it is called on an existing row only if it changed ?
Answer:
n Update operation might become 2 rows UpdateDelete+UpdateInsert, so the UDF is called twice.
In theory, we can detect such no-op updates and compact them before invoking the UDF,
but since UDF is treated as a normal expression and is everywhere, it's hard to do it right now.
IIRC, the join operator always detects and compacts because the join operator may yield too many intermediate results, which can be very bad. (will double check)
The text was updated successfully, but these errors were encountered:
IIRC, the join operator always detects and compacts because the join operator may yield too many intermediate results, which can be very bad. (will double check)
A request from a user:
Answer:
In theory, we can detect such no-op updates and compact them before invoking the UDF,
but since UDF is treated as a normal expression and is everywhere, it's hard to do it right now.
Link: #14855 (comment)
IIRC, the join operator always detects and compacts because the join operator may yield too many intermediate results, which can be very bad. (will double check)
The text was updated successfully, but these errors were encountered: