You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by 叶贤勋 <yx...@163.com> on 2020/07/13 13:17:40 UTC

回复: 使用Flink Array Field Type

谢谢 Leonard的解答。刚刚也看到了这个jira单[1]


[1] https://issues.apache.org/jira/browse/FLINK-17847
| |
叶贤勋
|
|
yxx_cmhd@163.com
|
签名由网易邮箱大师定制


在2020年07月13日 20:50,Leonard Xu<xb...@gmail.com> 写道:
Hi,

SQL 中数据下标是从1开始的,不是从0,所以会有数组越界问题。建议使用数组时通过 select arr[5] from T where CARDINALITY(arr) >= 5 这种方式防止数组访问越界。


祝好,
Leonard Xu

在 2020年7月13日,20:34,叶贤勋 <yx...@163.com> 写道:

test_array_string[0]