ClickHouse/tests/queries/0_stateless/02530_ip_part_id.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
464 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS ip_part_test;
CREATE TABLE ip_part_test ( ipv4 IPv4, ipv6 IPv6 ) ENGINE = MergeTree PARTITION BY ipv4 ORDER BY ipv4 AS SELECT '1.2.3.4', '::ffff:1.2.3.4';
SELECT *, _part FROM ip_part_test;
DROP TABLE IF EXISTS ip_part_test;
CREATE TABLE ip_part_test ( ipv4 IPv4, ipv6 IPv6 ) ENGINE = MergeTree PARTITION BY ipv6 ORDER BY ipv6 AS SELECT '1.2.3.4', '::ffff:1.2.3.4';
SELECT *, _part FROM ip_part_test;
DROP TABLE IF EXISTS ip_part_test;