Skip to content

Commit fc9a490

Browse files
dgrrartpaul
authored andcommitted
Added Nulls getter to manipulate internal nulls on ColumnNullable (#107)
1 parent 640bba8 commit fc9a490

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

clickhouse/columns/nullable.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ ColumnRef ColumnNullable::Nested() const {
2323
return nested_;
2424
}
2525

26+
ColumnRef ColumnNullable::Nulls() const {
27+
return nulls_;
28+
}
29+
2630
void ColumnNullable::Append(ColumnRef column) {
2731
if (auto col = column->As<ColumnNullable>()) {
2832
if (!col->nested_->Type()->IsEqual(nested_->Type())) {

clickhouse/columns/nullable.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class ColumnNullable : public Column {
1818
/// Returns nested column.
1919
ColumnRef Nested() const;
2020

21+
/// Returns nulls column.
22+
ColumnRef Nulls() const;
23+
2124
public:
2225
/// Appends content of given column to the end of current one.
2326
void Append(ColumnRef column) override;

0 commit comments

Comments
 (0)