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

Range Join Benchmark Tests #95

Open
stanbrub opened this issue May 2, 2023 · 0 comments
Open

Range Join Benchmark Tests #95

stanbrub opened this issue May 2, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@stanbrub
Copy link
Collaborator

stanbrub commented May 2, 2023

Add Range Join benchmark tests. (Looks like these are static for now)

Python docs: https://deephaven.io/core/pydoc/code/deephaven.table.html#deephaven.table.Table.range_join
PR: deephaven/deephaven-core#3772

tt=timeTable("00:00:00.01")
ttm=io.deephaven.engine.util.TableTools.merge(tt, tt).sort("Timestamp")

tts=ttm.snapshot().update("II=ii", "B=(int)(ii / 100)")
lt=tts.update("Before=Timestamp-'00:00:00.249'","After=Timestamp+'00:00:00.249'")
// lt=tts.update("Before=Timestamp-'00:00:00.25'","After=Timestamp+'00:00:00.25'")

rj=lt.rangeJoin(tts, List.of("B=B", "Before < Timestamp < After"), List.of(AggGroup("RI=II", "RTS=Timestamp")))
rja=rj.update("FirstRI=RI.get(0)", "LastRI=RI.get(RI.size()-1)", "FirstTS=RTS.get(0)", "LastTS=RTS.get(RTS.size()-1)")
rjav=rja.dropColumns("RI", "RTS")

rj=lt.rangeJoin(tts, List.of("B=B", "Before <= Timestamp <= After"), List.of(AggGroup("RI=II", "RTS=Timestamp")))
rja=rj.update("FirstRI=RI.get(0)", "LastRI=RI.get(RI.size()-1)", "FirstTS=RTS.get(0)", "LastTS=RTS.get(RTS.size()-1)")
rjav=rja.dropColumns("RI", "RTS")

rj=lt.rangeJoin(tts, List.of("B=B", "<- Before <= Timestamp <= After ->"), List.of(AggGroup("RI=II", "RTS=Timestamp")))
rja=rj.update("FirstRI=RI.get(0)", "LastRI=RI.get(RI.size()-1)", "FirstTS=RTS.get(0)", "LastTS=RTS.get(RTS.size()-1)")
rjav=rja.dropColumns("RI", "RTS")
@stanbrub stanbrub added the enhancement New feature or request label May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant