Yan-Daojiang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24289


Change subject: [tools] perf loadgen: support configurable column counts for 
auto-created table
......................................................................

[tools] perf loadgen: support configurable column counts for auto-created table

`kudu perf loadgen` always creates a fixed 3-column table
(`key INT64 PK`, `int_val INT32`, `string_val STRING`) when --table_name
is not provided. Benchmarking wide-row workloads currently requires
pre-creating a table out-of-band and pointing loadgen at it via
--table_name, which is inconvenient for parameter sweeps over column
count.

This patch adds two flags:

  --table_num_int_columns    (default 1)
  --table_num_string_columns (default 1)

When both default to 1 the auto-created schema is byte-for-byte
identical to before (column names `int_val`, `string_val` are
preserved). Setting either to N >= 2 produces N suffix-numbered
columns of that type; 0 omits that column type entirely.

This patch is intentionally limited to INT32 / STRING column counts.
DECIMAL precision, VARCHAR length, and encoding are out of scope;
users needing those should pre-create a table and pass --table_name.
They are noted as possible follow-ups.

Change-Id: I5a1581a7d6056fcb1d7435f29d4670bff68fb147
---
M src/kudu/tools/kudu-tool-test.cc
M src/kudu/tools/tool_action_perf.cc
2 files changed, 215 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/89/24289/1
--
To view, visit http://gerrit.cloudera.org:8080/24289
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5a1581a7d6056fcb1d7435f29d4670bff68fb147
Gerrit-Change-Number: 24289
Gerrit-PatchSet: 1
Gerrit-Owner: Yan-Daojiang <[email protected]>

Reply via email to