-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
array_top_n: Nested calls fail on depths greater than 5 #24560
Comments
This is probably because Presto Java compiles expression code or calls and this particular nested calls cause some code explosion? |
yeah, this function produces very long sql when it does the rewrite, so too many levels of nesting of this function results in too much bytecode. I don't think it's worth the investment to improve this in Java. |
Interesting, thanks @kgpai for pointing out the rewrite code.
In my opinion it is a valid "upgrade" to However, it does change behavior and we might not want it. We then could introduce an internal-only |
TL;DR:
array_top_n
nested calls fail on depths greater than 5.Your Environment
Expected Behavior
Function
array_top_n
should accept nesting to deeper levels. Presto on Velox accepts depths of at least 7Current Behavior
Query fails due to JVM bytecode limitations on nested depth greater than 5.
The text was updated successfully, but these errors were encountered: