Skip to content

Commit 83041f7

Browse files
authored
Bump format version from 0.5 to 0.6 (#3338)
Changes the serialization version from 0.5 to 0.6 and cleans up duplicate backward compatibility test files for older versions.
1 parent e844eea commit 83041f7

File tree

122 files changed

+326
-1095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+326
-1095
lines changed

.github/workflows/ui-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
CI=false yarn --cwd quickwit-ui build
2727
cargo build --features=postgres
2828
mkdir qwdata
29-
cargo run --features=postgres -- run --service searcher --service metastore --config ../config/quickwit.yaml &
29+
# Workaround for possible rust regression - https://github.com/quickwit-oss/quickwit/issues/3346
30+
target/debug/quickwit run --service searcher --service metastore --config ../config/quickwit.yaml &
3031
yarn --cwd quickwit-ui cypress run
3132
- name: Lint
3233
command: yarn --cwd quickwit-ui lint

config/quickwit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#
1010
# Config file format version.
1111
#
12-
version: 0.5
12+
version: 0.6
1313
#
1414
# Node ID. Must be unique within a cluster. If not set, a random node ID is generated on each startup.
1515
#

config/tutorials/gh-archive/index-config-for-clickhouse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Index config file for gh-archive dataset.
33
#
4-
version: 0.5
4+
version: 0.6
55

66
index_id: gh-archive
77

config/tutorials/gh-archive/index-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Index config file for gh-archive dataset.
33
#
4-
version: 0.5
4+
version: 0.6
55

66
index_id: gh-archive
77

config/tutorials/gh-archive/kafka-source.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.5
1+
version: 0.6
22
source_id: kafka-source
33
source_type: kafka
44
params:

config/tutorials/gh-archive/kinesis-source.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.5
1+
version: 0.6
22
source_id: kinesis-source
33
source_type: kinesis
44
params:

config/tutorials/hdfs-logs/index-config-partitioned.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Index config file for hdfs-logs dataset with partitioning configured.
33
#
44

5-
version: 0.5
5+
version: 0.6
66

77
index_id: hdfs-logs-partitioned
88

config/tutorials/hdfs-logs/index-config-retention-policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Index config file for hdfs-logs dataset with a retention policy configured.
33
#
44

5-
version: 0.5
5+
version: 0.6
66

77
index_id: hdfs-logs-retention-policy
88

config/tutorials/hdfs-logs/index-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Index config file for hdfs-logs dataset.
33
#
44

5-
version: 0.5
5+
version: 0.6
66

77
index_id: hdfs-logs
88

config/tutorials/hdfs-logs/searcher-1.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.5
1+
version: 0.6
22
node_id: searcher-1
33
listen_address: 127.0.0.1
44
rest_listen_port: 7280

config/tutorials/hdfs-logs/searcher-2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.5
1+
version: 0.6
22
node_id: searcher-2
33
listen_address: 127.0.0.1
44
rest_listen_port: 7290

config/tutorials/hdfs-logs/searcher-3.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.5
1+
version: 0.6
22
node_id: searcher-3
33
listen_address: 127.0.0.1
44
rest_listen_port: 7300

config/tutorials/otel-logs/index-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Link: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md
44
#
55

6-
version: 0.5
6+
version: 0.6
77

88
index_id: otel-log-v0
99

config/tutorials/otel-trace/index-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Link: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md
44
#
55

6-
version: 0.5
6+
version: 0.6
77

88
index_id: otel-trace-v0
99

config/tutorials/stackoverflow/index-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# Index config file for stackoverflow dataset.
33
#
4-
version: 0.5
4+
version: 0.6
55

66
index_id: stackoverflow
77

config/tutorials/stackoverflow/pulsar-source.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 0.5
1+
version: 0.6
22
source_id: pulsar-source
33
source_type: pulsar
44
params:

config/tutorials/vector-otel-logs/index-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Link: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md
44
#
55

6-
version: 0.5
6+
version: 0.6
77

88
index_id: vector-otel-logs
99

config/tutorials/wikipedia/index-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Index config file for wikipedia dataset.
33
#
44

5-
version: 0.5
5+
version: 0.6
66

77
index_id: wikipedia
88

docs/configuration/index-config.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The index configuration format is YAML. When a key is absent from the configurat
2020
Here is a complete example suited for the HDFS logs dataset:
2121

2222
```yaml
23-
version: 0.5 # File format version.
23+
version: 0.6 # File format version.
2424

2525
index_id: "hdfs"
2626

@@ -387,7 +387,7 @@ The configuration of `dynamic` mode can be set via the `dynamic_mapping` paramet
387387
`dynamic_mapping` offers the same configuration options as when configuring a `json` field. It defaults to:
388388

389389
```yaml
390-
version: 0.5
390+
version: 0.6
391391
index_id: my-dynamic-index
392392
doc_mapping:
393393
mode: dynamic
@@ -407,7 +407,7 @@ the root of the JSON object.
407407
For instance, in a entirely schemaless settings, a minimal index configuration could be:
408408

409409
```yaml
410-
version: 0.5
410+
version: 0.6
411411
index_id: my-dynamic-index
412412
# note we did not map anything.
413413
doc_mapping:
@@ -492,7 +492,7 @@ Quickwit's default merge policy is the `stable_log` merge policy
492492
with the following parameters:
493493

494494
```yaml
495-
version: 0.5
495+
version: 0.6
496496
index_id: "hdfs"
497497
# ...
498498
indexing_settings:
@@ -520,7 +520,7 @@ of the number of merge operation a split should undergo.
520520

521521

522522
```yaml
523-
version: 0.5
523+
version: 0.6
524524
index_id: "hdfs"
525525
# ...
526526
indexing_settings:
@@ -548,7 +548,7 @@ This setting is not recommended. Merges are necessary to reduce the number of sp
548548
:::
549549

550550
```yaml
551-
version: 0.5
551+
version: 0.6
552552
index_id: "hdfs"
553553
indexing_settings:
554554
merge_policy:
@@ -575,7 +575,7 @@ This section describes search settings for a given index.
575575
This section describes how Quickwit manages data retention. In Quickwit, the retention policy manager drops data on a split basis as opposed to individually dropping documents. Splits are evaluated based on their `time_range` which is derived from the index timestamp field specified in the (`indexing_settings.timestamp_field`) settings. Using this setting, the retention policy will delete a split when `now() - split.time_range.end >= retention_policy.period`
576576

577577
```yaml
578-
version: 0.5
578+
version: 0.6
579579
index_id: hdfs
580580
# ...
581581
retention:

docs/configuration/node-config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export QW_LISTEN_ADDRESS=0.0.0.0
110110

111111
```yaml
112112
# config.yaml
113-
version: 0.5
113+
version: 0.6
114114
cluster_id: quickwit-cluster
115115
node_id: my-unique-node-id
116116
listen_address: ${QW_LISTEN_ADDRESS}
@@ -120,7 +120,7 @@ rest_listen_port: ${QW_LISTEN_PORT:-1111}
120120
Will be interpreted by Quickwit as:
121121
122122
```yaml
123-
version: 0.5
123+
version: 0.6
124124
cluster_id: quickwit-cluster
125125
node_id: my-unique-node-id
126126
listen_address: 0.0.0.0
@@ -135,7 +135,7 @@ by default no origins are allowed.
135135
A wildcard, single origin or multiple origins can be specified as part of the `rest_cors_allow_origins` parameter:
136136

137137
```yaml
138-
version: 0.5
138+
version: 0.6
139139
index_id: hdfs
140140
141141
rest_cors_allow_origins: '*' # Allow all origins

docs/configuration/source-config.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Short max poll interval durations may cause a source to crash when back pressure
7777

7878
```bash
7979
cat << EOF > source-config.yaml
80-
version: 0.5
80+
version: 0.6
8181
source_id: my-kafka-source
8282
source_type: kafka
8383
params:
@@ -119,7 +119,7 @@ If no region is specified, Quickwit will attempt to find one in multiple other l
119119

120120
```bash
121121
cat << EOF > source-config.yaml
122-
version: 0.5
122+
version: 0.6
123123
source_id: my-kinesis-source
124124
source_type: kinesis
125125
params:
@@ -148,7 +148,7 @@ The Pulsar source consumes `topics` using the client library [pulsar-rs](https:/
148148

149149
```bash
150150
cat << EOF > source-config.yaml
151-
version: 0.5
151+
version: 0.6
152152
source_id: my-pulsar-source
153153
source_type: pulsar
154154
params:

docs/distributed-tracing/otel-service.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Below is the doc mapping of the `otel-trace-v0` index:
2727

2828
```yaml
2929
30-
version: 0.5
30+
version: 0.6
3131
3232
index_id: otel-trace-v0
3333

docs/get-started/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ And here is the complete config:
8787
#
8888
# Index config file for stackoverflow dataset.
8989
#
90-
version: 0.5
90+
version: 0.6
9191

9292
index_id: stackoverflow
9393

docs/get-started/tutorials/add-full-text-search-to-your-olap-db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ We don't need to index all fields described above as `title` and `body` are the
5151
The `id` will be helpful for making the JOINs in ClickHouse, `created_at` and `event_type` may also be beneficial for timestamp pruning and filtering.
5252

5353
```yaml title="gh-archive-index-config.yaml"
54-
version: 0.5
54+
version: 0.6
5555
index_id: gh-archive
5656
# By default, the index will be stored in your data directory,
5757
# but you can store it on s3 or on a custom path as follows:

docs/get-started/tutorials/tutorial-hdfs-logs-distributed-search-aws-s3.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Now we can create a Quickwit config file.
5757

5858
```bash
5959
# Create Quickwit config file.
60-
echo "version: 0.5
60+
echo "version: 0.6
6161
node_id: searcher-1
6262
listen_address: 0.0.0.0
6363
metastore_uri: ${S3_PATH}
@@ -70,7 +70,7 @@ default_index_root_uri: ${S3_PATH}
7070
> # config.yaml
7171
> node_id: searcher-1
7272
> listen_address: 0.0.0.0
73-
> version: 0.5
73+
> version: 0.6
7474
> metastore_uri: ${S3_PATH}
7575
> default_index_root_uri: ${S3_PATH}
7676
>```
@@ -95,7 +95,7 @@ used by Quickwit for [splits pruning](../../overview/architecture) at query time
9595
Check out the [index config docs](../../configuration/index-config) for more details.
9696
9797
```yaml title="hdfs_logs_index_config.yaml"
98-
version: 0.5
98+
version: 0.6
9999
100100
index_id: hdfs-logs
101101
@@ -195,7 +195,7 @@ export IP_NODE_1={first-ec2-instance-public-ip}
195195
196196
```bash
197197
# configuration for our second node
198-
echo "version: 0.5
198+
echo "version: 0.6
199199
node_id: searcher-2
200200
metastore_uri: ${S3_PATH}
201201
default_index_root_uri: ${S3_PATH}
@@ -210,7 +210,7 @@ peer_seeds:
210210
211211
```bash
212212
# configuration for our third node
213-
echo "version: 0.5
213+
echo "version: 0.6
214214
node_id: searcher-3
215215
listen_address: 0.0.0.0
216216
peer_seeds:

docs/get-started/tutorials/tutorial-hdfs-logs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The `timestamp_field` and `tag_fields` are used by Quickwit for [splits pruning]
8484
Check out the [index config docs](../../configuration/index-config) for more details.
8585

8686
```yaml title="hdfs-logs-index.yaml"
87-
version: 0.5
87+
version: 0.6
8888

8989
index_id: hdfs-logs
9090

docs/guides/schemaless.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ As a user, you need to precisely define the list of fields to be ingested by Qui
2525
For instance, a reasonable mapping for an application log could be:
2626

2727
```yaml title=my_strict_index.yaml
28-
version: 0.5
28+
version: 0.6
2929

3030
index_id: my_strict_index
3131

@@ -70,7 +70,7 @@ By default, this catch-all configuration indexes and stores all of these fields,
7070
A minimalist, yet perfectly valid and useful index configuration is then:
7171

7272
```yaml title=my_dynamic_index.yaml
73-
version: 0.5
73+
version: 0.6
7474
index_id: my_dynamic_index
7575
doc_mapping:
7676
mode: dynamic
@@ -115,7 +115,7 @@ Each event type comes with its own set of attributes. Declaring our mapping as t
115115
Instead, we can cherry-pick the fields that are common to all of the logs, and rely on dynamic mode to handle the rest.
116116

117117
```yaml title=my_dynamic_index.yaml
118-
version: 0.5
118+
version: 0.6
119119
index_id: my_dynamic_index
120120
doc_mapping:
121121
mode: dynamic
@@ -149,7 +149,7 @@ Execute the following commands to create the index, ingest a few documents and s
149149

150150
```bash
151151
cat << EOF > my_dynamic_index.yaml
152-
version: 0.5
152+
version: 0.6
153153
index_id: my_dynamic_index
154154
doc_mapping:
155155
mode: dynamic
@@ -219,7 +219,7 @@ Quickwit 0.3 introduced a JSON field type to handle this use case.
219219
A good index configuration here could be:
220220

221221
```yaml title=otel_logs.yaml
222-
version: 0.5
222+
version: 0.6
223223
index_id: otel_logs
224224
doc_mapping:
225225
mode: dynamic

docs/ingest-data/ingest-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ First, let's create a schemaless index.
2222
```bash
2323
# Create the index config file.
2424
cat << EOF > stackoverflow-schemaless-config.yaml
25-
version: 0.5
25+
version: 0.6
2626
index_id: stackoverflow-schemaless
2727
doc_mapping:
2828
mode: dynamic

0 commit comments

Comments
 (0)