explode_json_array_string
Description
explode_json_array_string table function, accepts a JSON array. Its implementation logic is to convert the JSON array into an array type and then call the explode function for processing. Must be used with LATERAL VIEW.
Syntax
Parameters
<json> JSON type, its content should be an array.
Return Results
- Returns a single-column multi-row result set composed of all elements in
<json>, with the column type beingNullable<JSON>. - If
<json>is NULL or an empty array (element count is 0), returns 0 rows. - If the elements of the JSON array are not of type STRING, an attempt will be made to convert them to STRING. Elements that cannot be converted to STRING will be converted to NULL.
