explode_json_array_int
Description
explode_json_array_int 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 INT, an attempt will be made to convert them to INT. Elements that cannot be converted to INT will be converted to NULL.
