Skip to content

Commit

Permalink
Release v1.11.2
Browse files Browse the repository at this point in the history
- Add built-in functions.
  - Aggregate Functions
    - STDEV
    - STDEVP
    - VAR
    - VARP
  - Analytic Functions
    - STDEV
    - STDEVP
    - VAR
    - VARP
  • Loading branch information
mithrandie committed May 26, 2019
2 parents 46e07e3 + 6091cbe commit 6608c22
Show file tree
Hide file tree
Showing 15 changed files with 1,769 additions and 1,180 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Change Log

## Version 1.11.2

Released on May 26, 2019

- Add built-in functions.
- Aggregate Functions
- STDEV
- STDEVP
- VAR
- VARP
- Analytic Functions
- STDEV
- STDEVP
- VAR
- VARP

## Version 1.11.1

Released on May 19, 2019
Expand Down
86 changes: 78 additions & 8 deletions docs/_posts/2006-01-02-aggregate-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ Aggregate Functions can be used only in [Select Clause]({{ '/reference/select-qu

| name | description |
| :- | :- |
| [COUNT](#count) | Return a number of values |
| [MIN](#min) | Return a minimum value |
| [MAX](#max) | Return a maximum value |
| [SUM](#sum) | Return a sum of values |
| [AVG](#avg) | Return a average of values |
| [MEDIAN](#median) | Return a median of values |
| [LISTAGG](#listagg) | Return a concatenated string of values |
| [JSON_AGG](#json_agg) | Return a string formatted in JSON array |
| [COUNT](#count) | Return the number of values |
| [MIN](#min) | Return the minimum value |
| [MAX](#max) | Return the maximum value |
| [SUM](#sum) | Return the sum of values |
| [AVG](#avg) | Return the average of values |
| [STDEV](#stdev) | Return the sample standard deviation of values |
| [STDEVP](#stdevp) | Return the population standard deviation of values |
| [VAR](#var) | Return the sample variance of values |
| [VARP](#varp) | Return the population variance of values |
| [MEDIAN](#median) | Return the median of values |
| [LISTAGG](#listagg) | Return the concatenated string of values |
| [JSON_AGG](#json_agg) | Return the string formatted in JSON array |

## Definitions

Expand Down Expand Up @@ -115,6 +119,72 @@ _return_
Returns the average of float values of _expr_.
If all values are null, then returns a null.

### STDEV
{: #stdev}

```
STDEV([DISTINCT] expr)
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the sample standard deviation of float values of _expr_.
If all values are null, then returns a null.

### STDEVP
{: #stdevp}

```
STDEVP([DISTINCT] expr)
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the population standard deviation of float values of _expr_.
If all values are null, then returns a null.

### VAR
{: #var}

```
VAR([DISTINCT] expr)
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the sample variance of float values of _expr_.
If all values are null, then returns a null.


### VARP
{: #varp}

```
VARP([DISTINCT] expr)
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the population variance of float values of _expr_.
If all values are null, then returns a null.


### MEDIAN
{: #median}

Expand Down
84 changes: 84 additions & 0 deletions docs/_posts/2006-01-02-analytic-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ Analytic Functions can be used only in [Select Clause]({{ '/reference/select-que
| [MAX](#max) | Return the maximum value in a group |
| [SUM](#sum) | Return the sum of values in a group |
| [AVG](#avg) | Return the average of values in a group |
| [STDEV](#stdev) | Return the sample standard deviation of values |
| [STDEVP](#stdevp) | Return the population standard deviation of values |
| [VAR](#var) | Return the sample variance of values |
| [VARP](#varp) | Return the population variance of values |
| [MEDIAN](#median) | Return the median of values in a group |
| [LISTAGG](#listagg) | Return the concatenated string of values in a group |
| [JSON_AGG](#json_agg) | Return the string formatted in JSON array of values in a group |
Expand Down Expand Up @@ -444,6 +448,86 @@ Returns the average of float values of _expr_.
If all values are null, then returns a null.


### STDEV
{: #stdev}

```
STDEV([DISTINCT] expr) OVER ([partition_clause] [order_by_clause [windowing_clause]])
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_partition_clause_
: [Partition Clause](#syntax)

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the sample standard deviation of float values of _expr_.
If all values are null, then returns a null.


### STDEVP
{: #stdevp}

```
STDEVP([DISTINCT] expr) OVER ([partition_clause] [order_by_clause [windowing_clause]])
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_partition_clause_
: [Partition Clause](#syntax)

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the population standard deviation of float values of _expr_.
If all values are null, then returns a null.


### VAR
{: #var}

```
VAR([DISTINCT] expr) OVER ([partition_clause] [order_by_clause [windowing_clause]])
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_partition_clause_
: [Partition Clause](#syntax)

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the sample variance of float values of _expr_.
If all values are null, then returns a null.


### VARP
{: #varp}

```
VARP([DISTINCT] expr) OVER ([partition_clause] [order_by_clause [windowing_clause]])
```

_expr_
: [value]({{ '/reference/value.html' | relative_url }})

_partition_clause_
: [Partition Clause](#syntax)

_return_
: [float]({{ '/reference/value.html#float' | relative_url }}) or [integer]({{ '/reference/value.html#integer' | relative_url }})

Returns the population variance of float values of _expr_.
If all values are null, then returns a null.


### MEDIAN
{: #median}

Expand Down
4 changes: 2 additions & 2 deletions docs/_posts/2006-01-02-statement.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ NATURAL NEXT NOT NTH_VALUE NTILE NULL
OFFSET ON OPEN OR ORDER OUTER OVER
PARTITION PERCENT PERCENT_RANK PRECEDING PREPARE PRINT PRINTF PRIOR PWD
RANGE RANK RECURSIVE RELATIVE RELOAD REMOVE RENAME REPLACE RETURN RIGHT ROLLBACK ROW ROW_NUMBER
SELECT SEPARATOR SET SHOW SOURCE STDIN SUM SYNTAX
SELECT SEPARATOR SET SHOW SOURCE STDEV STDEVP STDIN SUM SYNTAX
TABLE THEN TO TRIGGER TRUE
UNBOUNDED UNION UNKNOWN UNSET UPDATE USING
VALUES VAR VIEW
VALUES VAR VARP VIEW
WHEN WHERE WHILE WITH WITHIN

16 changes: 16 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ title: Change Log - csvq

# Change Log

## Version 1.11.2

Released on May 26, 2019

- Add built-in functions.
- Aggregate Functions
- STDEV
- STDEVP
- VAR
- VARP
- Analytic Functions
- STDEV
- STDEVP
- VAR
- VARP

## Version 1.11.1

Released on May 19, 2019
Expand Down
6 changes: 3 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ In the multiple operations, you can use variables, cursors, temporary tables, an

## Latest Release

Version 1.11.1
: Released on May 19, 2019
Version 1.11.2
: Released on May 26, 2019

<a class="waves-effect waves-light btn" href="https://github.com/mithrandie/csvq/releases/tag/v1.11.1">
<a class="waves-effect waves-light btn" href="https://github.com/mithrandie/csvq/releases/tag/v1.11.2">
<i class="material-icons left">file_download</i>download
</a>

Expand Down
6 changes: 3 additions & 3 deletions docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://mithrandie.github.io/csvq/</loc>
<lastmod>2019-05-24T10:47:33+00:00</lastmod>
<lastmod>2019-05-26T15:57:34+00:00</lastmod>
</url>
<url>
<loc>https://mithrandie.github.io/csvq/reference.html</loc>
Expand Down Expand Up @@ -142,7 +142,7 @@
</url>
<url>
<loc>https://mithrandie.github.io/csvq/reference/aggregate-functions.html</loc>
<lastmod>2018-10-13T15:53:22+00:00</lastmod>
<lastmod>2019-05-26T15:33:36+00:00</lastmod>
</url>
<url>
<loc>https://mithrandie.github.io/csvq/reference/logical-functions.html</loc>
Expand Down Expand Up @@ -174,7 +174,7 @@
</url>
<url>
<loc>https://mithrandie.github.io/csvq/reference/analytic-functions.html</loc>
<lastmod>2018-10-13T15:53:22+00:00</lastmod>
<lastmod>2019-05-26T15:33:36+00:00</lastmod>
</url>
<url>
<loc>https://mithrandie.github.io/csvq/changelog.html</loc>
Expand Down
Loading

0 comments on commit 6608c22

Please sign in to comment.