File tree 1 file changed +6
-2
lines changed 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -409,7 +409,9 @@ impl PyDataFrame {
409
409
410
410
#[ pyo3( signature = ( column, preserve_nulls=true ) ) ]
411
411
fn unnest_column ( & self , column : & str , preserve_nulls : bool ) -> PyResult < Self > {
412
- let unnest_options = UnnestOptions { preserve_nulls } ;
412
+ // TODO: expose RecursionUnnestOptions
413
+ // REF: https://github.com/apache/datafusion/pull/11577
414
+ let unnest_options = UnnestOptions :: default ( ) . with_preserve_nulls ( preserve_nulls) ;
413
415
let df = self
414
416
. df
415
417
. as_ref ( )
@@ -420,7 +422,9 @@ impl PyDataFrame {
420
422
421
423
#[ pyo3( signature = ( columns, preserve_nulls=true ) ) ]
422
424
fn unnest_columns ( & self , columns : Vec < String > , preserve_nulls : bool ) -> PyResult < Self > {
423
- let unnest_options = UnnestOptions { preserve_nulls } ;
425
+ // TODO: expose RecursionUnnestOptions
426
+ // REF: https://github.com/apache/datafusion/pull/11577
427
+ let unnest_options = UnnestOptions :: default ( ) . with_preserve_nulls ( preserve_nulls) ;
424
428
let cols = columns. iter ( ) . map ( |s| s. as_ref ( ) ) . collect :: < Vec < & str > > ( ) ;
425
429
let df = self
426
430
. df
You can’t perform that action at this time.
0 commit comments