Skip to content
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

Feature: delete where conditions support deterministic #15376

Open
wubx opened this issue Apr 29, 2024 · 0 comments
Open

Feature: delete where conditions support deterministic #15376

wubx opened this issue Apr 29, 2024 · 0 comments
Assignees
Labels
C-feature Category: feature

Comments

@wubx
Copy link
Member

wubx commented Apr 29, 2024

Summary

error: APIError: ResponseError with 1002: Delete must have deterministic predicate

root@localhost:8000/default> create table t0429(c1 int, c2 date);

CREATE TABLE t0429(c1 int, c2 date)

root@localhost:8000/default> insert into t0429 values(1,'2024-04-29');

INSERT INTO
  t0429
VALUES
(1, '2024-04-29')

root@localhost:8000/default> delete from t0429 where c2=today();
error: APIError: ResponseError with 1002: Delete must have deterministic predicate
root@localhost:8000/default> select today();

SELECT
  today()

┌────────────┐
│   today()  │
│    Date    │
├────────────┤
│ 2024-04-29 │
└────────────┘
1 row read in 0.005 sec. Processed 1 row, 1 B (185.41 row/s, 185 B/s)

@wubx wubx added the C-feature Category: feature label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

No branches or pull requests

2 participants