Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does aws s3 select work with multiple files?

I'm using S3 select to query a object from a file in S3 bucket but wondering if I can do it with multiple files or if its limited to just one. I wrote one query from a file using aws lambda but when I tried writing another one for a different file it gave me a error message.

like image 972
runner05 Avatar asked Jul 12 '18 18:07

runner05


People also ask

Can S3 SELECT query multiple files?

Athena can query multiple objects at once, while with S3 select, we can only query a single object (ex. a single flat file)

Is there a limit to the number of files in S3 bucket?

S3 provides unlimited scalability, and there is no official limit on the amount of data and number of objects you can store in an S3 bucket. The size limit for objects stored in a bucket is 5 TB.

How does AWS S3 SELECT work?

With S3 Select, you simply store your data on S3 and query using SQL statements to filter the contents of S3 objects, retrieving only the data that you need. By retrieving only a subset of the data, customers reduce the amount of data that Amazon S3 transfers, which reduces the cost and latency of retrieving this data.

Can we upload multiple files to S3?

Upload multiple files to AWS CloudShell using Amazon S3. Next, you need to upload the files in a directory from your local machine to the bucket. You have two options for uploading files: AWS Management Console: Use drag-and-drop to upload files and folders to a bucket.


1 Answers

Amazon S3 Select operates on only one object.

To query multiple files at once on S3 with a SQL syntax you should use Amazon Athena.

like image 108
xavierraffin Avatar answered Sep 19 '22 14:09

xavierraffin