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

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