-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use testdata to implement rudimentary testings.
- Loading branch information
Sven Rebhan
committed
Jun 13, 2021
1 parent
932bf12
commit 873f59c
Showing
3 changed files
with
220 additions
and
38 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
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,36 @@ | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `bar` ( | ||
`baz` int(11) DEFAULT NULL | ||
); | ||
/*!40101 SET character_set_client = @saved_cs_client */; | ||
INSERT INTO `bar` VALUES (1); | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `metric three` ( | ||
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(), | ||
`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'); | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `metric_one` ( | ||
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(), | ||
`tag_one` text DEFAULT NULL, | ||
`tag_two` text DEFAULT NULL, | ||
`int64_one` int(11) DEFAULT NULL, | ||
`int64_two` int(11) 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); | ||
/*!40101 SET @saved_cs_client = @@character_set_client */; | ||
/*!40101 SET character_set_client = utf8 */; | ||
CREATE TABLE `metric_two` ( | ||
`timestamp` timestamp NOT NULL DEFAULT current_timestamp(), | ||
`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'); |
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,41 @@ | ||
SET statement_timeout = 0; | ||
SET lock_timeout = 0; | ||
SET idle_in_transaction_session_timeout = 0; | ||
SET client_encoding = 'UTF8'; | ||
SET standard_conforming_strings = on; | ||
SELECT pg_catalog.set_config('search_path', '', false); | ||
SET check_function_bodies = false; | ||
SET xmloption = content; | ||
SET client_min_messages = warning; | ||
SET row_security = off; | ||
SET default_tablespace = ''; | ||
SET default_table_access_method = heap; | ||
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 | ||
); | ||
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) FROM stdin; | ||
2021-05-17 22:04:45 tag1 tag2 1234 2345 | ||
\. | ||
COPY public.metric_two ("timestamp", tag_three, string_one) FROM stdin; | ||
2021-05-17 22:04:45 tag3 string1 | ||
\. |