Skip to content

Commit

Permalink
Merge pull request #27
Browse files Browse the repository at this point in the history
use arrow sub-crate and update dependencies
  • Loading branch information
AsafMah committed Aug 7, 2023
2 parents 8f8ee1f + 436c398 commit f26831d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 24 deletions.
32 changes: 17 additions & 15 deletions azure-kusto-data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,47 @@ keywords = ["sdk", "azure", "kusto", "azure-data-explorer"]
categories = ["api-bindings"]

[dependencies]
arrow = { version = "33.0.0", optional = true }
azure_core = { version = "0.10.0", features = [
arrow-array = { version = "42", optional = true }
arrow-schema = { version = "42", optional = true }
azure_core = { version = "0.13", features = [
"enable_reqwest",
"enable_reqwest_gzip",
] }
azure_identity = "0.10.0"
azure_identity = "0.13.0"
async-trait = "0.1.64"
async-convert = "1.0.0"
bytes = "1.4.0"
futures = "0.3.26"
serde = { version = "1.0.152", features = ["derive"] }
serde_json = "1.0.93"
serde_with = { version = "2.2.0", features = ["json"] }
bytes = "1.4"
futures = "0.3"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_with = { version = "3", features = ["json"] }
thiserror = "1.0.38"
hashbrown = { version = "0.13.2", features = ["serde"] }
hashbrown = { version = "0.14", features = ["serde"] }
regex = "1.7.1"
time = { version = "0.3.19", features = [
time = { version = "0.3", features = [
"serde",
"parsing",
"formatting",
"macros",
"serde-well-known",
] }
derive_builder = "0.12.0"
once_cell = "1.17.1"
derive_builder = "0.12"
once_cell = "1"

[dev-dependencies]
arrow = { version = "33.0.0", features = ["prettyprint"] }
arrow = { version = "42", features = ["prettyprint"] }
dotenv = "0.15.0"
env_logger = "0.10.0"
tokio = { version = "1.25.0", features = ["macros"] }
oauth2 = "4.3.0"
criterion = "0.4.0"
criterion = "0.5"
clap = { version = "4.1.6", features = ["derive", "env"] }
decimal = "2.1.0"
uuid = { version = "1.3.0", features = [ "serde"] }
uuid = { version = "1.3.0", features = ["serde"] }

[features]
default = ["arrow"]
arrow = ["arrow-array", "arrow-schema"]
test_e2e = []

[[bench]]
Expand Down
12 changes: 4 additions & 8 deletions azure-kusto-data/src/arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ use std::convert::TryInto;
use std::str::FromStr;
use std::sync::Arc;

use arrow::array::TimestampNanosecondArray;
use arrow::{
array::{
ArrayRef, BooleanArray, DurationNanosecondArray, Float64Array, Int32Array, Int64Array,
StringArray,
},
datatypes::{DataType, Field, Schema, TimeUnit},
record_batch::RecordBatch,
use arrow_array::{
ArrayRef, BooleanArray, DurationNanosecondArray, Float64Array, Int32Array, Int64Array,
RecordBatch, StringArray, TimestampNanosecondArray,
};
use arrow_schema::{DataType, Field, Schema, TimeUnit};
use azure_core::error::{ErrorKind, ResultExt};
use serde_json::Value;

Expand Down
2 changes: 1 addition & 1 deletion azure-kusto-data/src/operations/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::models::{DataTable, QueryBody, TableFragmentType, TableKind, TableV1,
use crate::operations::async_deserializer;
use crate::prelude::ClientRequestProperties;
#[cfg(feature = "arrow")]
use arrow::record_batch::RecordBatch;
use arrow_array::RecordBatch;
use async_convert::TryFrom;
use azure_core::error::Error as CoreError;
use azure_core::headers::Headers;
Expand Down

0 comments on commit f26831d

Please sign in to comment.