@PublicEvolving public interface OverWindowedTable
OverWindow
s.
Unlike group windows, which are specified in the GROUP BY
clause, over windows do not
collapse rows. Instead over window aggregates compute an aggregate for each input row over a
range of its neighboring rows.
Modifier and Type | Method and Description |
---|---|
Table |
select(Expression... fields)
Performs a selection operation on a over windowed table.
|
Table |
select(String fields)
Deprecated.
|
@Deprecated Table select(String fields)
select(Expression...)
Example:
overWindowedTable.select("c, b.count over ow, e.sum over ow")
Table select(Expression... fields)
Example:
overWindowedTable.select(
$("c"),
$("b").count().over($("ow")),
$("e").sum().over($("ow"))
);
Scala Example:
overWindowedTable.select('c, 'b.count over 'ow, 'e.sum over 'ow)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.