MCPcopy Create free account
hub / github.com/ByConity/ByConity / deserializeTextCSV

Method deserializeTextCSV

src/DataTypes/Serializations/SerializationTime.cpp:128–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128void SerializationTime::deserializeTextCSV(IColumn & column, ReadBuffer & istr, const FormatSettings & settings) const
129{
130 Decimal64 x = 0;
131
132 if (istr.eof())
133 throwReadAfterEOF();
134
135 char maybe_quote = *istr.position();
136
137 if (isQuoted(maybe_quote))
138 ++istr.position();
139
140 readText(x, scale, istr, settings);
141 checkNumberOverflow(settings);
142
143 if (isQuoted(maybe_quote))
144 assertChar(maybe_quote, istr);
145
146 assert_cast<ColumnType &>(column).getData().push_back(x);
147}
148
149}

Callers

nothing calls this directly

Calls 8

throwReadAfterEOFFunction · 0.85
isQuotedFunction · 0.85
assertCharFunction · 0.85
readTextFunction · 0.70
eofMethod · 0.45
positionMethod · 0.45
push_backMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected