Replies: 1 comment
-
This is expected and not a bug. Any order by in subquery is ignored, if you use a normal subquery without using the PTF you'll see the same warning. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I used the RepeatFunction(https://github.com/trinodb/trino/blob/master/core/trino-main/src/test/java/io/trino/connector/TestingTableFunctions.java#L693) for test.
When invoking table function with order by clause in table argument subquery, I noticed that the order by clause will be ignored.
For example, in the SQL below,
ORDER BY invocations desc
will be ignored and report thatWARNING: ORDER BY in subquery may have no effect
I wonder that if this is as expected? If it's a bug, I'd like to help fix it!
Beta Was this translation helpful? Give feedback.
All reactions