From 1e6fe3250c9bdbf18d391a7b7b3061ea044c15b3 Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Thu, 19 Jan 2023 00:14:19 +0000 Subject: [PATCH] test is added --- tests/queries/0_stateless/02535_ip_parser_not_whole.reference | 3 +++ tests/queries/0_stateless/02535_ip_parser_not_whole.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tests/queries/0_stateless/02535_ip_parser_not_whole.reference create mode 100644 tests/queries/0_stateless/02535_ip_parser_not_whole.sql diff --git a/tests/queries/0_stateless/02535_ip_parser_not_whole.reference b/tests/queries/0_stateless/02535_ip_parser_not_whole.reference new file mode 100644 index 00000000000..31502960af3 --- /dev/null +++ b/tests/queries/0_stateless/02535_ip_parser_not_whole.reference @@ -0,0 +1,3 @@ +::1 42 +::1 42 +::1 42 diff --git a/tests/queries/0_stateless/02535_ip_parser_not_whole.sql b/tests/queries/0_stateless/02535_ip_parser_not_whole.sql new file mode 100644 index 00000000000..675707d197b --- /dev/null +++ b/tests/queries/0_stateless/02535_ip_parser_not_whole.sql @@ -0,0 +1,3 @@ +SELECT * FROM format(CSVWithNamesAndTypes, 'ip,port\nIPv6,UInt16\n::1,42\n'); +SELECT * FROM format(TSVWithNamesAndTypes, 'ip\tport\nIPv6\tUInt16\n::1\t42\n'); +SELECT * FROM format(JSONCompactEachRowWithNamesAndTypes, '["ip","port"]\n["IPv6","UInt16"]\n["::1",42]\n');