#include "catch.hpp" #include "test_helpers.hpp" #include "tpce.hpp" #include #include using namespace duckdb; using namespace std; TEST_CASE("Test TPC-E", "[tpce][.]") { DuckDB db(nullptr); Connection con(db); // a higher scale factor for TPC-E means LESS data (for some reason) // generate the TPC-E data for SF 100000 uint32_t sf = 100000; tpce::dbgen(db, sf); auto result = con.Query("SELECT * FROM sqlite_master"); for (size_t i = 0; i < result->RowCount(); i++) { auto table_name = result->GetValue(1, i); REQUIRE_NO_FAIL(con.Query("SELECT COUNT(*) FROM " + StringValue::Get(table_name))); // result2->Print(); // result2 = con.Query("SELECT * FROM " + table_name.str_value + " LIMIT // 3"); result2->Print(); } }