usql icon indicating copy to clipboard operation
usql copied to clipboard

USqlStreamReader.Split(delimiter) doesn't seem to work correctly

Open ShreyShah1 opened this issue 9 years ago • 1 comments

var stream = new FileStream(@"....\ExtractorsUnitTests\InputFiles\Test.json", FileMode.Open); Encoding encoding = Encoding.UTF8; var streamList = new USqlStreamReader(stream).Split(encoding.GetBytes("\r\n")).ToList();

Although, the file has multiple lines the "streamList" only gets the first line(first stream) as the output. I also checked that it's not reading the entire file at once.

Any solution for the same ?

ShreyShah1 avatar Sep 30 '16 01:09 ShreyShah1

This looks like a VS tool unit test issue...

MikeRys avatar Dec 22 '16 06:12 MikeRys