I have created an Amazon S3 bucket and uploaded a flat file (the famous Iris flower data set data as csv).
I would now like to create an Iris dataset flat table in Amazon Athena and query it. I just cannot find the 'Location of Input Data Set'.
How do I determine the location of my flat Iris file in the S3 bucket? Is there possibly a tutorial for the above situation (google did not help much yet)?
As per the Amazon Athena
CREATE TABLE
documentation, the syntax to create a table is:The
s3_loc
is:Therefore, if you have stored your flat file in a bucket called
my-bucket
within a directory callediris
, you would use:Note that you point to the directory, not the file. This is because many data sets are stored as multiple files (and even multiple sub-directories).