| 275 | }; |
| 276 | |
| 277 | TEST_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 | |
| 298 | TEST_F(TableScanTest, directBufferInputRawInputBytes) { |
| 299 | constexpr int kSize = 10; |
nothing calls this directly
no test coverage detected