-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If table has a column with not supported type entire table was skipped. Change. Resolve not supported types as "UnknownType". Kibana renders these fields quite good. There is a new index `type_logs`. Index will be used for type testings. <img width="1719" alt="Screenshot 2024-05-15 at 13 52 58" src="https://github.com/QuesmaOrg/quesma/assets/1474/dad66018-d8c3-402e-a5d2-ebfe81c53cd1"> <img width="1363" alt="Screenshot 2024-05-15 at 14 00 15" src="https://github.com/QuesmaOrg/quesma/assets/1474/b52e1a54-91f5-4243-a551-7307c04eb9ad"> <img width="1715" alt="Screenshot 2024-05-15 at 13 53 24" src="https://github.com/QuesmaOrg/quesma/assets/1474/8d845050-dcaf-4b9d-95ee-5ecdfd604547">
- Loading branch information
Showing
8 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
CREATE TABLE IF NOT EXISTS "type_logs" | ||
( | ||
"attributes_string_key" Array(String), | ||
"attributes_string_value" Array(String), | ||
|
||
"@timestamp" DateTime64 DEFAULT now64(), | ||
|
||
`map_string_string` Map(String, Nullable(String)), | ||
`point` Point, | ||
`ipv4` IPv4, | ||
`ipv6` IPv6, | ||
) | ||
ENGINE = MergeTree | ||
ORDER BY ("@timestamp") | ||
COMMENT 'Table for type testing. Created by clean-clickhouse.' | ||
; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
insert into type_logs(map_string_string, point,ipv4,ipv6) values | ||
({'key1': 'key2', 'key3': 'value3'}, (0,0), '127.0.0.1', '2a02:aa08:e000:3100::2') | ||
({'foo': 'bar'}, (1,1), '10.10.10.10', '2001:44c8:129:2632:33:0:252:2') | ||
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
This directory contains scripts (.sql) to initialize the Clickhouse database on startup. | ||
|
||
Clickhouse doesn't support multiple queries. So one file per query. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
POST http://localhost:8080/type_logs/_search | ||
Content-Type: application/json | ||
|
||
|
||
{ | ||
"_source": false, | ||
"fields": [ | ||
{ | ||
"field": "*", | ||
"include_unmapped": "true" | ||
}, | ||
{ | ||
"field": "@timestamp", | ||
"format": "strict_date_optional_time" | ||
} | ||
], | ||
"highlight": { | ||
|
||
}, | ||
"query": { | ||
"bool": { | ||
"filter": [ | ||
|
||
], | ||
"must": [], | ||
"must_not": [], | ||
"should": [] | ||
} | ||
}, | ||
"runtime_mappings": {}, | ||
"script_fields": {}, | ||
"size": 500, | ||
"sort": [ | ||
{ | ||
"@timestamp": { | ||
"format": "strict_date_optional_time", | ||
"order": "desc", | ||
"unmapped_type": "boolean" | ||
} | ||
}, | ||
{ | ||
"_doc": { | ||
"order": "desc", | ||
"unmapped_type": "boolean" | ||
} | ||
} | ||
], | ||
"stored_fields": [ | ||
"*" | ||
], | ||
"track_total_hits": false, | ||
"version": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters