I have a Dataframe with one column. Each row of that column has an Array of String values:
Values in my Spark 2.2 Dataframe
[\"123\", \"abc\", \"2017\
df.where($"col".getItem(2) === lit("2017")).select($"col".getItem(3))
see getItem from https://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.Column
getItem