#35064 closed Bug (fixed)
Window.order_by decimal field is broken on SQLite
Description ¶
Initially reported on the Discord and demonstrated in this Django project.
class RankTest(models.Model): name = models.CharField(max_length=30) category = models.CharField(max_length=30) rating = models.DecimalField(max_digits=8, decimal_places=5) list( RankTest.objects.annotate( rank=Window( expression=Rank(), order_by='rating' ) ) )
The solution implemented in #31723 (71d10ca8c90ccc1fd0ccd6683716dd3c3116ae6a) wish addressed the improper of casting for Window.expression
caused some problematic one for order_by
and likely partition_by
as well.
Change History (8)
comment:1 by , 14 months ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 14 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 14 months ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
PR