You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/30_unexpected-behaviour.yaml
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,12 @@ body:
15
15
- type: textarea
16
16
attributes:
17
17
label: Describe the unexpected behaviour
18
-
description: A clear and concise description of what works not as it is supposed to.
18
+
description: A clear and concise description of what doesn't work as it is supposed to.
19
+
validations:
20
+
required: true
21
+
- type: textarea
22
+
attributes:
23
+
label: Which ClickHouse versions are affected?
19
24
validations:
20
25
required: true
21
26
- type: textarea
@@ -26,7 +31,7 @@ body:
26
31
* Which interface to use, if matters
27
32
* Non-default settings, if any
28
33
* `CREATE TABLE` statements for all tables involved
29
-
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
34
+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/c81bec37a58757be1e2b1ac6f20a62b3f14a31f1/programs/obfuscator/Obfuscator.cpp#L55-L95) if necessary
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/35_incomplete_implementation.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ body:
26
26
* Which interface to use, if matters
27
27
* Non-default settings, if any
28
28
* `CREATE TABLE` statements for all tables involved
29
-
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
29
+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/c81bec37a58757be1e2b1ac6f20a62b3f14a31f1/programs/obfuscator/Obfuscator.cpp#L55-L95) if necessary
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/45_usability-issue.yaml
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
name: Usability issue
1
+
name: Usability improvement request
2
2
description: Report something can be made more convenient to use
3
3
labels: ["usability"]
4
4
body:
@@ -14,28 +14,26 @@ body:
14
14
required: false
15
15
- type: textarea
16
16
attributes:
17
-
label: Describe the unexpected behaviour
18
-
description: A clear and concise description of what works not as it is supposed to.
17
+
label: Describe the improvement
18
+
description: A clear and concise description of what you want to happen
19
+
validations:
20
+
required: true
21
+
- type: textarea
22
+
attributes:
23
+
label: Which ClickHouse versions are affected?
19
24
validations:
20
25
required: true
21
26
- type: textarea
22
27
attributes:
23
28
label: How to reproduce
24
29
description: |
25
-
* Which ClickHouse server version to use
26
30
* Which interface to use, if matters
27
31
* Non-default settings, if any
28
32
* `CREATE TABLE` statements for all tables involved
29
-
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
33
+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/c81bec37a58757be1e2b1ac6f20a62b3f14a31f1/programs/obfuscator/Obfuscator.cpp#L55-L95) if necessary
30
34
* Queries to run that lead to unexpected result
31
35
validations:
32
36
required: true
33
-
- type: textarea
34
-
attributes:
35
-
label: Expected behavior
36
-
description: A clear and concise description of what you expected to happen.
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/50_build-issue.yaml
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,33 +12,39 @@ body:
12
12
description: Put your company name or project description here.
13
13
validations:
14
14
required: false
15
+
- type: textarea
16
+
attributes:
17
+
label: Describe the problem
18
+
description: A clear and concise description of what doesn't work as it is supposed to.
19
+
validations:
20
+
required: true
15
21
- type: textarea
16
22
attributes:
17
23
label: Operating system
18
24
description: OS kind or distribution, specific version/release, non-standard kernel if any. If you are trying to build inside virtual machine, please mention it too.
19
25
validations:
20
-
required: true
26
+
required: false
21
27
- type: textarea
22
28
attributes:
23
29
label: CMake version
24
30
description: The output of `cmake --version`.
25
31
validations:
26
-
required: true
32
+
required: false
27
33
- type: textarea
28
34
attributes:
29
35
label: Ninja version
30
36
description: The output of `ninja --version`.
31
37
validations:
32
-
required: true
38
+
required: false
33
39
- type: textarea
34
40
attributes:
35
41
label: Compiler name and version
36
42
description: We recommend to use clang. The version can be obtained via `clang --version`.
37
43
validations:
38
-
required: true
44
+
required: false
39
45
- type: textarea
40
46
attributes:
41
-
label: Full cmake and/or ninja output
42
-
description: Please include everything!
47
+
label: Full cmake and/or ninja output with the error
48
+
description: Please include everything (use https://pastila.nl/ for large output)!
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/70_performance-issue.yaml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,19 @@ body:
18
18
description: What exactly works slower than expected?
19
19
validations:
20
20
required: true
21
+
- type: textarea
22
+
attributes:
23
+
label: Which ClickHouse versions are affected?
24
+
validations:
25
+
required: true
21
26
- type: textarea
22
27
attributes:
23
28
label: How to reproduce
24
29
description: |
25
-
* Which ClickHouse server version to use
26
30
* Which interface to use, if matters
27
31
* Non-default settings, if any
28
32
* `CREATE TABLE` statements for all tables involved
29
-
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
33
+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/c81bec37a58757be1e2b1ac6f20a62b3f14a31f1/programs/obfuscator/Obfuscator.cpp#L55-L95) if necessary
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/80_backward-compatibility.yaml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,15 +18,19 @@ body:
18
18
description: A clear and concise description of what works not as it is supposed to.
19
19
validations:
20
20
required: true
21
+
- type: textarea
22
+
attributes:
23
+
label: Which ClickHouse versions are affected?
24
+
validations:
25
+
required: true
21
26
- type: textarea
22
27
attributes:
23
28
label: How to reproduce
24
29
description: |
25
-
* Which ClickHouse server version to use
26
30
* Which interface to use, if matters
27
31
* Non-default settings, if any
28
32
* `CREATE TABLE` statements for all tables involved
29
-
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
33
+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/c81bec37a58757be1e2b1ac6f20a62b3f14a31f1/programs/obfuscator/Obfuscator.cpp#L55-L95) if necessary
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/85_bug-report.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ body:
52
52
* Which interface to use, if matters
53
53
* Non-default settings, if any
54
54
* `CREATE TABLE` statements for all tables involved
55
-
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/master/programs/obfuscator/Obfuscator.cpp#L42-L80) if necessary
55
+
* Sample data for all these tables, use [clickhouse-obfuscator](https://github.com/ClickHouse/ClickHouse/blob/c81bec37a58757be1e2b1ac6f20a62b3f14a31f1/programs/obfuscator/Obfuscator.cpp#L55-L95) if necessary
Copy file name to clipboardExpand all lines: docs/en/development/continuous-integration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ mkdir build_tidy
143
143
Runs [stateless functional tests](tests.md#functional-tests) for ClickHouse binaries built in various configurations -- release, debug, with sanitizers, etc.
144
144
Look at the report to see which tests fail, then reproduce the failure locally as described [here](/development/tests#functional-tests).
145
145
Note that you have to use the correct build configuration to reproduce -- a test might fail under AddressSanitizer but pass in Debug.
146
-
Download the binary from [CI build checks page](/install#install-a-ci-generated-binary), or build it locally.
146
+
Download the binary from [CI build checks page](/install/advanced), or build it locally.
Copy file name to clipboardExpand all lines: docs/en/engines/table-engines/mergetree-family/invertedindexes.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,28 +54,34 @@ CREATE TABLE tab
54
54
(
55
55
`key` UInt64,
56
56
`str` String,
57
-
INDEX inv_idx(str) TYPE gin(0) GRANULARITY 1
57
+
INDEX inv_idx(str) TYPE gin(tokenizer ='default|ngram|noop' [, ngram_size = N] [, max_rows_per_postings_list = M]) GRANULARITY 1
58
58
)
59
59
ENGINE = MergeTree
60
60
ORDER BY key
61
61
```
62
62
63
-
where `N` specifies the tokenizer:
63
+
where `tokenizer` specifies the tokenizer:
64
64
65
-
-`gin(0)` (or shorter: `gin()`) set the tokenizer to "tokens", i.e. split strings along spaces,
66
-
-`gin(N)` with `N` between 2 and 8 sets the tokenizer to "ngrams(N)"
65
+
-`default` set the tokenizer to "tokens('default')", i.e. split strings along non-alphanumeric characters.
66
+
-`ngram` set the tokenizer to "tokens('ngram')". i.e. splits strings to equal size terms.
67
+
-`noop` set the tokenizer to "tokens('noop')", i.e. every value itself is a term.
67
68
68
-
The maximum rows per postings list can be specified as the second parameter. This parameter can be used to control postings list sizes to avoid generating huge postings list files. The following variants exist:
69
+
The ngram size can be specified via the `ngram_size` parameter. This is an optional parameter. The following variants exist:
69
70
70
-
-`gin(ngrams, max_rows_per_postings_list)`: Use given max_rows_per_postings_list (assuming it is not 0)
71
-
-`gin(ngrams, 0)`: No limitation of maximum rows per postings list
72
-
-`gin(ngrams)`: Use a default maximum rows which is 64K.
71
+
-`ngram_size = N`: with `N` between 2 and 8 sets the tokenizer to "tokens('ngram', N)".
72
+
- If not specified: Use a default ngram size which is 3.
73
+
74
+
The maximum rows per postings list can be specified via an optional `max_rows_per_postings_list`. This parameter can be used to control postings list sizes to avoid generating huge postings list files. The following variants exist:
75
+
76
+
-`max_rows_per_postings_list = 0`: No limitation of maximum rows per postings list.
77
+
-`max_rows_per_postings_list = M`: with `M` should be at least 8192.
78
+
- If not specified: Use a default maximum rows which is 64K.
73
79
74
80
Being a type of skipping index, full-text indexes can be dropped or added to a column after table creation:
75
81
76
82
```sql
77
83
ALTERTABLE tab DROP INDEX inv_idx;
78
-
ALTERTABLE tab ADD INDEX inv_idx(s) TYPE gin(2);
84
+
ALTERTABLE tab ADD INDEX inv_idx(s) TYPE gin(tokenizer ='default');
79
85
```
80
86
81
87
To use the index, no special functions or syntax are required. Typical string search predicates automatically leverage the index. As
0 commit comments