I am trying to profile the data in a azure synapse delta table. One of the things I want to collect is a small sample of field values for each column.
I can do a column by column version and union the results. e.g.
SELECT '_ModifiedDatetime' AS column_name, string(collect_list(_ModifiedDatetime)) FROM (select DISTINCT _ModifiedDatetime from table) TABLESAMPLE (5 ROWS)
Note: The string function is in there to cope with unioning boolean lists
This is laborious. I was hoping someone had a more elegant way of doing this