I have a column features in a table with the follwing structure
|-- features: struct (nullable = true)
| |-- tectonFeatures: array (nullable = true)
| | |-- element: struct (containsNull = true)
| | | |-- featureName: string (nullable = true)
| | | |-- results: array (nullable = true)
| | | | |-- element: string (containsNull = true)
How do I write a SQL query that gets me any row where featureName = 'a' and results is not empty ?