Skip to content

Commit a78e0d6

Browse files
authored
Query replay with coredumps (#7862)
1 parent 8dc96f7 commit a78e0d6

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

ydb/tools/query_replay_yt/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,9 @@ int main(int argc, const char** argv) {
277277
}
278278

279279
spec.MapperSpec(userJobSpec);
280+
if (!config.CoreTablePath.empty()) {
281+
spec.CoreTablePath(config.CoreTablePath);
282+
}
280283

281284
client->Map(spec, new TQueryReplayMapper(config.UdfFiles, config.ActorSystemThreadsCount, config.YqlLogLevel));
282285

ydb/tools/query_replay_yt/query_replay.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ void TQueryReplayConfig::ParseConfig(int argc, const char** argv) {
1717
opts.AddLongOption("cluster", "YT cluster").StoreResult(&Cluster);
1818
opts.AddLongOption("src-path", "Source table path").StoreResult(&SrcPath);
1919
opts.AddLongOption("dst-path", "Target table path").StoreResult(&DstPath);
20+
opts.AddLongOption("core-table-path", "Core table path").StoreResult(&CoreTablePath);
2021
opts.AddLongOption("threads", "Number of ActorSystem threads").StoreResult(&ActorSystemThreadsCount);
2122
opts.AddLongOption("udf-file", "UDFS to load").AppendTo(&UdfFiles);
2223
opts.AddLongOption("query", "Single query to replay").StoreResult(&QueryFile);

ydb/tools/query_replay_yt/query_replay.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ struct TQueryReplayConfig {
1717
TString Cluster;
1818
TString SrcPath;
1919
TString DstPath;
20+
TString CoreTablePath;
2021
ui32 ActorSystemThreadsCount = 5;
2122
TVector<TString> UdfFiles;
2223
TString QueryFile;

0 commit comments

Comments
 (0)