horaedb
horaedb copied to clipboard
Avoid IO in query plan stage
Describe this problem
In current implementation, when we create a ExecutionPlan for ScanTable, it will begin to scan table, this is problematic since in build plan stage, NO IO should happen, all operations should be light-weighted.
Some issue I can think of:
- Incorrect metrics stats of ExecutionPlan
-
explainstatement will take longer time to execute.
Steps to reproduce
No need
Expected behavior
No response
Additional Information
https://github.com/CeresDB/ceresdb/blob/c54a4cbf1db5f9f18435f5d419fa638d57749af3/table_engine/src/provider.rs#L214
We need to move maybe_init_stream inside ScanTable::execute