通配符搜索数组< string>在雅典娜
我在雅典娜有一张桌子,其中一列是类型数组。 我尝试了以下查询以获取包含 Earth 的输出,但行不通。 如何在此列中执行通配符搜索?
通配符搜索后的预期输出:
select * from mytable
where contains(myarr,'eart%');
I have a table in Athena where one of the columns is of type array.
I tried the below query to get output containing earth but doesn't work.
How do I perform a wildcard search in this column?
Expected output after wildcard search:
select * from mytable
where contains(myarr,'eart%');
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是来自内存的,因此可能需要进行一些调整,但是您可以在“数组元素”
过滤器上使用过滤器,为数组中的一个或多个元素创建一系列匹配和心脏测试
This is from memory, so it might need a bit of tweaking, but you can use a filter on the array elements
filter creates an array of matches and cardinality tests for one or more elements in the array