Skip to content

Commit

Permalink
Merge pull request #492 from Oxen-AI/fix/data-frame-response
Browse files Browse the repository at this point in the history
Fix/data frame export
  • Loading branch information
gschoeni authored Jan 6, 2025
2 parents 2f90d54 + 322a627 commit 387eaf6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "Oxen"
version = "0.24.2"
version = "0.24.3"
edition = "2021"
license-file = "LICENSE"
description = "Oxen is a fast, unstructured data version control, to help version large machine learning datasets written in Rust."
Expand Down
2 changes: 1 addition & 1 deletion src/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxen-cli"
version = "0.24.2"
version = "0.24.3"
edition = "2021"

[dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "liboxen"
version = "0.24.2"
version = "0.24.3"
edition = "2021"
license-file = "LICENSE"
description = "Oxen is a fast, unstructured data version control, to help version datasets, written in Rust."
Expand Down
7 changes: 6 additions & 1 deletion src/lib/src/core/df/sql.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::path::{Path, PathBuf};

use crate::core::df::tabular;
use crate::model::LocalRepository;
use crate::opts::DFOpts;
use crate::repositories;
Expand Down Expand Up @@ -30,7 +31,11 @@ pub fn query_df_from_repo(

let db_path = repositories::workspaces::data_frames::duckdb_path(&workspace, path);
let mut conn = df_db::get_connection(db_path)?;
query_df(&mut conn, sql, Some(opts))
let df = query_df(&mut conn, sql, Some(opts))?;

// If we are doing this from the CLI, we don't want to export the hidden Oxen columns
let df = tabular::strip_excluded_cols(df)?;
Ok(df)
}

pub fn query_df(
Expand Down
2 changes: 1 addition & 1 deletion src/server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oxen-server"
version = "0.24.2"
version = "0.24.3"
edition = "2021"

[dependencies]
Expand Down

0 comments on commit 387eaf6

Please sign in to comment.