I use Athena for querying data stored in JSON objects in S3.
Some JSON properties contain dots in their names, they represent Android application names.
The property looks this way:
{
"MessageTime": "2019-09-24T16:07:16+00:00",
"Memory": {
"com.google.android.gms.maps": {
"Min": 0,
"Max": 0,
"Avg": 0
}
}
}
The AWS Athena table with such column is successfully created and can be queried. Is there a way to refer to Memory.com.google.android.gms.maps.Min property in SQL query?
Probably I can rename this column somehow when I create the table, etc?
I can query on other embedded properties (without dots in the names) easily.
"
-quote the name. E.g.SELECT "Memory.com.google.android.gms.maps.Min" FROM ...
.SHOW COLUMNS
(docs.aws.amazon.com/athena/latest/ug/show-columns.html), how is this column listed?Memory
"Memory"."com.companyname.appname1"."Min"
(or"Memory"."com.google.android.gms.maps"."Min"
).