Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usability impovements #10

Merged
merged 8 commits into from
Sep 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
local-*
/target
Cargo.lock
.vscode
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ blocking = ["reqwest/blocking"]

[dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread",] }
parquet = "14.0.0"
reqwest = { version = "0.11", features = ["json"] }
parquet = "52.1.0"
reqwest = { version = "0.12", features = ["json"] }
url = "2.2"
rustc_version_runtime = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
anyhow = "1.0"
log = "0.4"
env_logger = "0.9"
polars = { version = "0.22.8", features = ["lazy", "parquet"] }
polars = { version = "0.41.3", features = ["lazy", "parquet"] }

[dev-dependencies]
wiremock = "0.5"
Expand Down
4 changes: 2 additions & 2 deletions examples/async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async fn main() {

let conf_str = &fs::read_to_string("./config.json").unwrap();
let config: ProviderConfig = serde_json::from_str(conf_str).expect("Invalid configuration");
let mut app = Client::new(config, None).await.unwrap();
let mut app = Client::new(config, None, None).await.unwrap();
let shares = app.list_shares().await.unwrap();
if shares.len() == 0 {
println!("At least 1 Delta Share is required");
Expand Down Expand Up @@ -42,7 +42,7 @@ async fn main() {
);
} else {
let res = app
.get_dataframe(&tables[0])
.get_dataframe(&tables[0], None)
.await
.unwrap()
.collect()
Expand Down
8 changes: 6 additions & 2 deletions examples/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn main() {
let conf_str = &fs::read_to_string("./config.json").unwrap();

let config: ProviderConfig = serde_json::from_str(conf_str).expect("Invalid configuration");
let mut app = Client::new(config, None).unwrap();
let mut app = Client::new(config, None, None).unwrap();
let shares = app.list_shares().unwrap();
if shares.len() == 0 {
println!("At least 1 Delta Share is required");
Expand All @@ -22,7 +22,11 @@ fn main() {
shares[0].name
);
} else {
let res = app.get_dataframe(&tables[0]).unwrap().collect().unwrap();
let res = app
.get_dataframe(&tables[0], None)
.unwrap()
.collect()
.unwrap();
println!("Dataframe:\n {}", res);
}
}
Expand Down
Loading
Loading