[#7518] Add support for SQL Server STDEVP(), STDEV() functions
This commit is contained in:
parent
25d450c83e
commit
a0d5691d83
@ -764,8 +764,8 @@ term =
|
||||
| 'SIN' '(' numericOp ')'
|
||||
| 'SINH' '(' numericOp ')'
|
||||
| 'SPACE' '(' field ')'
|
||||
| 'STDDEV_POP' '(' field ')' [ over ]
|
||||
| 'STDDEV_SAMP' '(' field ')' [ over ]
|
||||
| ( 'STDDEV_POP' | 'STDEVP' ) '(' field ')' [ over ]
|
||||
| ( 'STDDEV_SAMP' | 'STDEV' ) '(' field ')' [ over ]
|
||||
| 'STR_REPLACE' '(' field ',' field ',' field ')'
|
||||
| 'SUBSTRING' '(' field 'FROM' numericOp [ 'FOR' numericOp ] ')'
|
||||
| 'SUM' '(' [ 'DISTINCT' | 'ALL' ] field ')' [ keep | filter ] [ over ]
|
||||
|
||||
@ -8591,9 +8591,9 @@ final class ParserImpl implements Parser {
|
||||
return ComputationalOperation.EVERY;
|
||||
else if (parseFunctionNameIf(ctx, "ANY") || parseFunctionNameIf(ctx, "SOME") || parseFunctionNameIf(ctx, "BOOL_OR"))
|
||||
return ComputationalOperation.ANY;
|
||||
else if (parseFunctionNameIf(ctx, "STDDEV_POP"))
|
||||
else if (parseFunctionNameIf(ctx, "STDDEV_POP") || parseFunctionNameIf(ctx, "STDEVP"))
|
||||
return ComputationalOperation.STDDEV_POP;
|
||||
else if (parseFunctionNameIf(ctx, "STDDEV_SAMP"))
|
||||
else if (parseFunctionNameIf(ctx, "STDDEV_SAMP") || parseFunctionNameIf(ctx, "STDEV"))
|
||||
return ComputationalOperation.STDDEV_SAMP;
|
||||
else if (parseFunctionNameIf(ctx, "VAR_POP"))
|
||||
return ComputationalOperation.VAR_POP;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user