datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Add `fill_null` on dataframe/expr level

Open ion-elgreco opened this issue 1 year ago • 2 comments

Is your feature request related to a problem or challenge?

I would like to be able to fill_nulls per col/expr and on the dataframe level, akin to polars/pyspark/pandas

Describe the solution you'd like

Add a fill_null method to DataFrame struct, add fill_null logical expr.

Describe alternatives you've considered

No response

Additional context

No response

ion-elgreco avatar Oct 13 '24 11:10 ion-elgreco

This seems like it may almost be an alias for nvl or nvl2

Omega359 avatar Oct 13 '24 13:10 Omega359

@Omega359 indeed, for now I've opened a PR for a fill_null in datafusion-python that calls nvl: https://github.com/apache/datafusion-python/pull/919

ion-elgreco avatar Oct 13 '24 16:10 ion-elgreco