• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Wildcard search for array in Athena

Resolved: Wildcard search for array in Athena

0
By Isaac Tonny on 16/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

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?
Example array column:
Expected output after wildcard search:
enter image description here

Answer:

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

If you have better answer, please add a comment about this, thank you!

amazon-athena aws-glue hive presto sql
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How do I stop the command from happening if the requirements for it to work aren’t sert Discord.js

02/04/2023

Resolved: How to scroll bottom of div at launch?

02/04/2023

Resolved: how to get and read an xml file in a zip file using xml.etree

02/04/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.