Azure / Azure/usql

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

Open
#56 1 comment 0 reactions 1 assignee Claimed by @yangyud-cn View on GitHub
Dominant language
C#
Stars
231
Forks
666
PR merge metrics
No merged PRs in 30d

Description

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 ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.