Issue
When connecting to Amazon Redshift with custom SQL statement including the LISTAGG() function, the following error occurs:[Amazon][RedShift ODBC] (30) Error occurred while trying to execute a query:
ERROR: One or more of the used functions must be applied on at least one user created tables.
Examples of user table only functions are LISTAGG, MEDIAN, PERCENTILE_CONT, etc