Skip to content

Commit

Permalink
Merge pull request #375 from moaazassali/master
Browse files Browse the repository at this point in the history
Add RawAt() for ColumnDateTime
  • Loading branch information
Enmk authored Sep 5, 2024
2 parents 9d23bf5 + a6aeb7a commit 4fed92c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clickhouse/columns/date.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ void ColumnDateTime::AppendRaw(uint32_t value) {
data_->Append(value);
}

uint32_t ColumnDateTime::RawAt(size_t n) const {
return data_->At(n);
}

std::string ColumnDateTime::Timezone() const {
return type_->As<DateTimeType>()->Timezone();
}
Expand Down
1 change: 1 addition & 0 deletions clickhouse/columns/date.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class ColumnDateTime : public Column {

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

/// Timezone associated with a data column.
std::string Timezone() const;
Expand Down

0 comments on commit 4fed92c

Please sign in to comment.