GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.36k stars 315 forks source link

Create or replace flow not working #4976

Open killme2008 opened 1 week ago

killme2008 commented 1 week ago

What type of bug is this?

Unexpected error

What subsystems are affected?

Datanode

Minimal reproduce step

I want to replace a flow but fails:

CREATE OR REPLACE FLOW calc_ngx_country SINK TO ngx_country AS SELECT     DISTINCT country,     date_bin(INTERVAL '1 hour', access_time) as time_window, FROM ngx_access_log GROUP BY     country,     time_window;
ERROR 1050 (42S01): (FlowAlreadyExists): Flow already exists: greptime.calc_ngx_country

What did you expect to see?

Replace the exists flow.

What did you see instead?

ERROR 1050 (42S01): (FlowAlreadyExists)

What operating system did you use?

All

What version of GreptimeDB did you use?

v0.9.5

Relevant log output and stack trace

No response