Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit b96dd2a

Browse files
committed
acrolinx changes
1 parent c1a4a06 commit b96dd2a

2 files changed

Lines changed: 16 additions & 38 deletions

File tree

docs/t-sql/functions/approx-percentile-cont-transact-sql.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,38 +57,28 @@ float(53)
5757
## Remarks
5858

5959
Any nulls in the data set are ignored.
60+
61+
Approximate percentile functions use KLL sketch. The sketch is built by reading the stream of data. Due to the algorithm used, this function requires less memory than its non-approximate counterpart ([PERCENTILE_CONT](/sql/t-sql/functions/percentile-cont-transact-sql)).
6062

61-
Approximate percentile functions use KLL sketch. The sketch is built by
62-
reading the stream of data. Due to the algorithm used, this function
63-
requires less memory than its non-approximate counterpart
64-
([PERCENTILE_CONT](/sql/t-sql/functions/percentile-cont-transact-sql))
65-
66-
This function provides rank-based error guarantees not value based. The
67-
function implementation guarantees up to a 1.33% error.
63+
This function provides rank-based error guarantees not value based. The function implementation guarantees up to a 1.33% error.
6864

6965
## Known Behaviors
7066

7167
- If the trace flag is not enabled below error message would be raised
7268

73-
Msg 195, Level 15, State 22, Line 1 </br>
74-
'approx_percentile_cont' is not a recognized built-in function name
69+
Msg 195, Level 15, State 22, Line 1 </br>
70+
'approx_percentile_cont' is not a recognized built-in function name
7571

76-
- The output of the function may not be the same in all executions. The algorithm used for these
77-
functions is [KLL sketch](https://arxiv.org/pdf/1603.05346v2.pdf) which is a randomized algorithm. Every time the sketch is built, random
78-
values are picked. This functions provide rank-based error guarantees not value based.
79-
- The
80-
function implementation guarantees up to a 1.33% error bounds within a 99% confidence.
72+
- The output of the function may not be the same in all executions. The algorithm used for these functions is [KLL sketch](https://arxiv.org/pdf/1603.05346v2.pdf) which is a randomized algorithm. Every time the sketch is built, random values are picked. These functions provide rank-based error guarantees not value based.
73+
- The function implementation guarantees up to a 1.33% error bounds within a 99% confidence.
8174

8275
## Compatibility Support
8376

84-
Under compatibility level 110 and higher, WITHIN GROUP is a reserved
85-
keyword. For more information, see [ALTER DATABASE Compatibility Level
86-
(Transact-SQL).](/sql/t-sql/statements/alter-database-transact-sql-compatibility-level)
77+
Under compatibility level 110 and higher, WITHIN GROUP is a reserved keyword. For more information, see [ALTER DATABASE Compatibility Level (Transact-SQL).](/sql/t-sql/statements/alter-database-transact-sql-compatibility-level)
8778

8879
## Examples
8980

90-
The following example creates a table, populates it, and executes a
91-
sample query.
81+
The following example creates a table, populates it, and executes a sample query.
9282

9383
```sql
9484
SET NOCOUNT ON

docs/t-sql/functions/approx-percentile-disc-transact-sql.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,11 @@ WITHIN GROUP (ORDER BY order_by_expression [ASC|DESC]
3939

4040
*numeric_literal*
4141

42-
The percentile to compute. The value must range between 0.0 and 1.0. to
43-
calculate 10th percentile, the value passed would be 0.10.
42+
The percentile to compute. The value must range between 0.0 and 1.0. to calculate 10th percentile, the value passed would be 0.10.
4443

4544
*order_by_expression*
4645

47-
Specifies a list of values to sort and compute the percentile over. The
48-
default sort order is ascending (ASC).  Only numeric data types are
49-
allowed. The expression must evaluate to an exact or approximate numeric
50-
type, with no other data types allowed. Exact numeric types are int,
51-
bigint, smallint, tinyint, numeric, bit, decimal, smallmoney, and money.
52-
Approximate numeric types are float and real.
46+
Specifies a list of values to sort and compute the percentile over. The default sort order is ascending (ASC).  Only numeric data types are allowed. The expression must evaluate to an exact or approximate numeric type, with no other data types allowed. Exact numeric types are int, bigint, smallint, tinyint, numeric, bit, decimal, smallmoney, and money. Approximate numeric types are float and real.
5347

5448
## Return types
5549

@@ -59,12 +53,9 @@ The return type is determined by the *order_by_expression* type.
5953

6054
Any nulls in the data set are ignored.
6155

62-
Approximate percentile functions use KLL sketch. The sketch is built by
63-
reading the stream of data.
56+
Approximate percentile functions use KLL sketch. The sketch is built by reading the stream of data.
6457

65-
This function provides rank-based error guarantees not value based. The
66-
function implementation guarantees up to a 1.33% error rate within a 99%
67-
probability.
58+
This function provides rank-based error guarantees not value based. The function implementation guarantees up to a 1.33% error rate within a 99% probability.
6859

6960
## Known Behaviors
7061

@@ -80,20 +71,17 @@ probability.
8071

8172
To workaround above error, use cast/convert to change decimal or numeric data type to float data type or use continuous approximate percentile function.
8273

83-
- The output of the functions may not be the same in all executions. The algorithm used for these functions is [KLL sketch](https://arxiv.org/pdf/1603.05346v2.pdf) which is a randomized algorithm. Every time the sketch is built, random values are picked. This functions provide rank-based error guarantees not value based.
74+
- The output of the functions may not be the same in all executions. The algorithm used for these functions is [KLL sketch](https://arxiv.org/pdf/1603.05346v2.pdf) which is a randomized algorithm. Every time the sketch is built, random values are picked. These functions provide rank-based error guarantees not value based.
8475

8576
- The function implementation guarantees up to a 1.33% error bounds within a 99% confidence.
8677

8778
## Compatibility Support
8879

89-
Under compatibility level 110 and higher, WITHIN GROUP is a reserved
90-
keyword. For more information, see [ALTER DATABASE Compatibility Level
91-
(Transact-SQL).](/sql/t-sql/statements/alter-database-transact-sql-compatibility-level)
80+
Under compatibility level 110 and higher, WITHIN GROUP is a reserved keyword. For more information, see [ALTER DATABASE Compatibility Level (Transact-SQL).](/sql/t-sql/statements/alter-database-transact-sql-compatibility-level).
9281

9382
## Examples
9483

95-
The following example creates a table, populates it and runs the sample
96-
query.
84+
The following example creates a table, populates it and runs the sample query.
9785

9886
```sql
9987
SET NOCOUNT ON

0 commit comments

Comments
 (0)