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 TABLEdocumentation, the syntax to create a table is:The
s3_locis:Therefore, if you have stored your flat file in a bucket called
my-bucketwithin 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).