mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
test for #26473
This commit is contained in:
parent
1f32ffedf8
commit
0dfe4e0835
1
tests/queries/0_stateless/02184_ipv6_cast_test.reference
Normal file
1
tests/queries/0_stateless/02184_ipv6_cast_test.reference
Normal file
@ -0,0 +1 @@
|
||||
2600:1011:b104:a86f:2832:b9c6:6d45:237b 2600:1011:b104:a86f:2832:b9c6:6d45:237b 2600:1011:b104:: 2600:1011:b104:: true 2600:1011:b104::
|
16
tests/queries/0_stateless/02184_ipv6_cast_test.sql
Normal file
16
tests/queries/0_stateless/02184_ipv6_cast_test.sql
Normal file
@ -0,0 +1,16 @@
|
||||
drop table if exists ipv6_test26473;
|
||||
|
||||
CREATE TABLE ipv6_test26473 (
|
||||
`ip` String,
|
||||
`ipv6` IPv6 MATERIALIZED toIPv6(ip),
|
||||
`is_ipv6` Boolean MATERIALIZED isIPv6String(ip),
|
||||
`cblock` IPv6 MATERIALIZED cutIPv6(ipv6, 10, 1),
|
||||
`cblock1` IPv6 MATERIALIZED toIPv6(cutIPv6(ipv6, 10, 1))
|
||||
)
|
||||
ENGINE = Memory;
|
||||
|
||||
insert into ipv6_test26473 values ('2600:1011:b104:a86f:2832:b9c6:6d45:237b');
|
||||
|
||||
select ip, ipv6,cblock, cblock1,is_ipv6, cutIPv6(ipv6, 10, 1) from ipv6_test26473;
|
||||
|
||||
drop table ipv6_test26473;
|
Loading…
Reference in New Issue
Block a user