MaxCompute - More Data Types Supported by Python UDFs
Jul 24 2020
MaxComputeContent
Target customers: developers. Features released: Python 2 and Python 3 UDFs now support DECIMAL in both the MaxCompute V1.0 and MaxCompute V2.0 data type editions. These UDFs also support complex data types (ARRAY, MAP, and STRUCT) and the nesting of complex data types. The UDFs contain user-defined scalar functions, user-defined table-valued functions (UDTFs), and user-defined aggregate functions (UDAFs). Python UDFs now support the following data types: DECIMAL in both the MaxCompute V1.0 and MaxCompute V2.0 data type editions, BIGINT, STRING, DOUBLE, BOOLEAN, and DATETIME. These UDFs also support complex data types (ARRAY, MAP, and STRUCT) and the nesting of complex data types. If you call Python 3 UDFs, such as get_cache_table, to read reference tables, the following data types are supported: DECIMAL in both the MaxCompute V1.0 and MaxCompute V2.0 data type editions, BIGINT, STRING, DOUBLE, BOOLEAN, DATETIME, FLOAT, CHAR, VARCHAR, BINARY, DATE, ARRAY, MAP, and STRUCT.