diff --git a/be/src/olap/types.h b/be/src/olap/types.h index 74aa86fc49..edc1fdabd7 100644 --- a/be/src/olap/types.h +++ b/be/src/olap/types.h @@ -730,7 +730,7 @@ struct CppTypeTraits { }; template <> struct CppTypeTraits { - using CppType = int128_t; + using CppType = uint128_t; using UnsignedCppType = uint128_t; }; template <> diff --git a/regression-test/data/datatype_p0/ip/test_ip_basic.out b/regression-test/data/datatype_p0/ip/test_ip_basic.out index 6b17d85b83..14ecbd47a4 100644 --- a/regression-test/data/datatype_p0/ip/test_ip_basic.out +++ b/regression-test/data/datatype_p0/ip/test_ip_basic.out @@ -63,6 +63,12 @@ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff -- !sql8 -- ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff +-- !sql8_2 -- +ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff + +-- !sql8_3 -- +ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff + -- !sql9 -- \N 0 0.0.0.0 1 @@ -354,3 +360,4 @@ ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 4 120.239.82.212 2a0c:3240::1 121.25.82.29 2620:44:a000::1 121.25.160.80 2001:418:0:5000::c2d + diff --git a/regression-test/suites/datatype_p0/ip/test_ip_basic.groovy b/regression-test/suites/datatype_p0/ip/test_ip_basic.groovy index f5b2620e96..650dc86ad4 100644 --- a/regression-test/suites/datatype_p0/ip/test_ip_basic.groovy +++ b/regression-test/suites/datatype_p0/ip/test_ip_basic.groovy @@ -123,6 +123,8 @@ suite("test_ip_basic") { qt_sql6 "select ip_v6 from t0 order by ip_v6 limit 1 offset 1" qt_sql7 "select ip_v4 from t0 order by ip_v4 desc limit 1 offset 1" qt_sql8 "select ip_v6 from t0 order by ip_v6 desc limit 1 offset 1" + qt_sql8_2 "select ip_v6 from t0 order by ip_v6 desc limit 1 offset 1" + qt_sql8_3 "select ip_v6 from t0 order by ip_v6 desc limit 1 offset 1" // group by and agg qt_sql9 "select ip_v4, count(ip_v4) as cnt from t0 group by ip_v4 order by ip_v4"