配置单元中的查询数组< string>

0kjbasz6  于 2021-06-24  发布在  Hive
关注(0)|答案(1)|浏览(308)

我正在尝试从配置单元中的阵列中进行选择,但执行此操作时遇到问题。
我想说的是:

  1. select * from table where ID = 'tennis'

id字段的类型为数组
id字段中的数组数据示例如下 id = ('tennis', 'soccer', 'football')

nwsw7zdq

nwsw7zdq1#

这个 array_contains 功能可能是您所需要的:

  1. select * from table where array_contains(ID,'tennis')

相关问题