You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/07/10 15:43:40 UTC

[GitHub] [incubator-doris] imay commented on a change in pull request #1457: Validate the UTF-8 encode of loading data

imay commented on a change in pull request #1457: Validate the UTF-8 encode of loading data
URL: https://github.com/apache/incubator-doris/pull/1457#discussion_r302138372
 
 

 ##########
 File path: be/src/exec/broker_scanner.cpp
 ##########
 @@ -453,6 +454,16 @@ bool BrokerScanner::convert_one_row(
 
 // Convert one row to this tuple
 bool BrokerScanner::line_to_src_tuple(const Slice& line) {
+
+    if (!validate_utf8_fast(line.data, line.size)) {
 
 Review comment:
   I think you can use a macro to use avx version in avx supported CPU

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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