11use super :: {
22 pandas_columns:: {
3- ArrayBlock , BooleanBlock , BytesBlock , DateTimeBlock , Float64Block , HasPandasColumn ,
4- Int64Block , PandasColumn , PandasColumnObject , PyBytes , StringBlock ,
3+ ArrayBlock , BooleanBlock , BytesBlock , DateTimeBlock , ExtractBlockFromBound , Float64Block ,
4+ HasPandasColumn , Int64Block , PandasColumn , PandasColumnObject , PyBytes , StringBlock ,
55 } ,
66 pystring:: PyString ,
77 typesystem:: { PandasArrayType , PandasBlockType , PandasTypeSystem } ,
@@ -215,7 +215,7 @@ impl<'py> Destination for PandasDestination<'py> {
215215 let buf = & self . block_datas [ idx] ;
216216 match block. dt {
217217 PandasBlockType :: Boolean ( _) => {
218- let bblock = buf . extract :: < BooleanBlock > ( ) ?;
218+ let bblock = BooleanBlock :: extract_block ( buf ) ?;
219219
220220 let bcols = bblock. split ( ) ?;
221221 for ( & cid, bcol) in block. cids . iter ( ) . zip_eq ( bcols) {
@@ -227,7 +227,7 @@ impl<'py> Destination for PandasDestination<'py> {
227227 }
228228 }
229229 PandasBlockType :: Float64 => {
230- let fblock = buf . extract :: < Float64Block > ( ) ?;
230+ let fblock = Float64Block :: extract_block ( buf ) ?;
231231 let fcols = fblock. split ( ) ?;
232232 for ( & cid, fcol) in block. cids . iter ( ) . zip_eq ( fcols) {
233233 partitioned_columns[ cid] = fcol
@@ -238,7 +238,7 @@ impl<'py> Destination for PandasDestination<'py> {
238238 }
239239 }
240240 PandasBlockType :: BooleanArray => {
241- let bblock = buf . extract :: < ArrayBlock < bool > > ( ) ?;
241+ let bblock = ArrayBlock :: < bool > :: extract_block ( buf ) ?;
242242 let bcols = bblock. split ( ) ?;
243243 for ( & cid, bcol) in block. cids . iter ( ) . zip_eq ( bcols) {
244244 partitioned_columns[ cid] = bcol
@@ -249,7 +249,7 @@ impl<'py> Destination for PandasDestination<'py> {
249249 }
250250 }
251251 PandasBlockType :: Float64Array => {
252- let fblock = buf . extract :: < ArrayBlock < f64 > > ( ) ?;
252+ let fblock = ArrayBlock :: < f64 > :: extract_block ( buf ) ?;
253253 let fcols = fblock. split ( ) ?;
254254 for ( & cid, fcol) in block. cids . iter ( ) . zip_eq ( fcols) {
255255 partitioned_columns[ cid] = fcol
@@ -260,7 +260,7 @@ impl<'py> Destination for PandasDestination<'py> {
260260 }
261261 }
262262 PandasBlockType :: Int64Array => {
263- let fblock = buf . extract :: < ArrayBlock < i64 > > ( ) ?;
263+ let fblock = ArrayBlock :: < i64 > :: extract_block ( buf ) ?;
264264 let fcols = fblock. split ( ) ?;
265265 for ( & cid, fcol) in block. cids . iter ( ) . zip_eq ( fcols) {
266266 partitioned_columns[ cid] = fcol
@@ -271,7 +271,7 @@ impl<'py> Destination for PandasDestination<'py> {
271271 }
272272 }
273273 PandasBlockType :: Int64 ( _) => {
274- let ublock = buf . extract :: < Int64Block > ( ) ?;
274+ let ublock = Int64Block :: extract_block ( buf ) ?;
275275 let ucols = ublock. split ( ) ?;
276276 for ( & cid, ucol) in block. cids . iter ( ) . zip_eq ( ucols) {
277277 partitioned_columns[ cid] = ucol
@@ -282,7 +282,7 @@ impl<'py> Destination for PandasDestination<'py> {
282282 }
283283 }
284284 PandasBlockType :: String => {
285- let sblock = buf . extract :: < StringBlock > ( ) ?;
285+ let sblock = StringBlock :: extract_block ( buf ) ?;
286286 let scols = sblock. split ( ) ?;
287287 for ( & cid, scol) in block. cids . iter ( ) . zip_eq ( scols) {
288288 partitioned_columns[ cid] = scol
@@ -293,7 +293,7 @@ impl<'py> Destination for PandasDestination<'py> {
293293 }
294294 }
295295 PandasBlockType :: Bytes => {
296- let bblock = buf . extract :: < BytesBlock > ( ) ?;
296+ let bblock = BytesBlock :: extract_block ( buf ) ?;
297297 let bcols = bblock. split ( ) ?;
298298 for ( & cid, bcol) in block. cids . iter ( ) . zip_eq ( bcols) {
299299 partitioned_columns[ cid] = bcol
@@ -304,7 +304,7 @@ impl<'py> Destination for PandasDestination<'py> {
304304 }
305305 }
306306 PandasBlockType :: DateTime => {
307- let dblock = buf . extract :: < DateTimeBlock > ( ) ?;
307+ let dblock = DateTimeBlock :: extract_block ( buf ) ?;
308308 let dcols = dblock. split ( ) ?;
309309 for ( & cid, dcol) in block. cids . iter ( ) . zip_eq ( dcols) {
310310 partitioned_columns[ cid] = dcol
0 commit comments