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 had searched in the issues and found no similar issues.
Version
v1.2.673
What's Wrong?
I realise this is very new, but I'm trying to add new Interval type to Databend SQLAlchemy dialect and receive error message during test run.
FAILED [100%]
../../py312/lib/python3.12/site-packages/sqlalchemy/testing/suite/test_types.py:478 (IntervalTest_databend+databend_1_2_673.test_literal)
Traceback (most recent call last):
File "/home/plaid/src/databend-sqlalchemy/databend_sqlalchemy/connector.py", line 190, in execute
rows = self._db.query_iter(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^
Exception: APIError: QueryFailed: [1065]error:
--> SQL:3:11
|
1 | SELECT t.x
2 | FROM t
3 | WHERE t.x = to_interval('86404.0 seconds')
| ^ no function matches signature `eq(Interval NULL, Interval)`, you might need to add explicit type casts.
candidate functions:
eq(Variant, Variant) :: Boolean : unable to unify `Interval NULL` with `Variant`
eq(Variant NULL, Variant NULL) :: Boolean NULL : unable to unify `Interval` with `Variant`
eq(String, String) :: Boolean : unable to unify `Interval NULL` with `String`
... and 31 more
How to Reproduce?
CREATE TABLE t (
x INTERVAL
);
INSERT INTO t (x) VALUES (to_interval('86404.0 seconds'));
INSERT INTO t (x) VALUES (NULL);
SELECT t.x
FROM t
WHERE t.x = to_interval('86404.0 seconds');
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered:
Search before asking
Version
v1.2.673
What's Wrong?
I realise this is very new, but I'm trying to add new Interval type to Databend SQLAlchemy dialect and receive error message during test run.
How to Reproduce?
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: