Skip to content

Commit

Permalink
Add missing struct fields and unimplemented OpenDataset request handler
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Nov 26, 2024
1 parent f86d3e4 commit cf00aa6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/ark/src/data_explorer/column_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ pub async fn handle_columns_profiles_requests(
let event = DataExplorerFrontendEvent::ReturnColumnProfiles(ReturnColumnProfilesParams {
callback_id,
profiles,
error_message: None,
});

let json_event = serde_json::to_value(event)?;
Expand Down
6 changes: 6 additions & 0 deletions crates/ark/src/data_explorer/r_data_explorer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,10 @@ impl RDataExplorer {

DataExplorerBackendRequest::GetState => r_task(|| self.r_get_state()),

DataExplorerBackendRequest::OpenDataset(_) => {
return Err(anyhow!("Data Explorer: Not yet supported"));
},

DataExplorerBackendRequest::SearchSchema(_) => {
return Err(anyhow!("Data Explorer: Not yet supported"));
},
Expand Down Expand Up @@ -873,6 +877,8 @@ impl RDataExplorer {
fn r_get_state(&self) -> anyhow::Result<DataExplorerBackendReply> {
let state = BackendState {
display_name: self.title.clone(),
connected: Some(true),
error_message: None,
table_shape: TableShape {
num_rows: match self.filtered_indices {
Some(ref indices) => indices.len() as i64,
Expand Down

0 comments on commit cf00aa6

Please sign in to comment.