Skip to content

Commit a6aeb7a

Browse files
committed
Added RawAt() for ColumnDateTime
1 parent 9d23bf5 commit a6aeb7a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

clickhouse/columns/date.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ void ColumnDateTime::AppendRaw(uint32_t value) {
210210
data_->Append(value);
211211
}
212212

213+
uint32_t ColumnDateTime::RawAt(size_t n) const {
214+
return data_->At(n);
215+
}
216+
213217
std::string ColumnDateTime::Timezone() const {
214218
return type_->As<DateTimeType>()->Timezone();
215219
}

clickhouse/columns/date.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class ColumnDateTime : public Column {
142142

143143
/// Append raw as UNIX epoch seconds in uint32
144144
void AppendRaw(uint32_t value);
145+
uint32_t RawAt(size_t n) const;
145146

146147
/// Timezone associated with a data column.
147148
std::string Timezone() const;

0 commit comments

Comments
 (0)