-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix tests #9
Fix tests #9
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -441,7 +441,7 @@ impl ExecutionPlan for CsvExec { | |
}); | ||
|
||
Ok(Box::pin(CsvStream::new( | ||
self.schema.clone(), | ||
self.projected_schema.clone(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The cause for failed tests |
||
ReceiverStream::new(response_rx), | ||
))) | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3114,7 +3114,7 @@ async fn query_array() -> Result<()> { | |
ctx.register_table("test", Arc::new(table))?; | ||
let sql = "SELECT array(c1, cast(c2 as varchar)) FROM test"; | ||
let actual = execute(&mut ctx, sql).await; | ||
let expected = vec![vec!["[,0]"], vec!["[a,1]"], vec!["[aa,]"], vec!["[aaa,3]"]]; | ||
let expected = vec![vec!["[, 0]"], vec!["[a, 1]"], vec!["[aa, ]"], vec!["[aaa, 3]"]]; | ||
assert_eq!(expected, actual); | ||
Ok(()) | ||
} | ||
|
@@ -4323,16 +4323,9 @@ async fn test_cast_expressions_error() -> Result<()> { | |
let plan = ctx.create_logical_plan(sql).unwrap(); | ||
let plan = ctx.optimize(&plan).unwrap(); | ||
let plan = ctx.create_physical_plan(&plan).unwrap(); | ||
let result = collect(plan).await; | ||
|
||
match result { | ||
Ok(_) => panic!("expected error"), | ||
Err(e) => { | ||
assert_contains!(e.to_string(), | ||
"Cast error: Cannot cast string 'c' to value of arrow::datatypes::types::Int32Type type" | ||
); | ||
} | ||
} | ||
let actual = execute(&mut ctx, sql).await; | ||
let expected = vec![vec![""]; 100]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cast string to Int32 is possible in arrow2, cast failure will result in NULL https://github.com/jorgecarleitao/arrow2/blob/main/src/compute/cast/mod.rs#L129 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cool, filed apache#1056 |
||
assert_eq!(expected, actual); | ||
|
||
Ok(()) | ||
} | ||
|
@@ -4538,6 +4531,8 @@ async fn like_on_string_dictionaries() -> Result<()> { | |
} | ||
|
||
#[tokio::test] | ||
#[ignore] | ||
// FIXME: https://github.com/apache/arrow-datafusion/issues/1035 | ||
async fn test_regexp_is_match() -> Result<()> { | ||
let input = Utf8Array::<i32>::from(vec![ | ||
Some("foo"), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array_array
is to zip elements at the same index for each array into a FixedSizeArray, therefore not identical toconcatenate
that chain all arrays end to end.