cancel
Showing results for 
Search instead for 
Did you mean: 

File Size Differences

sshaikh
New Contributor

image

Hi,
Why File Reader and File Writer size variation in the Pipeline?
I have make a simple pipeline to check my reader output file size and writer output file size and I have observed that reader and writer output size us not matching.
Could anyone please explain to me that.

12 REPLIES 12

darshthakkar
Valued Contributor

@sshaikh: Is it a huge difference? Are you putting any transformations in your mapper snap?

Size of input file is 945 bytes in file reader and output in writer is 574 bytes. Yes did transformation in mapper snap but connected all input schema to output in transformation without any changes in the files.

That is expected right? as XML format uses nodes e.g.

<root><val>the quick brown fox jumps over the lazy dog</val></root>

while JSON format uses key/value pair e.g {“root”: {“val”: “the quick brown fox jumps over the lazy dog”} }

Or am I missing something?

Thanks,
EmEm

@alchemiz can you please tell me why there is difference in file size by using below pipeline where I am reading and writing Json File.
File Reader(Json File)>>Json Parser>>Json Formatter>>File Writter