@@ -57,7 +57,7 @@ use crate::prepare_column;
5757use crate :: throughput;
5858use crate :: verify_canonicalized;
5959
60- /// The btrblocks string schemes that `BtrBlocksCompressorBuilder::default() ` can
60+ /// The btrblocks string schemes that `BtrBlocksCompressorBuilder::from_session ` can
6161/// choose between. Forcing one encoder excludes every entry except its own
6262/// scheme, so this list must track the default scheme set: add a row whenever a
6363/// new string encoder becomes selectable by default (e.g. Zstd).
@@ -170,15 +170,18 @@ impl SerializedResult {
170170
171171/// Build the file writer strategy that forces one selected string scheme while
172172/// leaving editioned non-string child compression enabled.
173- fn serialized_write_strategy ( encoder : StringEncoder ) -> Arc < dyn LayoutStrategy > {
173+ fn serialized_write_strategy (
174+ session : & VortexSession ,
175+ encoder : StringEncoder ,
176+ ) -> Arc < dyn LayoutStrategy > {
174177 let forced = encoder. scheme_id ( ) ;
175- let compressor = BtrBlocksCompressorBuilder :: default ( ) . exclude_schemes (
178+ let compressor = BtrBlocksCompressorBuilder :: from_session ( session ) . exclude_schemes (
176179 default_string_scheme_ids ( )
177180 . into_iter ( )
178181 . filter ( |& id| id != forced)
179182 . chain ( [ DeltaScheme :: default ( ) . id ( ) ] ) ,
180183 ) ;
181- WriteStrategyBuilder :: default ( )
184+ WriteStrategyBuilder :: from_session ( session )
182185 . with_btrblocks_builder ( compressor)
183186 . build ( )
184187}
@@ -251,7 +254,7 @@ async fn prepare_serialized_file(
251254 verify : bool ,
252255 ctx : & mut ExecutionCtx ,
253256) -> Result < SerializedFile > {
254- let strategy = serialized_write_strategy ( encoder) ;
257+ let strategy = serialized_write_strategy ( session , encoder) ;
255258 let data = write_serialized_file ( session, input, & strategy) . await ?;
256259 let file_bytes = data. len ( ) as u64 ;
257260
0 commit comments