You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the errors are now much improved so closing this ticket:
❯ create table foo (x timestamp) as values ('2023-01-01');
0 rows in set. Query took 0.005 seconds.
❯ select * from foo;
+---------------------+
| x |
+---------------------+
| 2023-01-01T00:00:00 |
+---------------------+
1 row in set. Query took 0.002 seconds.
❯ select avg(x) from foo;
Error during planning: The function Avg does not support inputs of type Timestamp(Nanosecond, None).
❯
Note: migrated from original JIRA: https://issues.apache.org/jira/browse/ARROW-12319
When you try and run a query such as
{code}
select AVG(ts_colum) from t;
{code}
where ts_column has
DataType::Timestamp
type, you get a pretty unintelligible error message"Coercion from [Timestamp(Nanosecond, None)] to the signature Uniform(1, [Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32, Float64]) failed."
This error should be improved to say something more like "AVG is not supported for {datatype} try an explicit cast."
The text was updated successfully, but these errors were encountered: