Skip to content

Commit

Permalink
Add an assert that there are less than 2^16 unique strings in a column
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHodson committed Jul 31, 2024
1 parent baf3b3b commit 7cbe8d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/odc/codec/CodecOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ int CodecOptimizer::setOptimalCodecs(core::MetaData& columns)
case api::STRING:
{
n = col.coder().numStrings();
ASSERT(n < 65536);
if (n == 1 && col.coder().dataSizeDoubles() == 1)
codec = "constant_string";
else if(n < 256)
Expand Down

0 comments on commit 7cbe8d4

Please sign in to comment.