EjemplosSQL Kopiatu -- Simple example > SELECT * FROM variant_explode_outer(parse_json('[1, "a", {"b": "hello"}]')); pos key value --- --- --- 0 NULL 1 1 NULL "a" 2 NULL {"b":"hello"} > SELECT * FROM variant_explode_outer(parse_json('{"foo":1,"bar":"hello...
Ejemplos Se aplica a: Databricks Runtime 12.1 y versiones posteriores: SQL Kopiatu > SELECT explode_outer(array(10, 20)) AS elem, 'Spark'; 10 Spark 20 Spark > SELECT explode_outer(collection => array(10, 20)) AS elem, 'Spark'; 10 Spark 20 Spark > SELECT explode_outer(map(1, ...
EjemplosSQL Copia -- Simple example > SELECT * FROM variant_explode_outer(parse_json('[1, "a", {"b": "hello"}]')); pos key value --- --- --- 0 NULL 1 1 NULL "a" 2 NULL {"b":"hello"} > SELECT * FROM variant_explode_outer(parse_json('{"foo":1,"bar":"hello"}...