mirror of
https://github.com/django/django.git
synced 2025-06-04 02:59:13 +00:00
Refs #26608 -- Removed unneeded name attribute in window functions.
This commit is contained in:
parent
ab251fdad2
commit
f1fc7d6b78
@ -8,14 +8,12 @@ __all__ = [
|
|||||||
|
|
||||||
class CumeDist(Func):
|
class CumeDist(Func):
|
||||||
function = 'CUME_DIST'
|
function = 'CUME_DIST'
|
||||||
name = 'CumeDist'
|
|
||||||
output_field = FloatField()
|
output_field = FloatField()
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
|
|
||||||
class DenseRank(Func):
|
class DenseRank(Func):
|
||||||
function = 'DENSE_RANK'
|
function = 'DENSE_RANK'
|
||||||
name = 'DenseRank'
|
|
||||||
output_field = IntegerField()
|
output_field = IntegerField()
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
@ -23,7 +21,6 @@ class DenseRank(Func):
|
|||||||
class FirstValue(Func):
|
class FirstValue(Func):
|
||||||
arity = 1
|
arity = 1
|
||||||
function = 'FIRST_VALUE'
|
function = 'FIRST_VALUE'
|
||||||
name = 'FirstValue'
|
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
|
|
||||||
@ -53,24 +50,20 @@ class LagLeadFunction(Func):
|
|||||||
|
|
||||||
class Lag(LagLeadFunction):
|
class Lag(LagLeadFunction):
|
||||||
function = 'LAG'
|
function = 'LAG'
|
||||||
name = 'Lag'
|
|
||||||
|
|
||||||
|
|
||||||
class LastValue(Func):
|
class LastValue(Func):
|
||||||
arity = 1
|
arity = 1
|
||||||
function = 'LAST_VALUE'
|
function = 'LAST_VALUE'
|
||||||
name = 'LastValue'
|
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
|
|
||||||
class Lead(LagLeadFunction):
|
class Lead(LagLeadFunction):
|
||||||
function = 'LEAD'
|
function = 'LEAD'
|
||||||
name = 'Lead'
|
|
||||||
|
|
||||||
|
|
||||||
class NthValue(Func):
|
class NthValue(Func):
|
||||||
function = 'NTH_VALUE'
|
function = 'NTH_VALUE'
|
||||||
name = 'NthValue'
|
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
def __init__(self, expression, nth=1, **extra):
|
def __init__(self, expression, nth=1, **extra):
|
||||||
@ -87,7 +80,6 @@ class NthValue(Func):
|
|||||||
|
|
||||||
class Ntile(Func):
|
class Ntile(Func):
|
||||||
function = 'NTILE'
|
function = 'NTILE'
|
||||||
name = 'Ntile'
|
|
||||||
output_field = IntegerField()
|
output_field = IntegerField()
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
@ -99,20 +91,17 @@ class Ntile(Func):
|
|||||||
|
|
||||||
class PercentRank(Func):
|
class PercentRank(Func):
|
||||||
function = 'PERCENT_RANK'
|
function = 'PERCENT_RANK'
|
||||||
name = 'PercentRank'
|
|
||||||
output_field = FloatField()
|
output_field = FloatField()
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
|
|
||||||
class Rank(Func):
|
class Rank(Func):
|
||||||
function = 'RANK'
|
function = 'RANK'
|
||||||
name = 'Rank'
|
|
||||||
output_field = IntegerField()
|
output_field = IntegerField()
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
|
||||||
|
|
||||||
class RowNumber(Func):
|
class RowNumber(Func):
|
||||||
function = 'ROW_NUMBER'
|
function = 'ROW_NUMBER'
|
||||||
name = 'RowNumber'
|
|
||||||
output_field = IntegerField()
|
output_field = IntegerField()
|
||||||
window_compatible = True
|
window_compatible = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user