Skip to content

Commit

Permalink
fix erroneous check for LOGICAL type VARCHAR, causing this to panic w…
Browse files Browse the repository at this point in the history
…hen a BLOB (or BITSTRING) is scanned after being successfully compressed
  • Loading branch information
Tishj committed Dec 16, 2024
1 parent 79f36e0 commit 1ba9f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/compression/zstd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ struct ZSTDScanState : public SegmentScanState {

void ScanInternal(ZSTDVectorScanState &scan_state, idx_t count, Vector &result, idx_t result_offset) {
D_ASSERT(scan_state.scanned_count + count <= scan_state.metadata.count);
D_ASSERT(result.GetType().id() == LogicalTypeId::VARCHAR);
D_ASSERT(result.GetType().InternalType() == PhysicalType::VARCHAR);

string_length_t *string_lengths = &scan_state.string_lengths[scan_state.scanned_count];
idx_t uncompressed_length = 0;
Expand Down

0 comments on commit 1ba9f9d

Please sign in to comment.