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
{{ message }}
Repository navigation
UDFs must not modify arguments passed by reference #9
UDFs can receive references such as arrays or maps. However, they must not change those arguments. Add notes about this in the Server Programming part.
Is it safe, by the way, to return one of the input parameters as is? I imagine that if we have something like
SELECT RSTREAM oneItem, identity(oneItem) AS anotherItem FROM ...
and the identity function just returns the input parameter, is it possible that we run into trouble later when oneItem and anotherItem point to the same object?
Activity
tgpfeiffer commentedon Feb 8, 2016
Is it safe, by the way, to return one of the input parameters as is? I imagine that if we have something like
and the
identityfunction just returns the input parameter, is it possible that we run into trouble later whenoneItemandanotherItempoint to the same object?nobu-k commentedon Feb 8, 2016
I think it should be safe.
tgpfeiffer commentedon Mar 11, 2016
Code-wise, this has been addressed by the introduction of the TFSharedData flag.