Fixing style.

This commit is contained in:
Nikolai Kochetov 2024-07-17 15:37:55 +00:00
parent 9b1e5c81d5
commit 05874d0b85
4 changed files with 1 additions and 23 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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();

View File

@ -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; }