You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ydb/public/lib/ydb_cli/commands/ydb_service_topic.cpp
+51-27Lines changed: 51 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,13 @@
12
12
13
13
#include<util/generic/set.h>
14
14
#include<util/stream/str.h>
15
+
#include<util/string/cast.h>
15
16
#include<util/string/hex.h>
16
17
#include<util/string/vector.h>
17
18
#include<util/string/join.h>
18
19
20
+
#defineTIMESTAMP_FORMAT_OPTION_DESCRIPTION"Timestamp may be specified in unix time format (seconds from 1970.01.01) or in ISO-8601 format (like 2020-07-10T15:00:00Z)"
config.Opts->AddLongOption("timestamp", "Timestamp from which messages will be read. If not specified, messages are read from the last commit point for the chosen consumer.")
806
+
config.Opts->AddLongOption("timestamp", "'Written_at' timestamp from which messages will be read. If not specified, messages are read from the last commit point for the chosen consumer. " TIMESTAMP_FORMAT_OPTION_DESCRIPTION)
config.Opts->AddLongOption("partition-ids", "Comma separated list of partition ids to read from. If not specified, messages are read from all partitions.")
787
811
.Optional()
788
812
.SplitHandler(&PartitionIds_, ',');
@@ -841,7 +865,7 @@ namespace {
841
865
settings.ConsumerName(Consumer_);
842
866
// settings.ReadAll(); // TODO(shmel1k@): change to read only original?
std::function<void(const TString& opt)> TimestampOptionHandler(TMaybe<TInstant>* destination); // parses timestamp in the following formats: unix time, ISO-8601
0 commit comments