mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fixing style.
This commit is contained in:
parent
9b1e5c81d5
commit
05874d0b85
@ -28,7 +28,6 @@ namespace ErrorCodes
|
||||
extern const int PARAMETER_OUT_OF_BOUND;
|
||||
extern const int SIZES_OF_COLUMNS_DOESNT_MATCH;
|
||||
extern const int NOT_IMPLEMENTED;
|
||||
extern const int LOGICAL_ERROR;
|
||||
}
|
||||
|
||||
template <is_decimal T>
|
||||
|
@ -65,7 +65,7 @@ WeakHash32 ColumnNullable::getWeakHash32() const
|
||||
const auto & null_map_data = getNullMapData();
|
||||
auto & hash_data = hash.getData();
|
||||
|
||||
/// Use defualt for nulls.
|
||||
/// Use default for nulls.
|
||||
for (size_t row = 0; row < s; ++row)
|
||||
if (null_map_data[row])
|
||||
hash_data[row] = WeakHash32::kDefaultInitialValue;
|
||||
|
@ -809,24 +809,6 @@ size_t ColumnSparse::getValueIndex(size_t n) const
|
||||
return it - offsets_data.begin() + 1;
|
||||
}
|
||||
|
||||
size_t ColumnSparse::getFirstDefaultValueIndex() const
|
||||
{
|
||||
if (getNumberOfDefaultRows() == 0)
|
||||
return size();
|
||||
|
||||
const auto & offsets_data = getOffsetsData();
|
||||
size_t off_size = offsets_data.size();
|
||||
|
||||
if (off_size == 0 || offsets_data[0] > 0)
|
||||
return 0;
|
||||
|
||||
size_t idx = 0;
|
||||
while (idx + 1 < off_size && offsets_data[idx] + 1 == offsets_data[idx + 1])
|
||||
++idx;
|
||||
|
||||
return offsets_data[idx] + 1;
|
||||
}
|
||||
|
||||
ColumnSparse::Iterator ColumnSparse::getIterator(size_t n) const
|
||||
{
|
||||
const auto & offsets_data = getOffsetsData();
|
||||
|
@ -173,9 +173,6 @@ public:
|
||||
/// O(log(offsets.size())) complexity,
|
||||
size_t getValueIndex(size_t n) const;
|
||||
|
||||
/// Returns an index of the first default value, or size() if there is no defaults.
|
||||
size_t getFirstDefaultValueIndex() const;
|
||||
|
||||
const IColumn & getValuesColumn() const { return *values; }
|
||||
IColumn & getValuesColumn() { return *values; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user