Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit ae22e1a

Browse files
committed
Fix taxi_bench when USE_HOT_DATA is enabled
1 parent 0e89ec1 commit ae22e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

omniscidb/Benchmarks/taxi/taxi_full_bench.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ using namespace TestHelpers::ArrowSQLRunner;
2222

2323
// when we want to measure storage latencies, read the csv files before starting the
2424
// benchmark
25-
#ifndef USE_HOT_DATA
2625
std::vector<std::shared_ptr<arrow::Table>> g_taxi_data_files;
27-
#endif
2826

2927
std::istream& operator>>(std::istream& in, ExecutorDeviceType& device_type) {
3028
std::string token;
@@ -162,6 +160,7 @@ static void createTaxiTable() {
162160
}
163161
}
164162

163+
#ifndef USE_HOT_DATA
165164
static std::vector<std::shared_ptr<arrow::Table>> readTaxiFilesCsv(
166165
const ColumnInfoList& col_infos) {
167166
std::vector<std::shared_ptr<arrow::Table>> taxi_arrow_data;
@@ -198,6 +197,7 @@ static std::vector<std::shared_ptr<arrow::Table>> readTaxiFilesCsv(
198197
std::cout << "Read taxi csv files in " << time << " ms" << std::endl;
199198
return taxi_arrow_data;
200199
}
200+
#endif
201201

202202
static void loadTaxiArrowData() {
203203
for (auto& data_file : g_taxi_data_files) {

0 commit comments

Comments
 (0)