github-actions[bot] commented on code in PR #27154:
URL: https://github.com/apache/doris/pull/27154#discussion_r1400139074


##########
be/src/vec/exec/scan/vfile_scanner.cpp:
##########
@@ -745,13 +745,14 @@ Status VFileScanner::_get_next_reader() {
         bool need_to_get_parsed_schema = false;
         switch (format_type) {
         case TFileFormatType::FORMAT_JNI: {
-            if (_real_tuple_desc->table_desc()->table_type() ==
-                ::doris::TTableType::type::MAX_COMPUTE_TABLE) {
+            if (range.__isset.table_format_params &&
+                range.table_format_params.table_format_type == "max_compute") {
                 const MaxComputeTableDescriptor* mc_desc =
                         static_cast<const MaxComputeTableDescriptor*>(
                                 _real_tuple_desc->table_desc());
                 std::unique_ptr<MaxComputeJniReader> mc_reader = 
MaxComputeJniReader::create_unique(
-                        mc_desc, _file_slot_descs, range, _state, _profile);
+                        mc_desc, range.table_format_params.max_compute_params, 
_file_slot_descs,

Review Comment:
   warning: use auto when initializing with a cast to avoid duplicating the 
type name [modernize-use-auto]
   
   ```suggestion
                   const auto* mc_desc =
   ```
   



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

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


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

Reply via email to