Skip to content

Commit

Permalink
Add a feature flag that disables writing the new codec by default
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHodson committed Aug 1, 2024
1 parent 7978720 commit da0d3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/odc/codec/CodecOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ int CodecOptimizer::setOptimalCodecs(core::MetaData& columns)
n = col.coder().numStrings();
if (n == 1 && col.coder().dataSizeDoubles() == 1)
codec = "constant_string";
else if (n == 1)
else if (n == 1 && std::getenv("ODC_ENABLE_WRITING_LONG_STRING_CODEC") != NULL)
codec = "long_constant_string";
else if(n < 256)
codec = "int8_string";
Expand Down

0 comments on commit da0d3fc

Please sign in to comment.