Adding upstream version 1.34.4.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
e393c3af3f
commit
4978089aab
4963 changed files with 677545 additions and 0 deletions
5
plugins/outputs/sql/testdata/clickhouse/enable_stdout_log.xml
vendored
Normal file
5
plugins/outputs/sql/testdata/clickhouse/enable_stdout_log.xml
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
<clickhouse>
|
||||
<logger>
|
||||
<console>1</console>
|
||||
</logger>
|
||||
</clickhouse>
|
36
plugins/outputs/sql/testdata/clickhouse/expected.txt
vendored
Normal file
36
plugins/outputs/sql/testdata/clickhouse/expected.txt
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
2021-05-17 22:04:45 tag1 tag2 1234 2345 1 0 1000000000 3.1415
|
||||
CREATE TABLE foo.metric_one
|
||||
(
|
||||
`timestamp` DateTime,
|
||||
`tag_one` String,
|
||||
`tag_two` String,
|
||||
`int64_one` Int64,
|
||||
`int64_two` Int64,
|
||||
`bool_one` UInt8,
|
||||
`bool_two` UInt8,
|
||||
`uint64_one` UInt64,
|
||||
`float64_one` Float64
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY timestamp
|
||||
SETTINGS index_granularity = 8192
|
||||
2021-05-17 22:04:45 tag3 string1
|
||||
CREATE TABLE foo.metric_two
|
||||
(
|
||||
`timestamp` DateTime,
|
||||
`tag_three` String,
|
||||
`string_one` String
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY timestamp
|
||||
SETTINGS index_granularity = 8192
|
||||
2021-05-17 22:04:45 tag4 string2
|
||||
CREATE TABLE foo.`metric three`
|
||||
(
|
||||
`timestamp` DateTime,
|
||||
`tag four` String,
|
||||
`string two` String
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY timestamp
|
||||
SETTINGS index_granularity = 8192
|
1
plugins/outputs/sql/testdata/clickhouse/initdb/init.sql
vendored
Normal file
1
plugins/outputs/sql/testdata/clickhouse/initdb/init.sql
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
CREATE DATABASE foo;
|
14
plugins/outputs/sql/testdata/mariadb/expected_metric_one.sql
vendored
Normal file
14
plugins/outputs/sql/testdata/mariadb/expected_metric_one.sql
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `metric_one` (
|
||||
`timestamp` timestamp NULL DEFAULT NULL,
|
||||
`tag_one` text DEFAULT NULL,
|
||||
`tag_two` text DEFAULT NULL,
|
||||
`int64_one` int(11) DEFAULT NULL,
|
||||
`int64_two` int(11) DEFAULT NULL,
|
||||
`bool_one` tinyint(1) DEFAULT NULL,
|
||||
`bool_two` tinyint(1) DEFAULT NULL,
|
||||
`uint64_one` int(10) unsigned DEFAULT NULL,
|
||||
`float64_one` double DEFAULT NULL
|
||||
);
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
INSERT INTO `metric_one` VALUES ('2021-05-17 22:04:45','tag1','tag2',1234,2345,1,0,1000000000,3.1415);
|
8
plugins/outputs/sql/testdata/mariadb/expected_metric_three.sql
vendored
Normal file
8
plugins/outputs/sql/testdata/mariadb/expected_metric_three.sql
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `metric three` (
|
||||
`timestamp` timestamp NULL DEFAULT NULL,
|
||||
`tag four` text DEFAULT NULL,
|
||||
`string two` text DEFAULT NULL
|
||||
);
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
INSERT INTO `metric three` VALUES ('2021-05-17 22:04:45','tag4','string2');
|
8
plugins/outputs/sql/testdata/mariadb/expected_metric_two.sql
vendored
Normal file
8
plugins/outputs/sql/testdata/mariadb/expected_metric_two.sql
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `metric_two` (
|
||||
`timestamp` timestamp NULL DEFAULT NULL,
|
||||
`tag_three` text DEFAULT NULL,
|
||||
`string_one` text DEFAULT NULL
|
||||
);
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
INSERT INTO `metric_two` VALUES ('2021-05-17 22:04:45','tag3','string1');
|
4
plugins/outputs/sql/testdata/mariadb/initdb/script.sql
vendored
Normal file
4
plugins/outputs/sql/testdata/mariadb/initdb/script.sql
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
create database foo;
|
||||
use foo;
|
||||
create table bar (baz int);
|
||||
insert into bar (baz) values (1);
|
13
plugins/outputs/sql/testdata/mariadb_no_timestamp/expected_metric_one.sql
vendored
Normal file
13
plugins/outputs/sql/testdata/mariadb_no_timestamp/expected_metric_one.sql
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `metric_one` (
|
||||
`tag_one` text DEFAULT NULL,
|
||||
`tag_two` text DEFAULT NULL,
|
||||
`int64_one` int(11) DEFAULT NULL,
|
||||
`int64_two` int(11) DEFAULT NULL,
|
||||
`bool_one` tinyint(1) DEFAULT NULL,
|
||||
`bool_two` tinyint(1) DEFAULT NULL,
|
||||
`uint64_one` int(10) unsigned DEFAULT NULL,
|
||||
`float64_one` double DEFAULT NULL
|
||||
);
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
INSERT INTO `metric_one` VALUES ('tag1','tag2',1234,2345,1,0,1000000000,3.1415);
|
7
plugins/outputs/sql/testdata/mariadb_no_timestamp/expected_metric_three.sql
vendored
Normal file
7
plugins/outputs/sql/testdata/mariadb_no_timestamp/expected_metric_three.sql
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `metric three` (
|
||||
`tag four` text DEFAULT NULL,
|
||||
`string two` text DEFAULT NULL
|
||||
);
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
INSERT INTO `metric three` VALUES ('tag4','string2');
|
7
plugins/outputs/sql/testdata/mariadb_no_timestamp/expected_metric_two.sql
vendored
Normal file
7
plugins/outputs/sql/testdata/mariadb_no_timestamp/expected_metric_two.sql
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
/*!40101 SET character_set_client = utf8mb4 */;
|
||||
CREATE TABLE `metric_two` (
|
||||
`tag_three` text DEFAULT NULL,
|
||||
`string_one` text DEFAULT NULL
|
||||
);
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
INSERT INTO `metric_two` VALUES ('tag3','string1');
|
4
plugins/outputs/sql/testdata/mariadb_no_timestamp/initdb/script.sql
vendored
Normal file
4
plugins/outputs/sql/testdata/mariadb_no_timestamp/initdb/script.sql
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
create database foo;
|
||||
use foo;
|
||||
create table bar (baz int);
|
||||
insert into bar (baz) values (1);
|
34
plugins/outputs/sql/testdata/postgres/expected.sql
vendored
Normal file
34
plugins/outputs/sql/testdata/postgres/expected.sql
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
SELECT pg_catalog.set_config('search_path', '', false);
|
||||
CREATE TABLE public."metric three" (
|
||||
"timestamp" timestamp without time zone,
|
||||
"tag four" text,
|
||||
"string two" text
|
||||
);
|
||||
ALTER TABLE public."metric three" OWNER TO postgres;
|
||||
CREATE TABLE public.metric_one (
|
||||
"timestamp" timestamp without time zone,
|
||||
tag_one text,
|
||||
tag_two text,
|
||||
int64_one integer,
|
||||
int64_two integer,
|
||||
bool_one boolean,
|
||||
bool_two boolean,
|
||||
uint64_one bigint,
|
||||
float64_one double precision
|
||||
);
|
||||
ALTER TABLE public.metric_one OWNER TO postgres;
|
||||
CREATE TABLE public.metric_two (
|
||||
"timestamp" timestamp without time zone,
|
||||
tag_three text,
|
||||
string_one text
|
||||
);
|
||||
ALTER TABLE public.metric_two OWNER TO postgres;
|
||||
COPY public."metric three" ("timestamp", "tag four", "string two") FROM stdin;
|
||||
2021-05-17 22:04:45 tag4 string2
|
||||
\.
|
||||
COPY public.metric_one ("timestamp", tag_one, tag_two, int64_one, int64_two, bool_one, bool_two, uint64_one, float64_one) FROM stdin;
|
||||
2021-05-17 22:04:45 tag1 tag2 1234 2345 t f 1000000000 3.1415
|
||||
\.
|
||||
COPY public.metric_two ("timestamp", tag_three, string_one) FROM stdin;
|
||||
2021-05-17 22:04:45 tag3 string1
|
||||
\.
|
2
plugins/outputs/sql/testdata/postgres/initdb/init.sql
vendored
Normal file
2
plugins/outputs/sql/testdata/postgres/initdb/init.sql
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
create database foo;
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue