Skip to content

Commit

Permalink
Release v1.17.0
Browse files Browse the repository at this point in the history
- Support column name wildcard for tables. ([GitHub #68](#68))
- Add a built-in function.
  - TITLE_CASE ([GitHub #48](#48))
- Modify integer and float handling.
  - Fixed a bug in the conversion between integer and float.
  - Intuitive handling of integer and float.
  - Allow exponential notation for float.
  • Loading branch information
mithrandie committed May 3, 2022
2 parents c1aa087 + d3ffda0 commit ec18794
Show file tree
Hide file tree
Showing 49 changed files with 2,054 additions and 1,754 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: go

go:
- 1.x
- 1.16.x
- 1.17.x
- 1.18.x

env:
- GO111MODULE=on
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## Version 1.17.0

Released on May 3, 2022

- Support column name wildcard for tables. ([GitHub #68](https://github.com/mithrandie/csvq/issues/68))
- Add a built-in function.
- TITLE_CASE ([GitHub #48](https://github.com/mithrandie/csvq/issues/48))
- Modify integer and float handling.
- Fixed a bug in the conversion between integer and float.
- Intuitive handling of integer and float.
- Allow exponential notation for float.

## Version 1.16.0

Released on Feb 26, 2022
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ In the multiple operations, you can use variables, cursors, temporary tables, an
* UTF-16
* Shift_JIS

> JSON Format supports only UTF-8.
> JSON and JSON Lines formats support only UTF-8.
## Reference Manual

Expand All @@ -55,7 +55,7 @@ In the multiple operations, you can use variables, cursors, temporary tables, an

#### Requirements

Go 1.16 or later (cf. [Getting Started - The Go Programming Language](https://golang.org/doc/install))
Go 1.17 or later (cf. [Getting Started - The Go Programming Language](https://golang.org/doc/install))

#### Build command

Expand Down
14 changes: 7 additions & 7 deletions docs/_posts/2006-01-02-aggregate-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ _expr_
: [value]({{ '/reference/value.html' | relative_url }})

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

Returns the sum of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -114,7 +114,7 @@ _expr_
: [value]({{ '/reference/value.html' | relative_url }})

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

Returns the average of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -130,7 +130,7 @@ _expr_
: [value]({{ '/reference/value.html' | relative_url }})

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

Returns the sample standard deviation of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -146,7 +146,7 @@ _expr_
: [value]({{ '/reference/value.html' | relative_url }})

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

Returns the population standard deviation of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -162,7 +162,7 @@ _expr_
: [value]({{ '/reference/value.html' | relative_url }})

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

Returns the sample variance of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -179,7 +179,7 @@ _expr_
: [value]({{ '/reference/value.html' | relative_url }})

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

Returns the population variance of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -196,7 +196,7 @@ _expr_
: [value]({{ '/reference/value.html' | relative_url }})

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

Returns the median of float or datetime values of _expr_.
If all values are null, then returns a null.
Expand Down
24 changes: 15 additions & 9 deletions docs/_posts/2006-01-02-analytic-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ _order_by_clause_
: [Order By Clause]({{ '/reference/select-query.html#order_by_clause' | relative_url }})

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

Returns the value in a previous row.
If _IGNORE NULLS_ keywords are specified, then rows that _expr_ values are null will be skipped.
Expand Down Expand Up @@ -331,7 +331,7 @@ _order_by_clause_
: [Order By Clause]({{ '/reference/select-query.html#order_by_clause' | relative_url }})

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

Returns the value in a following row.
If _IGNORE NULLS_ keywords are specified, then rows that _expr_ values are null will be skipped.
Expand Down Expand Up @@ -422,7 +422,7 @@ _partition_clause_
: [Partition Clause](#syntax)

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

Returns the sum of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -442,7 +442,7 @@ _partition_clause_
: [Partition Clause](#syntax)

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

Returns the average of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -462,7 +462,7 @@ _partition_clause_
: [Partition Clause](#syntax)

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

Returns the sample standard deviation of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -482,7 +482,7 @@ _partition_clause_
: [Partition Clause](#syntax)

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

Returns the population standard deviation of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -502,7 +502,7 @@ _partition_clause_
: [Partition Clause](#syntax)

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

Returns the sample variance of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -522,7 +522,7 @@ _partition_clause_
: [Partition Clause](#syntax)

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

Returns the population variance of float values of _expr_.
If all values are null, then returns a null.
Expand All @@ -542,7 +542,7 @@ _partition_clause_
: [Partition Clause](#syntax)

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

Returns the median of float or datetime values of _expr_.
If all values are null, then returns a null.
Expand Down Expand Up @@ -570,6 +570,9 @@ _partition_clause_
_order_by_clause_
: [Order By Clause]({{ '/reference/select-query.html#order_by_clause' | relative_url }})

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

Returns the string result with the concatenated non-null values of _expr_.
If all values are null, then returns a null.

Expand All @@ -593,4 +596,7 @@ _partition_clause_
_order_by_clause_
: [Order By Clause]({{ '/reference/select-query.html#order_by_clause' | relative_url }})

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

Returns the string formatted in JSON array of _expr_.
2 changes: 1 addition & 1 deletion docs/_posts/2006-01-02-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ category: reference

### Requirements

Go 1.16 or later (cf. [Getting Started - The Go Programming Language](https://golang.org/doc/install))
Go 1.17 or later (cf. [Getting Started - The Go Programming Language](https://golang.org/doc/install))

### Build command

Expand Down
Loading

0 comments on commit ec18794

Please sign in to comment.