Skip to content

Commit

Permalink
Prepare 0.0.14, bump CH version to 23.2 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
slvrtrn authored Mar 22, 2023
1 parent 8d444c7 commit b479a17
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .docker/clickhouse/single_node_tls/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM clickhouse/clickhouse-server:23.1-alpine
FROM clickhouse/clickhouse-server:23.2-alpine
COPY .docker/clickhouse/single_node_tls/certificates /etc/clickhouse-server/certs
RUN chown clickhouse:clickhouse -R /etc/clickhouse-server/certs \
&& chmod 600 /etc/clickhouse-server/certs/* \
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.0.14

### New features
* Added support for `JSONStrings`, `JSONCompact`, `JSONCompactStrings`, `JSONColumnsWithMetadata` formats (@andrewzolotukhin).

## 0.0.13

### New features
Expand Down
10 changes: 5 additions & 5 deletions __tests__/unit/encode_values.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { encodeValues } from '../../src/client'
import type { DataFormat, InputJSON, InputJSONObjectEachRow } from '../../src'

describe('encodeValues', () => {
const rawStreamFormats = [
const rawFormats = [
'CSV',
'CSVWithNames',
'CSVWithNamesAndTypes',
Expand All @@ -15,7 +15,7 @@ describe('encodeValues', () => {
'CustomSeparatedWithNames',
'CustomSeparatedWithNamesAndTypes',
]
const jsonStreamFormats = [
const jsonFormats = [
'JSON',
'JSONStrings',
'JSONCompact',
Expand All @@ -35,14 +35,14 @@ describe('encodeValues', () => {
const values = Stream.Readable.from('foo,bar\n', {
objectMode: false,
})
rawStreamFormats.forEach((format) => {
rawFormats.forEach((format) => {
// should be exactly the same object (no duplicate instances)
expect(encodeValues(values, format as DataFormat)).toEqual(values)
})
})

it('should encode JSON streams per line', async () => {
for (const format of jsonStreamFormats) {
for (const format of jsonFormats) {
const values = Stream.Readable.from(['foo', 'bar'], {
objectMode: true,
})
Expand All @@ -56,7 +56,7 @@ describe('encodeValues', () => {
})

it('should encode JSON arrays', async () => {
for (const format of jsonStreamFormats) {
for (const format of jsonFormats) {
const values = ['foo', 'bar']
const result = encodeValues(values, format as DataFormat)
let encoded = ''
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '2.3'

services:
clickhouse1:
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-23.1-alpine}'
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-23.2-alpine}'
ulimits:
nofile:
soft: 262144
Expand All @@ -19,7 +19,7 @@ services:
- './.docker/clickhouse/users.xml:/etc/clickhouse-server/users.xml'

clickhouse2:
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-23.1-alpine}'
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-23.2-alpine}'
ulimits:
nofile:
soft: 262144
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.8'
services:
clickhouse:
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-23.1-alpine}'
image: 'clickhouse/clickhouse-server:${CLICKHOUSE_VERSION-23.2-alpine}'
container_name: 'clickhouse-js-clickhouse-server'
ports:
- '8123:8123'
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '0.0.13'
export default '0.0.14'

0 comments on commit b479a17

Please sign in to comment.