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

fix: fix regressions in tests #38

Closed

Conversation

itsjunetime
Copy link

Specifically, the regressions caused by 02eab80

This should let us get by this blocker and continue DF upgrades.

I'm just putting it here for now so I don't forget abt it and others can look at it. It needs more comments and more descriptive commit names.

Also, it still seems to affect ordering of results that are equivalent - so our tests don't pass without changes after this, but I think they'll be correct after this PR.

This also might prevent some of the optimizations that the linked commit was trying to get? I'm not certain.

Comment on lines +267 to +272
12 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
2 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
14 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
5 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
1 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC"))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it's not just the ordering. The values in the first count column is incorrect.

itsjunetime pushed a commit that referenced this pull request Oct 22, 2024
…regation (apache#12946)

* Improve unparsing for ORDER BY with Aggregation functions (#38)

* Improve UNION unparsing (#39)

* Scalar functions in ORDER BY unparsing support (#41)

* Improve unparsing for complex Window functions with Aggregation (#42)

* WindowFunction order_by should respect `supports_nulls_first_in_sort` dialect setting (#43)

* Fix plan_to_sql

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

Successfully merging this pull request may close these issues.

2 participants