File tree Expand file tree Collapse file tree
crates/datafusion-app/src/tables Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ]
5356pub 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 ( ) ;
You can’t perform that action at this time.
0 commit comments