eldenmoon commented on code in PR #52696:
URL: https://github.com/apache/doris/pull/52696#discussion_r2191345818


##########
be/src/vec/columns/column_variant.cpp:
##########
@@ -898,6 +892,27 @@ void ColumnVariant::Subcolumn::get(size_t n, Field& res) 
const {
     }
     if (is_finalized()) {
         if (least_common_type.get_base_type_id() == PrimitiveType::TYPE_JSONB) 
{
+            if (least_common_type.get_type_id() == PrimitiveType::TYPE_ARRAY) {
+                // Array of JsonbField is special case
+                get_finalized_column().get(n, res);
+                // here we will get a Array<String> Field, we need to convert 
it to Array<JsonbField>
+                if (res.get_type() == PrimitiveType::TYPE_ARRAY) {

Review Comment:
   adding a function to wrap this logic



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

Reply via email to