MCPcopy Create free account
hub / github.com/apache/arrow / WriteCsvNumericCheckQuote

Function WriteCsvNumericCheckQuote

cpp/src/arrow/csv/writer_benchmark.cc:142–147  ·  view source on GitHub ↗

Exercise QuotedColumnPopulator with integer - check quote even for numeric type (is it useful?)

Source from the content-addressed store, hash-verified

140// Exercise QuotedColumnPopulator with integer
141// - check quote even for numeric type (is it useful?)
142void WriteCsvNumericCheckQuote(benchmark::State& state) {
143 auto batch = MakeIntTestBatch(kCsvRows, kCsvCols, state.range(0));
144 auto options = WriteOptions::Defaults();
145 options.quoting_style = QuotingStyle::AllValid;
146 BenchmarkWriteCsv(state, options, *batch);
147}
148
149void NullPercents(benchmark::internal::Benchmark* bench) {
150 std::vector<int> null_percents = {0, 1, 10, 50};

Callers

nothing calls this directly

Calls 3

MakeIntTestBatchFunction · 0.85
BenchmarkWriteCsvFunction · 0.85
DefaultsFunction · 0.50

Tested by

no test coverage detected