This is an automated email from the ASF dual-hosted git repository.

colinlee pushed a commit to branch bench_mark
in repository https://gitbox.apache.org/repos/asf/tsfile.git

commit a152136221728405c57a5b0a545b457ca62eaf58
Author: ColinLee <[email protected]>
AuthorDate: Wed Apr 9 15:21:26 2025 +0800

    tmp code.
---
 cpp/bench_mark/src/bench_mark_cpp.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/cpp/bench_mark/src/bench_mark_cpp.cc 
b/cpp/bench_mark/src/bench_mark_cpp.cc
index f02620e3..819d40ac 100644
--- a/cpp/bench_mark/src/bench_mark_cpp.cc
+++ b/cpp/bench_mark/src/bench_mark_cpp.cc
@@ -57,10 +57,10 @@ void printProgressBar(int current, int total, int barWidth 
= 50) {
     std::cout.flush();
 }
 
-TableSchema* gen_table_schema(int tag_num,
-                              const std::vector<int>& field_type_vector) {
+TableSchema* gen_table_schema(const std::vector<int>& field_type_vector) {
     std::vector<common::ColumnSchema> schemas;
-    for (int i = 0; i < tag_num; i++) {
+    // 2 TAG Columns default
+    for (int i = 0; i < 2; i++) {
         std::string column_name = std::string("TAG" + std::to_string(i));
         schemas.emplace_back(column_name, common::TSDataType::STRING,
                              common::ColumnCategory::TAG);
@@ -98,7 +98,7 @@ int main() {
     }
 
     TableSchema* table_schema =
-        gen_table_schema(bench::tag_num, bench::field_type_vector);
+        gen_table_schema(bench::field_type_vector);
     auto writer = new TsFileTableWriter(&file, table_schema);
     delete (table_schema);
     int64_t timestamp = 0;

Reply via email to