You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/04/02 07:10:13 UTC

[GitHub] [incubator-doris] zhangstar333 commented on a change in pull request #8614: [Vectorized] support string type cast to bitmap

zhangstar333 commented on a change in pull request #8614:
URL: https://github.com/apache/incubator-doris/pull/8614#discussion_r841029836



##########
File path: be/src/vec/functions/function_cast.h
##########
@@ -803,6 +804,56 @@ struct ConvertThroughParsing {
     }
 };
 
+//convert string to bitmap or hll type
+template <typename FromDataType, typename ToDataType, typename Name>
+struct ConvertToComplex {
+    static_assert(std::is_same_v<FromDataType, DataTypeString>,
+                  "ConvertToComplex is only applicable for String or FixedString data types");
+
+    using ToFieldType = typename ToDataType::FieldType;
+    using ColVecTo = ColumnComplexType<ToFieldType>;
+
+    template <typename Additions = void*>

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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org