private static int ParseTSV(string query) { StreamReader sr = new StreamReader(ClickhouseQueryExecutor.ExecuteFileQueryStream(query)); List <string[]> parsedValues = new List <string[]>(); string readLine; while ((readLine = sr.ReadLine()) != null) { string[] parsedValue = readLine.Split('\t'); parsedValues.Add(parsedValue); } return(parsedValues.Count); }
private static int ParseRowBinary(string query) { return(ClickhouseQueryExecutor.ReadAsStringArray(query).Count); }