Trying to get sample values for all columns, how can I do something like this?
SELECT
table_catalog,
table_schema,
table_name,
column_name,
is_nullable,
data_type,
(SELECT column_name FROM query_table(table_catalog || '.' || table_schema || '.' || table_name) WHERE column_name IS NOT NULL LIMIT 1) AS sample_value
FROM information_schema.columns