deephaven / deephaven-docs-community

Source code for Community docs on the deephaven.io website.
Apache License 2.0
0 stars 5 forks source link

feat!: provide key columns as scalars (vs. vectors) to `RollingFormula` #364

Open deephaven-internal opened 3 days ago

deephaven-internal commented 3 days ago

This issue was auto-generated

PR: https://github.com/deephaven/deephaven-core/pull/6375 Author: lbooker42

Original PR Body

Example:

NOTE: Sym is a key column and is constant for each bucket. It is presented to the UDF as a string (not a vector). intCol / longCol are vectors containing the window data.

t_out = t.updateBy(UpdateByOperation.RollingFormula(prevTicks, postTicks,
        "out_val=sum(intCol) - max(longCol) + (Sym == null ? 0 : Sym.length())"), "Sym");