MAPREDUCE服务 MRS-Flink SQL逻辑开发建议:UDF嵌套不可过长

时间:2024-09-06 10:03:29

UDF嵌套不可过长

多个UDF嵌套时表达式长度很长,Flink优化生成的代码超过64KB导致编译错误。建议UDF嵌套不超过6个。

【示例】UDF嵌套:

SELECT 
    SUM(get_order_total(order_id))
FROM orders WHERE customer_id = (
    SELECT customer_id FROM customers WHERE customer_name = get_customer_name('John Doe')
)
support.huaweicloud.com/devg-rule-mrs/mrs_07_450170.html