Skip to content

Commit 8c19e91

Browse files
committed
Add an assert that there are less than 2^16 unique strings in a column
1 parent 808c9a9 commit 8c19e91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/odc/codec/CodecOptimizer.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ int CodecOptimizer::setOptimalCodecs(core::MetaData& columns)
9494
case api::STRING:
9595
{
9696
n = col.coder().numStrings();
97+
ASSERT(n < 65536);
9798
if (n == 1 && col.coder().dataSizeDoubles() == 1)
9899
codec = "constant_string";
99100
else if(n < 256)

0 commit comments

Comments
 (0)