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
/**
* Returns the identity. Mostly for testing.
*
* @param session
* Connector session, populated by the Presto runtime
* @return identity, as a string
*/
@ScalarFunction("print_identity")
@SqlType(StandardTypes.VARCHAR)
@Description("Returns the identity represented as a string")
public static Slice printIdentity(ConnectorSession session) {
return Slices.utf8Slice(session.getIdentity().toString());
}
Pre 0.245 the Session would get populated automatically. Most of my UDF's use Session as the first Argument. Now it is forcing me to use a Scaler for All Arguments. And it looks like ConnectorSession is not getting auto populated anymore. What changed here? How do I get the Session information now? Trying to look for the documentation on the changes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Updating my UDFs from 0.238 to 0.261.
I have a simple UDF.
Pre 0.245 the Session would get populated automatically. Most of my UDF's use Session as the first Argument. Now it is forcing me to use a Scaler for All Arguments. And it looks like ConnectorSession is not getting auto populated anymore. What changed here? How do I get the Session information now? Trying to look for the documentation on the changes.
Thanks in Advance
Beta Was this translation helpful? Give feedback.
All reactions