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
Trino SQL allows you to specify a User Defined Function in the WITH block ahead of the SELECT/UPDATE/etc... statement, however this is currently unsupported in JSQLParser
SQL Example:
Simplified Query Example, focusing on the failing feature
WITH
FUNCTION hello(name varchar)
RETURNS varchar
RETURN format('Hello %s!', 'name'),
FUNCTION bye(name varchar)
RETURNS varchar
RETURN format('Bye %s!', 'name')
SELECT hello('Finn') ||' and '|| bye('Joe');