I am confused about the S3 select pricing regarding data returned and data scanned. If I want to access something at an index in a json file, does it still scan the entire file and the data scanned counts for the entire file size? Suppose I use the following query on this example file:
select * from S3Object[*].place1[*].Houses[*]
{
"place1": [
"Houses": [
{
"date": "1777-06-30",
"price": "445000.0"
},
{
"date": "2014-10-31",
"price": "495000.0"
}
],
"Apartments": [
{
"date": "1777-06-30",
"price": "445000.0"
},
{
"date": "2014-10-31",
"price": "495000.0"
}
]
]
}
Would it charge data scanned for the entire file or would it be reduced because I am accessing the Houses array directly?