worker24h commented on a change in pull request #1173: load data from Parquet 
file (Issues #911)
URL: https://github.com/apache/incubator-doris/pull/1173#discussion_r285478863
 
 

 ##########
 File path: be/src/exec/broker_scan_node.cpp
 ##########
 @@ -267,18 +268,41 @@ void BrokerScanNode::debug_string(int ident_level, 
std::stringstream* out) const
     (*out) << "BrokerScanNode";
 }
 
+std::unique_ptr<ScannerInterface> BrokerScanNode::create_scanner(const 
TBrokerScanRange& scan_range,
+        ScannerCounter* counter) {
+    ScannerInterface *scan = nullptr;
+    switch (scan_range.ranges[0].format_type) {
+    case TFileFormatType::FORMAT_PARQUET:
+        LOG(INFO) << "Parquet Scanner Create";
+        scan = new ParquetScanner(_runtime_state,
+                runtime_profile(),
+                scan_range.params,
+                scan_range.ranges,
+                scan_range.broker_addresses,
+                counter);
+        break;
+    default:
+        LOG(INFO) << "Broker Scanner Create";
 
 Review comment:
   it be deleted

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to