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/09/07 11:11:14 UTC

[GitHub] [doris] cambyzju commented on a diff in pull request #12424: [fix](array-type) fix the invalid format load for stream load

cambyzju commented on code in PR #12424:
URL: https://github.com/apache/doris/pull/12424#discussion_r964713303


##########
be/src/exec/base_scanner.cpp:
##########
@@ -481,4 +481,35 @@ void BaseScanner::_fill_columns_from_path() {
     }
 }
 
+bool BaseScanner::is_null(const Slice& slice) {
+    return slice.size == 2 && slice.data[0] == '\\' && slice.data[1] == 'N';
+}
+
+bool BaseScanner::is_array(const Slice& slice) {
+    return slice.size > 0 && slice.data[0] == '[' && slice.data[slice.size - 1] == ']';

Review Comment:
   ```suggestion
       return slice.size > 1 && slice.data[0] == '[' && slice.data[slice.size - 1] == ']';
   ```



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