This PR moves the query module in modelardb_server into a separate modelardb_query so it can be used to query the compressed model-based format in other applications. In addition, by only exposing a handful of functions for creating the Apache DataFusion SessionContext and registering tables with it, the vast majority of the code in the modelardb_query crate can be made private. Finally, to simplify using modelardb_query in other applications and make TableMetadataManager more consistent, a few methods have been added to TableMetadataManager.
This PR moves the
query
module inmodelardb_server
into a separatemodelardb_query
so it can be used to query the compressed model-based format in other applications. In addition, by only exposing a handful of functions for creating the Apache DataFusionSessionContext
and registering tables with it, the vast majority of the code in themodelardb_query
crate can be made private. Finally, to simplify usingmodelardb_query
in other applications and makeTableMetadataManager
more consistent, a few methods have been added toTableMetadataManager
.