amorynan commented on code in PR #47890:
URL: https://github.com/apache/doris/pull/47890#discussion_r1959790651


##########
be/src/vec/functions/function_cast.h:
##########
@@ -1950,9 +1950,35 @@ class FunctionCast final : public IFunctionBase {
             const auto& col_with_type_and_name = 
block.get_by_position(arguments[0]);
             auto& from_type = col_with_type_and_name.type;
             auto& col_from = col_with_type_and_name.column;
-            // set variant root column/type to from column/type
             auto variant = ColumnObject::create(true /*always nullable*/);
-            variant->create_root(from_type, col_from->assume_mutable());
+            // set variant root column/type to from column/type
+            auto dst_str = ColumnString::create();

Review Comment:
   done



-- 
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

Reply via email to