MCPcopy Create free account
hub / github.com/apache/impala / TimestampFormatTC

Class TimestampFormatTC

be/src/runtime/timestamp-test.cc:110–122  ·  view source on GitHub ↗

Used to test custom date/time output test cases i.e. timestamp value -> string.

Source from the content-addressed store, hash-verified

108
109// Used to test custom date/time output test cases i.e. timestamp value -> string.
110struct TimestampFormatTC {
111 const long ts;
112 const char* fmt;
113 const char* str;
114 bool should_fail;
115
116 TimestampFormatTC(long ts, const char* fmt, const char* str, bool should_fail = false)
117 : ts(ts),
118 fmt(fmt),
119 str(str),
120 should_fail(should_fail) {
121 }
122};
123
124// Used to represent a parsed timestamp token. For example, it may represent a year.
125struct TimestampToken {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68