cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to split files based on size(less than 20mb per file) when writing into S3

userg
New Contributor

Hello,

I need to write files into S3 by keeping file Size(<20mb) ,rather than giving number of records batch limit using pipeline execute. My input is dynamic sometimes 1k records write file >20mb , sometimes 10k records is <20mb. We also have batches> 100k records as inputs. So how can we write files based on Size.

thanks in advance.

1 REPLY 1

alchemiz
Contributor III

Hi @userg ,

Here's a sample pipeline that splits the source file into multiple 1kb file

Hope this helps.


alchemiz_0-1719306158402.png