-
Notifications
You must be signed in to change notification settings - Fork 442
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
[VL] Support ignoreNulls for NthValue window function #3857
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/oap-project/gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
val frame = wExpression.windowSpec.frameSpecification.asInstanceOf[SpecifiedWindowFrame] | ||
val childrenNodeList = new JArrayList[ExpressionNode]() | ||
childrenNodeList.add( | ||
ExpressionConverter | ||
.replaceWithExpressionTransformer(input, attributeSeq = originalInputAttributes) | ||
.doTransform(args)) | ||
childrenNodeList.add(LiteralTransformer(offset).doTransform(args)) | ||
childrenNodeList.add(LiteralTransformer(Literal(ignoreNulls)).doTransform(args)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use makeLiteral to get an expression node.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix it in a separate PR. Thanks!
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
How was this patch tested?
Spark UTs & a new test added.