I am trying to query data from json data in s3-select.
{
person = [
{
"Id": 1,
"Name": "Anshu",
"Address": "Templestowe",
"Car": "Jeep"
}
{
"Id": 2,
"Name": "Ben Mostafa",
"Address": "Las Vegas",
"Car": "Mustang"
}
{
"Id": 3,
"Name": "Rohan Wood",
"Address": "Wooddon",
"Car": "VW"
}
]
}
QUERY = "select * from S3Object s"
QUERY = "select s.person from S3Object s"
QUERY = "select s.person[0] from S3Object s"
QUERY = "select s.person[0].Name from S3Object s"
All these queries work fine and returns the respective object as desired but when i am trying to search data on name/Car, it doesn't work.
QUERY = "select * from S3Object s where s.person.Name = \"Anshu\" "
error: com.amazonaws.services.s3.model.AmazonS3Exception: The column index at line 1, column 32 is invalid.
There is not much related content available on s3-select online. Wondering whether we can query on field name or not! There are no examples of select query with where clause for s3-select given in the documentation