MCPcopy Create free account
hub / github.com/bytedance/bolt / TEST_F

Function TEST_F

bolt/exec/tests/TableScanTest.cpp:277–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275 TINYINT()})};
276};
277
278TEST_F(TableScanTest, allColumns) {
279 auto vectors = makeVectors(10, 1'000);
280 auto filePath = TempFilePath::create();
281 writeToFile(filePath->path, vectors);
282 createDuckDbTable(vectors);
283
284 auto plan = tableScanNode();
285 auto task = assertQuery(plan, {filePath}, "SELECT * FROM tmp");
286
287 // A quick sanity check for memory usage reporting. Check that peak total
288 // memory usage for the project node is > 0.
289 auto planStats = toPlanStats(task->taskStats());
290 auto scanNodeId = plan->id();
291 auto it = planStats.find(scanNodeId);
292 ASSERT_TRUE(it != planStats.end());
293 ASSERT_TRUE(it->second.peakMemoryBytes > 0);
294 EXPECT_LT(0, exec::TableScan::ioWaitNanos());
295 // Verifies there is no dynamic filter stats.
296 ASSERT_TRUE(it->second.dynamicFilterStats.empty());
297}
298
299TEST_F(TableScanTest, directBufferInputRawInputBytes) {

Callers

nothing calls this directly

Calls 15

assertQueryFunction · 0.85
toPlanStatsFunction · 0.85
PlanBuilderClass · 0.85
ROWFunction · 0.85
getConnectorFunction · 0.85
asRowTypeFunction · 0.85
allocateIndicesFunction · 0.85
MAPFunction · 0.85
makeNullsFunction · 0.85
allocateOffsetsFunction · 0.85
isBitNullFunction · 0.85

Tested by

no test coverage detected