-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Description
Describe the bug
This test case:
query R
SELECT a + 2 FROM (SELECT CAST(a::INT AS DECIMAL(14,2)) FROM test) ORDER BY 1;
----
Fails with this error:
Error source: query failed: Cannot clone arrays with different data types
self: Decimal64(15,2)
other: Decimal64(16,2)
glaredb/slt/standard/cast/reference_through_cast.slt
Lines 61 to 66 in c0db56c
| # TODO: Error source: query failed: Cannot clone arrays with different data types | |
| # self: Decimal64(15,2) | |
| # other: Decimal64(16,2) | |
| # query R | |
| # SELECT a + 2 FROM (SELECT CAST(a::INT AS DECIMAL(14,2)) FROM test) ORDER BY 1; | |
| # ---- |
To Reproduce
See test case
Expected behavior
No error, and produce correct results
3.00
4.00
5.00
6.00
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels