From 718ad72871e7d6788242b06822918057723939f7 Mon Sep 17 00:00:00 2001 From: Yakov Olkhovskiy Date: Wed, 11 Jan 2023 13:38:43 +0000 Subject: [PATCH] test is added --- .../02531_ipv4_arithmetic.reference | 20 +++++++++++++++++++ .../0_stateless/02531_ipv4_arithmetic.sql | 1 + 2 files changed, 21 insertions(+) create mode 100644 tests/queries/0_stateless/02531_ipv4_arithmetic.reference create mode 100644 tests/queries/0_stateless/02531_ipv4_arithmetic.sql diff --git a/tests/queries/0_stateless/02531_ipv4_arithmetic.reference b/tests/queries/0_stateless/02531_ipv4_arithmetic.reference new file mode 100644 index 00000000000..6f03e4e6903 --- /dev/null +++ b/tests/queries/0_stateless/02531_ipv4_arithmetic.reference @@ -0,0 +1,20 @@ +10 1.2.3.4 0 +11 1.2.3.4 3 +12 1.2.3.4 4 +13 1.2.3.4 12 +14 1.2.3.4 0 +15 1.2.3.4 10 +16 1.2.3.4 4 +17 1.2.3.4 10 +18 1.2.3.4 4 +19 1.2.3.4 10 +20 1.2.3.4 0 +21 1.2.3.4 7 +22 1.2.3.4 14 +23 1.2.3.4 12 +24 1.2.3.4 4 +25 1.2.3.4 10 +26 1.2.3.4 12 +27 1.2.3.4 13 +28 1.2.3.4 0 +29 1.2.3.4 1 diff --git a/tests/queries/0_stateless/02531_ipv4_arithmetic.sql b/tests/queries/0_stateless/02531_ipv4_arithmetic.sql new file mode 100644 index 00000000000..59a99842d61 --- /dev/null +++ b/tests/queries/0_stateless/02531_ipv4_arithmetic.sql @@ -0,0 +1 @@ +SELECT number, ip, ip % number FROM (SELECT number, toIPv4('1.2.3.4') as ip FROM numbers(10, 20)); \ No newline at end of file