test: looser condition (#5816)

This commit is contained in:
discord9
2025-04-02 15:38:05 +08:00
committed by GitHub
parent dbb79c9671
commit 3aebfc1716
2 changed files with 7 additions and 7 deletions

View File

@@ -24,13 +24,13 @@ CREATE FLOW user_agent_flow SINK TO user_agent_statistics AS SELECT user_agent,
Affected Rows: 0
SELECT created_time = updated_time, created_time IS NOT NULL, source_table_names FROM information_schema.flows WHERE flow_name = 'user_agent_flow';
SELECT created_time <= updated_time, created_time IS NOT NULL, source_table_names FROM information_schema.flows WHERE flow_name = 'user_agent_flow';
+-------------------------------------------------------------------------------+---------------------------------------------------+--------------------------------+
| information_schema.flows.created_time = information_schema.flows.updated_time | information_schema.flows.created_time IS NOT NULL | source_table_names |
+-------------------------------------------------------------------------------+---------------------------------------------------+--------------------------------+
| true | true | greptime.public.ngx_access_log |
+-------------------------------------------------------------------------------+---------------------------------------------------+--------------------------------+
+--------------------------------------------------------------------------------+---------------------------------------------------+--------------------------------+
| information_schema.flows.created_time <= information_schema.flows.updated_time | information_schema.flows.created_time IS NOT NULL | source_table_names |
+--------------------------------------------------------------------------------+---------------------------------------------------+--------------------------------+
| true | true | greptime.public.ngx_access_log |
+--------------------------------------------------------------------------------+---------------------------------------------------+--------------------------------+
CREATE OR REPLACE FLOW user_agent_flow SINK TO user_agent_statistics AS SELECT user_agent, COUNT(user_agent)+123 AS total_count FROM ngx_access_log GROUP BY user_agent;

View File

@@ -12,7 +12,7 @@ INSERT INTO ngx_access_log VALUES ('192.168.1.1', 'GET', '/index.html', 200, 512
CREATE FLOW user_agent_flow SINK TO user_agent_statistics AS SELECT user_agent, COUNT(user_agent) AS total_count FROM ngx_access_log GROUP BY user_agent;
SELECT created_time = updated_time, created_time IS NOT NULL, source_table_names FROM information_schema.flows WHERE flow_name = 'user_agent_flow';
SELECT created_time <= updated_time, created_time IS NOT NULL, source_table_names FROM information_schema.flows WHERE flow_name = 'user_agent_flow';
CREATE OR REPLACE FLOW user_agent_flow SINK TO user_agent_statistics AS SELECT user_agent, COUNT(user_agent)+123 AS total_count FROM ngx_access_log GROUP BY user_agent;