superdiaodiao commented on code in PR #29954: URL: https://github.com/apache/doris/pull/29954#discussion_r1452544610
########## be/src/vec/functions/function_ip.h: ########## @@ -969,4 +930,114 @@ class FunctionIPv6CIDRToRange : public IFunction { } }; -} // namespace doris::vectorized \ No newline at end of file +class FunctionIsIPv4Compat : public IFunction { +public: + static constexpr auto name = "is_ipv4_compat"; + static FunctionPtr create() { return std::make_shared<FunctionIsIPv4Compat>(); } + + String get_name() const override { return name; } + + size_t get_number_of_arguments() const override { return 1; } + + DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { + return make_nullable(std::make_shared<DataTypeUInt8>()); + } + + bool use_default_implementation_for_nulls() const override { return true; } Review Comment: okay, i fogot to delete, i will delete it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org