CLUSTER BY
clause (TABLE)mask
clauseROW FILTER
clauseAtualizado 21/11/2024
to_csv
function Applies to: Databricks SQL Databricks Runtime
Returns a CSV string with the specified struct value.
expr
: A STRUCT expression.
options
: An optional MAP literal expression with keys and values being STRING.
> SELECT to_csv(named_struct('a', 1, 'b', 2));
1,2
> SELECT to_csv(named_struct('time', to_timestamp('2015-08-26', 'yyyy-MM-dd')), map('timestampFormat', 'dd/MM/yyyy'));
26/08/2015