-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
let BigQueryGetData operator take a list of fields for the "order by" clause #39127
Comments
@eladkal Could you please assign me? |
There are two options left:
@eladkal What do you think? |
I might prefer this one. I think the performance would be better than 2 |
But, how do you get the result when using |
You got me on that one, as indeed - it only returns @Lee-W, What are your thoughts about this one? |
This sounds to be a better solution 👍 |
Thanks :) |
Fixed in #39315 |
Description
Sometimes you just need a the latest value of a field (e.g.
updatedAt
) so further operators downstream could use said value in their own query.This can be done by
SELECT MAX(updatedAt) [...]
but that would required a lot of re-write, when simply adding a new paramordering_fields
could solve the same issue, allowing to create a query similar to:SELECT updatedAt FROM [...] LIMIT 1 ORDER BY updatedAt DESC
Example implementation (not tested):
Use case/motivation
The operator BigQueryGetData should have 1 more params
ordering_fields
so the generated query would also include theORDER BY
clause.Related issues
#24460
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: