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 2023/01/04 15:59:27 UTC

[GitHub] [doris] morningman commented on a diff in pull request #15622: [feature](file cache)Import `file cache` for remote file reader

morningman commented on code in PR #15622:
URL: https://github.com/apache/doris/pull/15622#discussion_r1061454546


##########
be/src/io/fs/file_reader_options.cpp:
##########
@@ -25,8 +25,8 @@ FileCacheType cache_type_from_string(const std::string& type) {
         return FileCacheType::SUB_FILE_CACHE;
     } else if (type == "whole_file_cache") {
         return FileCacheType::WHOLE_FILE_CACHE;
-    } else if (type == "file_block_cache") {
-        return FileCacheType::FILE_BLOCK_CACHE;
+    } else if (type == "remote_file_cache") {
+        return FileCacheType::REMOTE_FILE_CACHE;

Review Comment:
   All cache are for `remote file`. So I think the name `REMOTE_FILE_CACHE` can not indicate which kind of cache it is.



##########
be/src/vec/exec/format/json/new_json_reader.h:
##########
@@ -144,6 +145,9 @@ class NewJsonReader : public GenericReader {
 
     size_t _current_offset;
 
+    std::unique_ptr<FileCacheStatistics> _file_cache_statistics;

Review Comment:
   Why only json reader has `FileCacheStatistics`?



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