morrySnow commented on code in PR #2229: URL: https://github.com/apache/doris-website/pull/2229#discussion_r2108613308
########## docs/sql-manual/sql-functions/table-functions/explode.md: ########## @@ -26,12 +26,12 @@ under the License. ## Description -The `explode` function takes an array as input and maps each element of the array to a separate row. It is typically used in conjunction with LATERAL VIEW to flatten nested data structures into a standard tabular format. The main difference between explode and `explode_outer` lies in handling empty values. +The `explode` function takes one or more arrays as input and maps each element of the array to a separate row.The elements at the same index position of each array will be grouped together to form a row. It is typically used in conjunction with LATERAL VIEW to flatten nested data structures into a standard tabular format. The main difference between explode and `explode_outer` lies in handling empty values. ## Syntax ```sql -EXPLODE(<array>) -EXPLODE_OUTER(<array>) +EXPLODE(<array>[, <array> ]) +EXPLODE_OUTER(<array>[, <array> ]) Review Comment: ```suggestion EXPLODE_OUTER(<array> [, ... ]) ``` ########## docs/sql-manual/sql-functions/table-functions/explode-variant-array.md: ########## @@ -26,11 +26,11 @@ under the License. ## Description -The `explode_variant_array` table function accepts a variant type, where each element is a JSON object, and expands each JSON object in the array into multiple rows, with each row containing one JSON object. It is used in conjunction with LATERAL VIEW. +The `explode_variant_array` table function accepts one or more variant type, where each element is a JSON object, and expands each JSON object in the array into multiple rows, with each row containing one JSON object. It is used in conjunction with LATERAL VIEW. ## Syntax ```sql -EXPLODE_VARIANT_ARRAY(<variant>) +EXPLODE_VARIANT_ARRAY(<variant>[, <variant>]) Review Comment: ```suggestion EXPLODE_VARIANT_ARRAY(<variant>[, ...]) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
