fix: noop flush impl for numbers table (#1247)

* fix: noop flush impl for numbers table

* fix: clippy
This commit is contained in:
Lei, HUANG
2023-03-27 10:54:07 +08:00
committed by GitHub
parent b4fc8c5b78
commit 15ee4ac729

View File

@@ -26,6 +26,7 @@ use datatypes::data_type::ConcreteDataType;
use datatypes::schema::{ColumnSchema, SchemaBuilder, SchemaRef};
use futures::task::{Context, Poll};
use futures::Stream;
use store_api::storage::RegionNumber;
use crate::error::Result;
use crate::metadata::{TableId, TableInfoBuilder, TableInfoRef, TableMetaBuilder, TableType};
@@ -110,6 +111,10 @@ impl Table for NumbersTable {
});
Ok(Arc::new(SimpleTableScan::new(stream)))
}
async fn flush(&self, _region_number: Option<RegionNumber>, _wait: Option<bool>) -> Result<()> {
Ok(())
}
}
// Limited numbers stream