Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

lbooker42
Copy link
Contributor

@lbooker42 lbooker42 commented Nov 13, 2024

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");

@lbooker42 lbooker42 self-assigned this Nov 13, 2024
@lbooker42 lbooker42 added this to the 0.37.0 milestone Nov 13, 2024
Copy link
Member

@rcaudy rcaudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ready to approve, but for one comment in discussion.

@lbooker42 lbooker42 merged commit 5d44879 into deephaven:main Nov 19, 2024
17 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2024
@deephaven-internal
Copy link
Contributor

Labels indicate documentation is required. Issues for documentation have been opened:

Community: deephaven/deephaven-docs-community#364

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants