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

Allow WHERE clause when create table. #14972

Closed
st1page opened this issue Feb 4, 2024 · 2 comments
Closed

Allow WHERE clause when create table. #14972

st1page opened this issue Feb 4, 2024 · 2 comments

Comments

@st1page
Copy link
Contributor

st1page commented Feb 4, 2024

CREATE TABLE t(
    v int,
    k int primary key,
    proc_time timestamptz as proctime()
) 
WHERE proc_time > now() - 1 'day' AND v > 10
with (
    connnector = 'kafka'
) FORMAT PLAIN ENCODE JSON;

original requirement: some user want to do state cleaning on the cdc-table and we can do temporal filter on it.

@github-actions github-actions bot added this to the release-1.7 milestone Feb 4, 2024
@neverchanje neverchanje removed this from the release-1.7 milestone Feb 4, 2024
@neverchanje
Copy link
Contributor

I personally feel this is low-priority, because I see no popular RDBMS having TTL support. Users typically use range-partitioning to archive old data rather than deleting them, while RisingWave is already based on archive stores. There's no need for data archival.

Possible use cases for this feature can be TTL on non-CDC table, including append-only tables. TTL for append-only tables is tracked in #14791.

Copy link
Contributor

github-actions bot commented Apr 5, 2024

This issue has been open for 60 days with no activity. Could you please update the status? Feel free to continue discussion or close as not planned.

@st1page st1page added this to the release-1.10 milestone May 14, 2024
@st1page st1page closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants