Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::SamplingPushdown Class Reference

Public Member Functions

unique_ptr< LogicalOperator > Optimize (unique_ptr< LogicalOperator > op)
 Optimize SYSTEM SAMPLING + SCAN to SAMPLE SCAN.

Member Function Documentation

◆ Optimize()

unique_ptr< LogicalOperator > duckdb::SamplingPushdown::Optimize ( unique_ptr< LogicalOperator > op)

Optimize SYSTEM SAMPLING + SCAN to SAMPLE SCAN.

323197 {
323198 if (op->type == LogicalOperatorType::LOGICAL_SAMPLE &&
323199 op->Cast<LogicalSample>().sample_options->method == SampleMethod::SYSTEM_SAMPLE &&
323200 op->Cast<LogicalSample>().sample_options->is_percentage && !op->children.empty() &&
323201 op->children[0]->type == LogicalOperatorType::LOGICAL_GET &&
323202 op->children[0]->Cast<LogicalGet>().function.sampling_pushdown && op->children[0]->children.empty()) {
323203 auto &get = op->children[0]->Cast<LogicalGet>();
323204 // set sampling option
323205 get.extra_info.sample_options = std::move(op->Cast<LogicalSample>().sample_options);
323206 op = std::move(op->children[0]);
323207 }
323208 for (auto &child : op->children) {
323209 child = Optimize(std::move(child));
323210 }
323211 return op;
323212}
unique_ptr< LogicalOperator > Optimize(unique_ptr< LogicalOperator > op)
Optimize SYSTEM SAMPLING + SCAN to SAMPLE SCAN.
Definition duckdb.cpp:323197
__host__ cudaTextureObject_t get() const noexcept
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: