Yulei-Yang commented on code in PR #25880:
URL: https://github.com/apache/doris/pull/25880#discussion_r1374024716
##########
be/src/vec/functions/function_json.cpp:
##########
@@ -880,6 +885,37 @@ class FunctionJson : public IFunction {
}
};
+template <typename Impl>
+class FunctionJsonNullable : public IFunction {
+public:
+ static constexpr auto name = Impl::name;
+ static FunctionPtr create() { return
std::make_shared<FunctionJsonNullable<Impl>>(); }
+ String get_name() const override { return name; }
+ size_t get_number_of_arguments() const override { return 0; }
+ bool is_variadic() const override { return true; }
+ bool use_default_implementation_for_constants() const override { return
true; }
+ DataTypePtr get_return_type_impl(const DataTypes& arguments) const
override {
+ return std::make_shared<DataTypeString>();
Review Comment:
fixed
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]