flink sql官方文档中数组的取值方式如下定义
array ‘[’ integer ‘]’  Returns the element at position integer in array. The
index starts from 1.
参考链接
https://ci.apache.org/projects/flink/flink-docs-release-1.12/dev/table/functions/systemFunctions.html#collection-functions

主要问题就是数组的下标是从1开始的,这不符合数组从0开始的常识,也和hive sql不兼容,在实时和离线开发中经常会导致很多数据问题排查起来很困难。
因此,在考虑兼容历史flink sql版本的情况下能否通过增加配置来设置数组开始的下标,来兼容数组下标从0开始的使用习惯

谢谢。



--
Sent from: http://apache-flink.147419.n8.nabble.com/

回复