Consider the following rules and guidelines when you work with complex data types:
A nested data type can contain up to 10 levels of nesting.
A nested map can contain up to three levels of nesting of map data types.
An array data type cannot directly contain an element of type array. Use multidimensional arrays to create a nested array. For example, an array with two dimensions is an array of arrays.
A multidimensional array can contain up to five levels of nesting. The array dimension determines the levels of nesting.
Each array in a multidimensional array must have elements of the same data type.