ADQL Changes in Events Service 20.9.0
This page describes the ADQL-related changes caused by an update to the Events Service in version 20.9.0.
ADQL Percentile Query Results
In the Events Service 20.9.0, the ADQL percentile query now returns the larger number instead of the median number in a range of candidates. The ADQL percentile query syntax for the Events Service 20.9.0 has not changed.
Sample ADQL Percentile Query Syntax
ADQL Terms
| Term | Description |
|---|---|
|
SELECT |
|
Percentile
|
|
Field
|
|
FROM
|
|
Table
|
|
ADQL Example
This example displays the 50th percentile age of employees working in the office. Based on the distribution, the 50th percentile age is 30 and 31. This is because out of a total of 130 employees in the table, 65 employees are 30 or younger and 65 employees are 31 or older.
Results
- For Events Service < 20.9.0, the 50th percentile age value is 30.5, which is the median of 30 and 31.
-
For Events Service >= 20.9.0, the 50th percentile age value is 31, which is the larger candidate.
Warning: In a production environment, there can be millions of values in each field. As a result, the percentile query returning the larger number in a percentile bucket is a more accurate data distribution.