Skip to content

Commit

Permalink
Pre-release v1.12.4-pr.1
Browse files Browse the repository at this point in the history
Fix a bug that arrow keys do not work in the interactive shell on Windows. (Github #26)
  • Loading branch information
mithrandie committed Feb 4, 2020
2 parents 5bde5d9 + 06d9723 commit da64a1a
Show file tree
Hide file tree
Showing 72 changed files with 4,598 additions and 2,312 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ language: go
sudo: false

go:
- "1.12.x"
- 1.11.x
- 1.12.x
- 1.13.x

install: true

Expand Down Expand Up @@ -32,6 +34,7 @@ deploy:
on:
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$
go: '1.13.x'
- provider: releases
api_key: $GITHUB_API_TOKEN
skip_cleanup: true
Expand All @@ -42,3 +45,4 @@ deploy:
on:
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+\-pr\.[0-9]+$
go: '1.13.x'
89 changes: 89 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,94 @@
# Change Log

## Version 1.12.3

Released on January 15, 2020

- Fix a bug of LIKE operator.

## Version 1.12.2

Released on January 14, 2020

- Fix a bug of LIKE operator. ([Github #25](https://github.com/mithrandie/csvq/issues/25))

## Version 1.12.1

Released on January 13, 2020

- Update syntax description about the command option "--strip-ending-line-break".

## Version 1.12.0

Released on January 12, 2020

- Append a newline at the end of created and updated files. ([Github #22](https://github.com/mithrandie/csvq/issues/22))
- Add the command option "--strip-ending-line-break".

## Version 1.11.8

Released on December 12, 2019

- Prevent query results from being written when the results is empty. ([Github #21](https://github.com/mithrandie/csvq/issues/21))

## Version 1.11.7

Released on December 3, 2019

- Fix misspellings in the syntax subcommand.

## Version 1.11.6

Released on October 31, 2019

- Modify the behavior of enclosures completion on the interactive shell. ([Github #12](https://github.com/mithrandie/csvq/issues/12))

## Version 1.11.5

Released on July 6, 2019

- Add a built-in function. ([Github #10](https://github.com/mithrandie/csvq/pull/10))
- String Function
- SUBSTRING

## Version 1.11.4

Released on Jun 1, 2019

- Fix the following bug.
- NOT IN operator returns incorrect result in some cases.

## Version 1.11.3

Released on Jun 1, 2019

- Implement FETCH clause that can be used in place of LIMIT clause in SELECT query.
- Fix the following bug.
- FALSE takes precedence over UNKNOWN in NOT IN operation.

## Version 1.11.2

Released on May 26, 2019

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

## Version 1.11.1

Released on May 19, 2019

- Fix the following bugs.
- Subqueries in recursive queries cannot reference that temporary tables.

## Version 1.11.0

Released on May 19, 2019
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ In the multiple operations, you can use variables, cursors, temporary tables, an

[Reference Manual - csvq](https://mithrandie.github.io/csvq/reference)

## Install
## Installation

### Install executable binary

Expand All @@ -68,6 +68,14 @@ Go 1.11 or later (ref. [Getting Started - The Go Programming Language](https://g
2. Change directory to `$GOPATH/src/github.com/mithrandie/csvq`
3. ```$ env GO111MODULE=on go install```

### Install using package manager (Unofficial)

Installing using a package manager does not ensure that you always get the latest version, but it may make installation and updating easier.

#### macOS or Linux

1. Install homebrew (ref. [The missing package manager for macOS (or Linux) — Homebrew](https://brew.sh))
2. ```$ brew install csvq```

## Usage

Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/side_menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<li class="no-padding bold"><a href="{{ '/reference.html' | relative_url }}">Reference Manual</a>
<div class="folder">
<ul>
<li><a href="{{ '/reference/install.html' | relative_url }}">Install</a></li>
<li><a href="{{ '/reference/install.html' | relative_url }}">Installation</a></li>
<li><a href="{{ '/reference/command.html' | relative_url }}">Command Usage</a></li>
<li><a href="{{ '/reference/statement.html' | relative_url }}">Statements</a></li>
<li><a href="{{ '/reference/value.html' | relative_url }}">Values</a></li>
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
Loading

0 comments on commit da64a1a

Please sign in to comment.