-
In the nutshell - is it possible to programmatically build a query and execute it in Trino without using outside scripting. Something along these lines: exec (
SELECT 'select ' || array_join(array_agg(column_name), ', ') || ' from jmx.current."trino.memory:name=clustermemorymanager"'
FROM jmx.information_schema.columns
WHERE table_name = 'trino.memory:name=clustermemorymanager'
and table_schema = 'current'
and column_name like '%cluster%'
GROUP BY true;
) Which would be equivalent of: EXECUTE IMMEDIATE 'select clustermemorybytes, clustertotalmemoryreservation, clusterusermemoryreservation from jmx.current."trino.memory:name=clustermemorymanager"'; where the string was build dynamically. |
Beta Was this translation helpful? Give feedback.
Answered by
findepi
May 14, 2024
Replies: 1 comment
-
currently there is no such functionality and i am not aware of any plans to build one |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
gurustron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
currently there is no such functionality and i am not aware of any plans to build one