-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update to Arrow 35.0.0 #5441
Update to Arrow 35.0.0 #5441
Changes from all commits
37a197c
4356cd1
74e2222
58ad1e7
a165110
08321a5
5b83dcf
06deff0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -398,10 +398,10 @@ async fn test_fn_regexp_match() -> Result<()> { | |
"+-----------------------------------+", | ||
"| regexpmatch(test.a,Utf8(\"[a-z]\")) |", | ||
"+-----------------------------------+", | ||
"| [] |", | ||
"| [] |", | ||
"| [] |", | ||
"| [] |", | ||
"| [a] |", | ||
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. 🎉 |
||
"| [a] |", | ||
"| [d] |", | ||
"| [b] |", | ||
"+-----------------------------------+", | ||
]; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -414,7 +414,7 @@ async fn set_time_zone_bad_time_zone_format() { | |
.await | ||
.unwrap(); | ||
let err = pretty_format_batches(&result).err().unwrap().to_string(); | ||
assert_eq!(err, "Parser error: Invalid timezone \"+08:00:00\": Expected format [+-]XX:XX, [+-]XX, or [+-]XXXX"); | ||
assert_eq!(err, "Parser error: Invalid timezone \"+08:00:00\": only offset based timezones supported without chrono-tz feature"); | ||
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. perhaps we can improve the error message a bit in a future 😊 |
||
|
||
plan_and_collect(&ctx, "SET TIME ZONE = '08:00'") | ||
.await | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1411,14 +1411,14 @@ async fn cast_timestamp_before_1970() -> Result<()> { | |
|
||
assert_batches_eq!(expected, &actual); | ||
|
||
let sql = "select cast('1969-01-01T00:00:00.1Z' as timestamp);"; | ||
let sql = "select cast('1969-01-01T00:00:00.100Z' as timestamp);"; | ||
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. what happens without this change? 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. An error, it was a mis-reading of the RFC spec, I thought it restricted to multiples of 3 for subsecond precision, I'm working on a fix. It is somewhat amusing that chrono doesn't actually have any tests for this... 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. Filed upstream issue: apache/arrow-rs#3859 (I think apache/arrow-rs#3858 fixes it) 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. I would tend to think this regression should block the upgrade of datafusion, but would defer to others. maybe we can mark this PR as "ready for review" to get some other opinions 🤔 |
||
let actual = execute_to_batches(&ctx, sql).await; | ||
let expected = vec![ | ||
"+--------------------------------+", | ||
"| Utf8(\"1969-01-01T00:00:00.1Z\") |", | ||
"+--------------------------------+", | ||
"| 1969-01-01T00:00:00.100 |", | ||
"+--------------------------------+", | ||
"+----------------------------------+", | ||
"| Utf8(\"1969-01-01T00:00:00.100Z\") |", | ||
"+----------------------------------+", | ||
"| 1969-01-01T00:00:00.100 |", | ||
"+----------------------------------+", | ||
]; | ||
|
||
assert_batches_eq!(expected, &actual); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -431,7 +431,7 @@ mod tests { | |
.project(proj)? | ||
.build()?; | ||
|
||
let expected = "Error parsing 'I'M NOT A TIMESTAMP' as timestamp"; | ||
let expected = "Error parsing timestamp from 'I'M NOT A TIMESTAMP'"; | ||
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. 👍 |
||
let actual = get_optimized_plan_err(&plan, &Utc::now()); | ||
assert_contains!(actual, expected); | ||
Ok(()) | ||
|
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.
This test was wrong, index 4 is beyond the bounds of the array. Previously this was fine as the null buffer only enforced the length for multiples of 8