Skip to content

Commit

Permalink
fix tidy issues and warnings-as-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishj committed Dec 13, 2024
1 parent 427ccc8 commit 78a8abc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct DictionaryCompression {
class DictionaryCompressionState : public CompressionState {
public:
explicit DictionaryCompressionState(const CompressionInfo &info);
virtual ~DictionaryCompressionState();
~DictionaryCompressionState() override;

public:
bool UpdateState(Vector &scan_vector, idx_t count);
Expand Down
2 changes: 0 additions & 2 deletions src/storage/compression/dictionary/decompression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ void CompressedStringScanState::ScanToFlatVector(Vector &result, idx_t result_of

void CompressedStringScanState::ScanToDictionaryVector(ColumnSegment &segment, Vector &result, idx_t result_offset,
idx_t start, idx_t scan_count) {
auto result_data = FlatVector::GetData<string_t>(result);

D_ASSERT(start % BitpackingPrimitives::BITPACKING_ALGORITHM_GROUP_SIZE == 0);
D_ASSERT(scan_count == STANDARD_VECTOR_SIZE);
D_ASSERT(result_offset == 0);
Expand Down
2 changes: 1 addition & 1 deletion src/storage/compression/dictionary_compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void DictionaryCompressionStorage::StringFetchRow(ColumnSegment &segment, Column
// fetch a single row from the string segment
CompressedStringScanState scan_state(state.GetOrInsertHandle(segment));
scan_state.Initialize(segment, false);
scan_state.ScanToFlatVector(result, result_idx, row_id, 1);
scan_state.ScanToFlatVector(result, result_idx, static_cast<idx_t>(row_id), 1);
}

//===--------------------------------------------------------------------===//
Expand Down

0 comments on commit 78a8abc

Please sign in to comment.