Skip to content

Commit a1c5167

Browse files
Go
1 parent 1802b95 commit a1c5167

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

crates/datafusion-app/src/tables/indexmap_table.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ pub struct IndexMapTableConfig {
4949

5050
/// Table for tracking observability information. Data is held in a IndexMap, which maintains
5151
/// insertion order, while the app is running and is serialized on app shutdown.
52+
///
53+
/// TODO: Add filter pushdown on the primary key and use `get` on that for O(1)
54+
/// TODO: Add filter pushdown on non primary key and use `binary_search_by` to search values
5255
#[derive(Debug)]
5356
pub struct IndexMapTable {
5457
schema: Arc<Schema>,
@@ -72,7 +75,9 @@ impl IndexMapTable {
7275
})
7376
}
7477

75-
fn hashmap_to_row(&self, values: &HashMap<String, ScalarValue>) {}
78+
fn hashmap_to_row(&self, values: &HashMap<String, ScalarValue>) -> Result<()> {
79+
Ok(())
80+
}
7681

7782
fn partitions(&self) -> Vec<Vec<RecordBatch>> {
7883
let guard = self.inner.read();

0 commit comments

Comments
 (0)