should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
add_library_unity(test_sql_tpce OBJECT test_tpce.cpp)
set(ALL_OBJECT_FILES
${ALL_OBJECT_FILES} $<TARGET_OBJECTS:test_sql_tpce>
PARENT_SCOPE)

32
external/duckdb/test/tpce/test_tpce.cpp vendored Normal file
View File

@@ -0,0 +1,32 @@
#include "catch.hpp"
#include "test_helpers.hpp"
#include "tpce.hpp"
#include <chrono>
#include <iostream>
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();
}
}