-
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 36 #5685
Update to arrow 36 #5685
Changes from 7 commits
7f16660
00cc526
660f975
fc29c81
f438ab7
90ef378
18ab4a2
2872f68
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. Bug fix -- see apache/arrow-rs#3803 |
||
"| [a] |", | ||
"| [d] |", | ||
"| [b] |", | ||
"+-----------------------------------+", | ||
]; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1390,7 +1390,7 @@ as values | |
('2021-1-1T05:11:10.432', 'Row 3'); | ||
|
||
|
||
statement ok | ||
statement error DataFusion error: Arrow error: Parser error: Error parsing timestamp from '2021-1-1T05:11:10.432': error parsing date | ||
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 think we should change the data in this test so it passes Also, it looks like a slight regression to me in that parsing So I suggest: 1. Change this test from
to something like
2 file an upstream ticket in arrow-rs to be more lenientAka to accept 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.
Will do
I would strongly request we do not do this, it will severely hurt performance for an incredibly esoteric use-case. It isn't actually documented that chrono supports this, and we have never intentionally supported it either |
||
create table t as | ||
select | ||
arrow_cast(column1, 'Timestamp(Nanosecond, None)') as nanos, | ||
|
@@ -1401,49 +1401,38 @@ select | |
from t_source; | ||
|
||
# Demonstate the contents | ||
query PPPPT | ||
query error DataFusion error: Error during planning: table 'datafusion.public.t' not found | ||
select * from t; | ||
---- | ||
2018-11-13T17:11:10.011375885 2018-11-13T17:11:10.011375 2018-11-13T17:11:10.011 2018-11-13T17:11:10 Row 0 | ||
2011-12-13T11:13:10.123450 2011-12-13T11:13:10.123450 2011-12-13T11:13:10.123 2011-12-13T11:13:10 Row 1 | ||
NULL NULL NULL NULL Row 2 | ||
2021-01-01T05:11:10.432 2021-01-01T05:11:10.432 2021-01-01T05:11:10.432 2021-01-01T05:11:10 Row 3 | ||
|
||
|
||
# aggregate_timestamps_sum | ||
statement error Error during planning: The function Sum does not support inputs of type Timestamp\(Nanosecond, None\) | ||
statement error DataFusion error: Error during planning: table 'datafusion.public.t' not found | ||
SELECT sum(nanos), sum(micros), sum(millis), sum(secs) FROM t; | ||
|
||
# aggregate_timestamps_count | ||
query IIII | ||
query error DataFusion error: Error during planning: table 'datafusion.public.t' not found | ||
SELECT count(nanos), count(micros), count(millis), count(secs) FROM t; | ||
---- | ||
3 3 3 3 | ||
|
||
|
||
# aggregate_timestamps_min | ||
query PPPP | ||
query error DataFusion error: Error during planning: table 'datafusion.public.t' not found | ||
SELECT min(nanos), min(micros), min(millis), min(secs) FROM t; | ||
---- | ||
2011-12-13T11:13:10.123450 2011-12-13T11:13:10.123450 2011-12-13T11:13:10.123 2011-12-13T11:13:10 | ||
|
||
# aggregate_timestamps_max | ||
query PPPP | ||
query error DataFusion error: Error during planning: table 'datafusion.public.t' not found | ||
SELECT max(nanos), max(micros), max(millis), max(secs) FROM t; | ||
---- | ||
2021-01-01T05:11:10.432 2021-01-01T05:11:10.432 2021-01-01T05:11:10.432 2021-01-01T05:11:10 | ||
|
||
|
||
|
||
# aggregate_timestamps_avg | ||
statement error Error during planning: The function Avg does not support inputs of type Timestamp\(Nanosecond, None\). | ||
statement error DataFusion error: Error during planning: table 'datafusion.public.t' not found | ||
SELECT avg(nanos), avg(micros), avg(millis), avg(secs) FROM t | ||
|
||
|
||
statement ok | ||
drop table t_source; | ||
|
||
statement ok | ||
statement error DataFusion error: Execution error: Table 't' doesn't exist. | ||
drop table t; | ||
|
||
# All supported time types | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -564,4 +564,4 @@ insert into foo values (null); | |
query I | ||
select * from foo; | ||
---- | ||
NULL | ||
NULL |
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.
See #5441 (comment)
This test was wrong