You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Andy Ye <ye...@google.com> on 2022/04/21 18:31:46 UTC
Design Doc for Order-sensitive DataFrame Operations in Beam
Hi everyone,
I've written up a design doc
<https://s.apache.org/order-sensitive-dataframe-operations> [1] on enabling
order-sensitive DataFrame operations in Beam. I'd appreciate any feedback.
Thanks!
Summary:
Order-sensitive operations (diff
<https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.diff.html>,
head
<https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.head.html>,
cumsum
<https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.cumsum.html>,
interpolate
<https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.interpolate.html>,
ffill
<https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.ffill.html>)
do not translate well to the Beam model since there is no concept of global
ordering; thus they are currently not supported in the Beam DataFrame API.
However, we can support many of these use-cases by collecting data that is
typically distributed across multiple Dataflow workers onto one of them.
Best,
Andy
[1] https://s.apache.org/order-sensitive-dataframe-operations
Re: Design Doc for Order-sensitive DataFrame Operations in Beam
Posted by Brian Hulette <bh...@google.com>.
+1, thank you Andy!
It's good that this will at least give users an outlet in situations where
they know the dataset is small (similar to what we do with quantiles/mode
[1]).
Brian
[1]
https://beam.apache.org/documentation/dsls/dataframes/differences-from-pandas/#non-parallelizable-operations
On Thu, Apr 21, 2022 at 5:54 PM Robert Bradshaw <ro...@google.com> wrote:
> Thanks, this looks good and will significantly increase our coverage.
> I left some comments on the doc.
>
> On Thu, Apr 21, 2022 at 11:32 AM Andy Ye <ye...@google.com> wrote:
> >
> > Hi everyone,
> >
> > I've written up a design doc [1] on enabling order-sensitive DataFrame
> operations in Beam. I'd appreciate any feedback. Thanks!
> >
> > Summary:
> > Order-sensitive operations (diff, head, cumsum, interpolate, ffill) do
> not translate well to the Beam model since there is no concept of global
> ordering; thus they are currently not supported in the Beam DataFrame API.
> However, we can support many of these use-cases by collecting data that is
> typically distributed across multiple Dataflow workers onto one of them.
> >
> > Best,
> > Andy
> >
> > [1] https://s.apache.org/order-sensitive-dataframe-operations
> >
>
Re: Design Doc for Order-sensitive DataFrame Operations in Beam
Posted by Robert Bradshaw <ro...@google.com>.
Thanks, this looks good and will significantly increase our coverage.
I left some comments on the doc.
On Thu, Apr 21, 2022 at 11:32 AM Andy Ye <ye...@google.com> wrote:
>
> Hi everyone,
>
> I've written up a design doc [1] on enabling order-sensitive DataFrame operations in Beam. I'd appreciate any feedback. Thanks!
>
> Summary:
> Order-sensitive operations (diff, head, cumsum, interpolate, ffill) do not translate well to the Beam model since there is no concept of global ordering; thus they are currently not supported in the Beam DataFrame API. However, we can support many of these use-cases by collecting data that is typically distributed across multiple Dataflow workers onto one of them.
>
> Best,
> Andy
>
> [1] https://s.apache.org/order-sensitive-dataframe-operations
>