From bad8903d04cd2e53acfb5c94c73cef09a2615e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Massot?= Date: Tue, 2 Jan 2024 09:12:58 +0100 Subject: [PATCH] Update metastore test data files. --- .../file-backed-index/v0.4.expected.json | 10 +- .../file-backed-index/v0.5.expected.json | 10 +- .../file-backed-index/v0.6.expected.json | 10 +- .../file-backed-index/v0.7.expected.json | 195 ++++++++++++++++++ .../test-data/file-backed-index/v0.7.json | 195 ++++++++++++++++++ .../index-metadata/v0.4.expected.json | 6 +- .../index-metadata/v0.5.expected.json | 6 +- .../index-metadata/v0.6.expected.json | 6 +- .../index-metadata/v0.7.expected.json | 133 ++++++++++++ .../test-data/index-metadata/v0.7.json | 133 ++++++++++++ .../split-metadata/v0.4.expected.json | 2 +- .../split-metadata/v0.5.expected.json | 2 +- .../split-metadata/v0.6.expected.json | 2 +- .../split-metadata/v0.7.expected.json | 29 +++ .../test-data/split-metadata/v0.7.json | 29 +++ 15 files changed, 741 insertions(+), 27 deletions(-) create mode 100644 quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.expected.json create mode 100644 quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.json create mode 100644 quickwit/quickwit-metastore/test-data/index-metadata/v0.7.expected.json create mode 100644 quickwit/quickwit-metastore/test-data/index-metadata/v0.7.json create mode 100644 quickwit/quickwit-metastore/test-data/split-metadata/v0.7.expected.json create mode 100644 quickwit/quickwit-metastore/test-data/split-metadata/v0.7.json diff --git a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.4.expected.json b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.4.expected.json index 91c552514d7..ef8879c5007 100644 --- a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.4.expected.json +++ b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.4.expected.json @@ -111,7 +111,7 @@ "message" ] }, - "version": "0.6" + "version": "0.7" }, "index_uid": "my-index:", "sources": [ @@ -126,10 +126,10 @@ }, "source_id": "kafka-source", "source_type": "kafka", - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" }, "splits": [ { @@ -161,8 +161,8 @@ }, "uncompressed_docs_size_in_bytes": 234234, "update_timestamp": 1789, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.5.expected.json b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.5.expected.json index 239836b57ff..e4107f055b2 100644 --- a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.5.expected.json +++ b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.5.expected.json @@ -111,7 +111,7 @@ "message" ] }, - "version": "0.6" + "version": "0.7" }, "index_uid": "my-index:", "sources": [ @@ -130,10 +130,10 @@ "script": ".message = downcase(string!(.message))", "timezone": "UTC" }, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" }, "splits": [ { @@ -165,8 +165,8 @@ }, "uncompressed_docs_size_in_bytes": 234234, "update_timestamp": 1789, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.6.expected.json b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.6.expected.json index c8a478a3c3e..60c52413e18 100644 --- a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.6.expected.json +++ b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.6.expected.json @@ -118,7 +118,7 @@ "message" ] }, - "version": "0.6" + "version": "0.7" }, "index_uid": "my-index:00000000000000000000000000", "sources": [ @@ -137,10 +137,10 @@ "script": ".message = downcase(string!(.message))", "timezone": "UTC" }, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" }, "shards": { "_ingest-source": { @@ -188,8 +188,8 @@ }, "uncompressed_docs_size_in_bytes": 234234, "update_timestamp": 1789, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.expected.json b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.expected.json new file mode 100644 index 00000000000..60c52413e18 --- /dev/null +++ b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.expected.json @@ -0,0 +1,195 @@ +{ + "delete_tasks": [ + { + "create_timestamp": 0, + "delete_query": { + "index_uid": "my-index:00000000000000000000000000", + "query_ast": "{\"type\":\"bool\",\"must\":[{\"type\":\"full_text\",\"field\":\"body\",\"text\":\"Harry\",\"params\":{\"mode\":{\"type\":\"phrase_fallback_to_intersection\"}}},{\"type\":\"full_text\",\"field\":\"body\",\"text\":\"Potter\",\"params\":{\"mode\":{\"type\":\"phrase_fallback_to_intersection\"}}}]}" + }, + "opstamp": 10 + } + ], + "index": { + "checkpoint": { + "kafka-source": { + "00000000000000000000": "00000000000000000042" + } + }, + "create_timestamp": 1789, + "index_config": { + "doc_mapping": { + "dynamic_mapping": { + "expand_dots": true, + "fast": { + "normalizer": "raw" + }, + "indexed": true, + "record": "basic", + "stored": true, + "tokenizer": "raw" + }, + "field_mappings": [ + { + "coerce": true, + "fast": true, + "indexed": true, + "name": "tenant_id", + "output_format": "number", + "stored": true, + "type": "u64" + }, + { + "fast": true, + "fast_precision": "seconds", + "indexed": true, + "input_formats": [ + "rfc3339", + "unix_timestamp" + ], + "name": "timestamp", + "output_format": "rfc3339", + "stored": true, + "type": "datetime" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "log_level", + "record": "basic", + "stored": true, + "tokenizer": "raw", + "type": "text" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "message", + "record": "position", + "stored": true, + "tokenizer": "default", + "type": "text" + } + ], + "index_field_presence": true, + "max_num_partitions": 100, + "mode": "dynamic", + "partition_key": "tenant_id", + "store_source": true, + "tag_fields": [ + "log_level", + "tenant_id" + ], + "timestamp_field": "timestamp", + "tokenizers": [ + { + "filters": [], + "name": "custom_tokenizer", + "pattern": "[^\\p{L}\\p{N}]+", + "type": "regex" + } + ] + }, + "index_id": "my-index", + "index_uri": "s3://quickwit-indexes/my-index", + "indexing_settings": { + "commit_timeout_secs": 301, + "docstore_blocksize": 1000000, + "docstore_compression_level": 8, + "merge_policy": { + "maturation_period": "2days", + "max_merge_factor": 11, + "merge_factor": 9, + "min_level_num_docs": 100000, + "type": "stable_log" + }, + "resources": { + "heap_size": "50.0 MB" + }, + "split_num_docs_target": 10000001 + }, + "retention": { + "period": "90 days", + "schedule": "daily" + }, + "search_settings": { + "default_search_fields": [ + "message" + ] + }, + "version": "0.7" + }, + "index_uid": "my-index:00000000000000000000000000", + "sources": [ + { + "desired_num_pipelines": 2, + "enabled": true, + "input_format": "json", + "max_num_pipelines_per_indexer": 2, + "params": { + "client_params": {}, + "topic": "kafka-topic" + }, + "source_id": "kafka-source", + "source_type": "kafka", + "transform": { + "script": ".message = downcase(string!(.message))", + "timezone": "UTC" + }, + "version": "0.7" + } + ], + "version": "0.7" + }, + "shards": { + "_ingest-source": { + "next_shard_id": 2, + "shards": [ + { + "follower_id": "follower-ingester", + "index_uid": "my-index:00000000000000000000000000", + "leader_id": "leader-ingester", + "shard_id": 1, + "shard_state": 0, + "source_id": "_ingest-source" + } + ] + } + }, + "splits": [ + { + "create_timestamp": 3, + "delete_opstamp": 10, + "footer_offsets": { + "end": 2000, + "start": 1000 + }, + "index_uid": "my-index:00000000000000000000000000", + "maturity": { + "maturation_period_millis": 4000, + "type": "immature" + }, + "node_id": "node", + "num_docs": 12303, + "num_merge_ops": 3, + "partition_id": 7, + "publish_timestamp": 1789, + "source_id": "source", + "split_id": "split", + "split_state": "Published", + "tags": [ + "234", + "aaa" + ], + "time_range": { + "end": 130198, + "start": 121000 + }, + "uncompressed_docs_size_in_bytes": 234234, + "update_timestamp": 1789, + "version": "0.7" + } + ], + "version": "0.7" +} diff --git a/quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.json b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.json new file mode 100644 index 00000000000..60c52413e18 --- /dev/null +++ b/quickwit/quickwit-metastore/test-data/file-backed-index/v0.7.json @@ -0,0 +1,195 @@ +{ + "delete_tasks": [ + { + "create_timestamp": 0, + "delete_query": { + "index_uid": "my-index:00000000000000000000000000", + "query_ast": "{\"type\":\"bool\",\"must\":[{\"type\":\"full_text\",\"field\":\"body\",\"text\":\"Harry\",\"params\":{\"mode\":{\"type\":\"phrase_fallback_to_intersection\"}}},{\"type\":\"full_text\",\"field\":\"body\",\"text\":\"Potter\",\"params\":{\"mode\":{\"type\":\"phrase_fallback_to_intersection\"}}}]}" + }, + "opstamp": 10 + } + ], + "index": { + "checkpoint": { + "kafka-source": { + "00000000000000000000": "00000000000000000042" + } + }, + "create_timestamp": 1789, + "index_config": { + "doc_mapping": { + "dynamic_mapping": { + "expand_dots": true, + "fast": { + "normalizer": "raw" + }, + "indexed": true, + "record": "basic", + "stored": true, + "tokenizer": "raw" + }, + "field_mappings": [ + { + "coerce": true, + "fast": true, + "indexed": true, + "name": "tenant_id", + "output_format": "number", + "stored": true, + "type": "u64" + }, + { + "fast": true, + "fast_precision": "seconds", + "indexed": true, + "input_formats": [ + "rfc3339", + "unix_timestamp" + ], + "name": "timestamp", + "output_format": "rfc3339", + "stored": true, + "type": "datetime" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "log_level", + "record": "basic", + "stored": true, + "tokenizer": "raw", + "type": "text" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "message", + "record": "position", + "stored": true, + "tokenizer": "default", + "type": "text" + } + ], + "index_field_presence": true, + "max_num_partitions": 100, + "mode": "dynamic", + "partition_key": "tenant_id", + "store_source": true, + "tag_fields": [ + "log_level", + "tenant_id" + ], + "timestamp_field": "timestamp", + "tokenizers": [ + { + "filters": [], + "name": "custom_tokenizer", + "pattern": "[^\\p{L}\\p{N}]+", + "type": "regex" + } + ] + }, + "index_id": "my-index", + "index_uri": "s3://quickwit-indexes/my-index", + "indexing_settings": { + "commit_timeout_secs": 301, + "docstore_blocksize": 1000000, + "docstore_compression_level": 8, + "merge_policy": { + "maturation_period": "2days", + "max_merge_factor": 11, + "merge_factor": 9, + "min_level_num_docs": 100000, + "type": "stable_log" + }, + "resources": { + "heap_size": "50.0 MB" + }, + "split_num_docs_target": 10000001 + }, + "retention": { + "period": "90 days", + "schedule": "daily" + }, + "search_settings": { + "default_search_fields": [ + "message" + ] + }, + "version": "0.7" + }, + "index_uid": "my-index:00000000000000000000000000", + "sources": [ + { + "desired_num_pipelines": 2, + "enabled": true, + "input_format": "json", + "max_num_pipelines_per_indexer": 2, + "params": { + "client_params": {}, + "topic": "kafka-topic" + }, + "source_id": "kafka-source", + "source_type": "kafka", + "transform": { + "script": ".message = downcase(string!(.message))", + "timezone": "UTC" + }, + "version": "0.7" + } + ], + "version": "0.7" + }, + "shards": { + "_ingest-source": { + "next_shard_id": 2, + "shards": [ + { + "follower_id": "follower-ingester", + "index_uid": "my-index:00000000000000000000000000", + "leader_id": "leader-ingester", + "shard_id": 1, + "shard_state": 0, + "source_id": "_ingest-source" + } + ] + } + }, + "splits": [ + { + "create_timestamp": 3, + "delete_opstamp": 10, + "footer_offsets": { + "end": 2000, + "start": 1000 + }, + "index_uid": "my-index:00000000000000000000000000", + "maturity": { + "maturation_period_millis": 4000, + "type": "immature" + }, + "node_id": "node", + "num_docs": 12303, + "num_merge_ops": 3, + "partition_id": 7, + "publish_timestamp": 1789, + "source_id": "source", + "split_id": "split", + "split_state": "Published", + "tags": [ + "234", + "aaa" + ], + "time_range": { + "end": 130198, + "start": 121000 + }, + "uncompressed_docs_size_in_bytes": 234234, + "update_timestamp": 1789, + "version": "0.7" + } + ], + "version": "0.7" +} diff --git a/quickwit/quickwit-metastore/test-data/index-metadata/v0.4.expected.json b/quickwit/quickwit-metastore/test-data/index-metadata/v0.4.expected.json index 1962205d42d..8be61900d1f 100644 --- a/quickwit/quickwit-metastore/test-data/index-metadata/v0.4.expected.json +++ b/quickwit/quickwit-metastore/test-data/index-metadata/v0.4.expected.json @@ -100,7 +100,7 @@ "message" ] }, - "version": "0.6" + "version": "0.7" }, "index_uid": "my-index:", "sources": [ @@ -119,8 +119,8 @@ "script": ".message = downcase(string!(.message))", "timezone": "UTC" }, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/index-metadata/v0.5.expected.json b/quickwit/quickwit-metastore/test-data/index-metadata/v0.5.expected.json index 1962205d42d..8be61900d1f 100644 --- a/quickwit/quickwit-metastore/test-data/index-metadata/v0.5.expected.json +++ b/quickwit/quickwit-metastore/test-data/index-metadata/v0.5.expected.json @@ -100,7 +100,7 @@ "message" ] }, - "version": "0.6" + "version": "0.7" }, "index_uid": "my-index:", "sources": [ @@ -119,8 +119,8 @@ "script": ".message = downcase(string!(.message))", "timezone": "UTC" }, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/index-metadata/v0.6.expected.json b/quickwit/quickwit-metastore/test-data/index-metadata/v0.6.expected.json index f6522a1ba38..0920f2d776f 100644 --- a/quickwit/quickwit-metastore/test-data/index-metadata/v0.6.expected.json +++ b/quickwit/quickwit-metastore/test-data/index-metadata/v0.6.expected.json @@ -107,7 +107,7 @@ "message" ] }, - "version": "0.6" + "version": "0.7" }, "index_uid": "my-index:00000000000000000000000000", "sources": [ @@ -126,8 +126,8 @@ "script": ".message = downcase(string!(.message))", "timezone": "UTC" }, - "version": "0.6" + "version": "0.7" } ], - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/index-metadata/v0.7.expected.json b/quickwit/quickwit-metastore/test-data/index-metadata/v0.7.expected.json new file mode 100644 index 00000000000..0920f2d776f --- /dev/null +++ b/quickwit/quickwit-metastore/test-data/index-metadata/v0.7.expected.json @@ -0,0 +1,133 @@ +{ + "checkpoint": { + "kafka-source": { + "00000000000000000000": "00000000000000000042" + } + }, + "create_timestamp": 1789, + "index_config": { + "doc_mapping": { + "dynamic_mapping": { + "expand_dots": true, + "fast": { + "normalizer": "raw" + }, + "indexed": true, + "record": "basic", + "stored": true, + "tokenizer": "raw" + }, + "field_mappings": [ + { + "coerce": true, + "fast": true, + "indexed": true, + "name": "tenant_id", + "output_format": "number", + "stored": true, + "type": "u64" + }, + { + "fast": true, + "fast_precision": "seconds", + "indexed": true, + "input_formats": [ + "rfc3339", + "unix_timestamp" + ], + "name": "timestamp", + "output_format": "rfc3339", + "stored": true, + "type": "datetime" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "log_level", + "record": "basic", + "stored": true, + "tokenizer": "raw", + "type": "text" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "message", + "record": "position", + "stored": true, + "tokenizer": "default", + "type": "text" + } + ], + "index_field_presence": true, + "max_num_partitions": 100, + "mode": "dynamic", + "partition_key": "tenant_id", + "store_source": true, + "tag_fields": [ + "log_level", + "tenant_id" + ], + "timestamp_field": "timestamp", + "tokenizers": [ + { + "filters": [], + "name": "custom_tokenizer", + "pattern": "[^\\p{L}\\p{N}]+", + "type": "regex" + } + ] + }, + "index_id": "my-index", + "index_uri": "s3://quickwit-indexes/my-index", + "indexing_settings": { + "commit_timeout_secs": 301, + "docstore_blocksize": 1000000, + "docstore_compression_level": 8, + "merge_policy": { + "maturation_period": "2days", + "max_merge_factor": 11, + "merge_factor": 9, + "min_level_num_docs": 100000, + "type": "stable_log" + }, + "resources": { + "heap_size": "50.0 MB" + }, + "split_num_docs_target": 10000001 + }, + "retention": { + "period": "90 days", + "schedule": "daily" + }, + "search_settings": { + "default_search_fields": [ + "message" + ] + }, + "version": "0.7" + }, + "index_uid": "my-index:00000000000000000000000000", + "sources": [ + { + "desired_num_pipelines": 2, + "enabled": true, + "input_format": "json", + "max_num_pipelines_per_indexer": 2, + "params": { + "client_params": {}, + "topic": "kafka-topic" + }, + "source_id": "kafka-source", + "source_type": "kafka", + "transform": { + "script": ".message = downcase(string!(.message))", + "timezone": "UTC" + }, + "version": "0.7" + } + ], + "version": "0.7" +} diff --git a/quickwit/quickwit-metastore/test-data/index-metadata/v0.7.json b/quickwit/quickwit-metastore/test-data/index-metadata/v0.7.json new file mode 100644 index 00000000000..0920f2d776f --- /dev/null +++ b/quickwit/quickwit-metastore/test-data/index-metadata/v0.7.json @@ -0,0 +1,133 @@ +{ + "checkpoint": { + "kafka-source": { + "00000000000000000000": "00000000000000000042" + } + }, + "create_timestamp": 1789, + "index_config": { + "doc_mapping": { + "dynamic_mapping": { + "expand_dots": true, + "fast": { + "normalizer": "raw" + }, + "indexed": true, + "record": "basic", + "stored": true, + "tokenizer": "raw" + }, + "field_mappings": [ + { + "coerce": true, + "fast": true, + "indexed": true, + "name": "tenant_id", + "output_format": "number", + "stored": true, + "type": "u64" + }, + { + "fast": true, + "fast_precision": "seconds", + "indexed": true, + "input_formats": [ + "rfc3339", + "unix_timestamp" + ], + "name": "timestamp", + "output_format": "rfc3339", + "stored": true, + "type": "datetime" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "log_level", + "record": "basic", + "stored": true, + "tokenizer": "raw", + "type": "text" + }, + { + "fast": false, + "fieldnorms": false, + "indexed": true, + "name": "message", + "record": "position", + "stored": true, + "tokenizer": "default", + "type": "text" + } + ], + "index_field_presence": true, + "max_num_partitions": 100, + "mode": "dynamic", + "partition_key": "tenant_id", + "store_source": true, + "tag_fields": [ + "log_level", + "tenant_id" + ], + "timestamp_field": "timestamp", + "tokenizers": [ + { + "filters": [], + "name": "custom_tokenizer", + "pattern": "[^\\p{L}\\p{N}]+", + "type": "regex" + } + ] + }, + "index_id": "my-index", + "index_uri": "s3://quickwit-indexes/my-index", + "indexing_settings": { + "commit_timeout_secs": 301, + "docstore_blocksize": 1000000, + "docstore_compression_level": 8, + "merge_policy": { + "maturation_period": "2days", + "max_merge_factor": 11, + "merge_factor": 9, + "min_level_num_docs": 100000, + "type": "stable_log" + }, + "resources": { + "heap_size": "50.0 MB" + }, + "split_num_docs_target": 10000001 + }, + "retention": { + "period": "90 days", + "schedule": "daily" + }, + "search_settings": { + "default_search_fields": [ + "message" + ] + }, + "version": "0.7" + }, + "index_uid": "my-index:00000000000000000000000000", + "sources": [ + { + "desired_num_pipelines": 2, + "enabled": true, + "input_format": "json", + "max_num_pipelines_per_indexer": 2, + "params": { + "client_params": {}, + "topic": "kafka-topic" + }, + "source_id": "kafka-source", + "source_type": "kafka", + "transform": { + "script": ".message = downcase(string!(.message))", + "timezone": "UTC" + }, + "version": "0.7" + } + ], + "version": "0.7" +} diff --git a/quickwit/quickwit-metastore/test-data/split-metadata/v0.4.expected.json b/quickwit/quickwit-metastore/test-data/split-metadata/v0.4.expected.json index ad772409417..1dbbba0b6c3 100644 --- a/quickwit/quickwit-metastore/test-data/split-metadata/v0.4.expected.json +++ b/quickwit/quickwit-metastore/test-data/split-metadata/v0.4.expected.json @@ -24,5 +24,5 @@ "start": 121000 }, "uncompressed_docs_size_in_bytes": 234234, - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/split-metadata/v0.5.expected.json b/quickwit/quickwit-metastore/test-data/split-metadata/v0.5.expected.json index ad772409417..1dbbba0b6c3 100644 --- a/quickwit/quickwit-metastore/test-data/split-metadata/v0.5.expected.json +++ b/quickwit/quickwit-metastore/test-data/split-metadata/v0.5.expected.json @@ -24,5 +24,5 @@ "start": 121000 }, "uncompressed_docs_size_in_bytes": 234234, - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/split-metadata/v0.6.expected.json b/quickwit/quickwit-metastore/test-data/split-metadata/v0.6.expected.json index 9c1f6311c86..d83ecc012d9 100644 --- a/quickwit/quickwit-metastore/test-data/split-metadata/v0.6.expected.json +++ b/quickwit/quickwit-metastore/test-data/split-metadata/v0.6.expected.json @@ -25,5 +25,5 @@ "start": 121000 }, "uncompressed_docs_size_in_bytes": 234234, - "version": "0.6" + "version": "0.7" } diff --git a/quickwit/quickwit-metastore/test-data/split-metadata/v0.7.expected.json b/quickwit/quickwit-metastore/test-data/split-metadata/v0.7.expected.json new file mode 100644 index 00000000000..d83ecc012d9 --- /dev/null +++ b/quickwit/quickwit-metastore/test-data/split-metadata/v0.7.expected.json @@ -0,0 +1,29 @@ +{ + "create_timestamp": 3, + "delete_opstamp": 10, + "footer_offsets": { + "end": 2000, + "start": 1000 + }, + "index_uid": "my-index:00000000000000000000000000", + "maturity": { + "maturation_period_millis": 4000, + "type": "immature" + }, + "node_id": "node", + "num_docs": 12303, + "num_merge_ops": 3, + "partition_id": 7, + "source_id": "source", + "split_id": "split", + "tags": [ + "234", + "aaa" + ], + "time_range": { + "end": 130198, + "start": 121000 + }, + "uncompressed_docs_size_in_bytes": 234234, + "version": "0.7" +} diff --git a/quickwit/quickwit-metastore/test-data/split-metadata/v0.7.json b/quickwit/quickwit-metastore/test-data/split-metadata/v0.7.json new file mode 100644 index 00000000000..d83ecc012d9 --- /dev/null +++ b/quickwit/quickwit-metastore/test-data/split-metadata/v0.7.json @@ -0,0 +1,29 @@ +{ + "create_timestamp": 3, + "delete_opstamp": 10, + "footer_offsets": { + "end": 2000, + "start": 1000 + }, + "index_uid": "my-index:00000000000000000000000000", + "maturity": { + "maturation_period_millis": 4000, + "type": "immature" + }, + "node_id": "node", + "num_docs": 12303, + "num_merge_ops": 3, + "partition_id": 7, + "source_id": "source", + "split_id": "split", + "tags": [ + "234", + "aaa" + ], + "time_range": { + "end": 130198, + "start": 121000 + }, + "uncompressed_docs_size_in_bytes": 234234, + "version": "0.7" +}