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

LazyEvaluation of the "Lift" function. #13

Open
tuterbatuhan opened this issue Sep 9, 2019 · 3 comments
Open

LazyEvaluation of the "Lift" function. #13

tuterbatuhan opened this issue Sep 9, 2019 · 3 comments

Comments

@tuterbatuhan
Copy link
Contributor

Hey,
"Lift" function is lazily evaluated by calling the getAggValues() function, as it can be seen here:

stream
.keyBy(0)
.process(windowOperator)
.map(x -> x.getAggValues().get(0).f1)
.print();

You may consider triggering the "Lift" function when a window ends, instead of adding another operator for lazy evaluation.

@PhilippGrulich
Copy link
Collaborator

Hi @tuterbatuhan,

we will consider this for future versions of Scotty.

Best,
Philipp

@jiayuasu
Copy link

Hi all, I wonder why this getAggValues() is lazily evaluated? Due to some performance concern?

@julianev
Copy link
Member

Hi @jiayuasu,
The lazy evaluation, in this case, is related to the quantile computation. We do not expect a great performance benefit from changing it. If you have further questions, please feel free to contact us!

Best,
Juliane

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

No branches or pull requests

4 participants