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
Hello, we are proposing to integrate stream error checking into sqllogictest. The purpose is to query a background datasource for stream errors recorded during a given period.
traitStreamErrorAdapter{fnadd_data_sources(endpoints:&[str]);fnget_current_count(error_pattern:&str) -> u64;// Internally, can implement retry until satisfied unless timed out logicfnensure_current_count(error_pattern:&str,count:u64,timeout_ms:u64) -> Result<()>;}
// Initialize sqllogictest with data sources
sqllogictest ... --stream_error_data_sources="192.168.1.1:8099,192.168.2.1:8099"
in *.slt:
statement stream error (count 10) QueryError: sql parser error: Expected identifier.*
create materialized view v as ...
statement stream error (count 10) QueryError: sql parser error: Expected identifier.*
insert into t1 values(...) // This causes parse error
In sqllogictest-rs:
let before = adapter.get_current_count("QueryError: sql parser error: Expected identifier.*").await;run_query(query).await?;run_query("flush;").await?;// The timeout is only dependent on some delays by e.g. prometheus in-memory collection, but not by risingwave dataflow.
adapter.ensure_current_count("QueryError: sql parser error: Expected identifier.*", before + 10,100).await?;
The text was updated successfully, but these errors were encountered:
Actually I don't think this is part of the SQL standard... This is probably better done with sqllogictest extension and you might need to ship your custom runner.
Perhaps it's too much effort, we may just write bash scripts since our current surface area is small (and must test source connectors too that can't use slt).
Hello, we are proposing to integrate stream error checking into
sqllogictest
. The purpose is to query a background datasource for stream errors recorded during a given period.The interface is as follows (from: risingwavelabs/risingwave#8037 (comment)):
The interface for
StreamErrorAdapter
:The current syntax for pg response errors are:
The syntax for stream error reporting will be:
The implementation looks like:
// Initialize sqllogictest with data sources sqllogictest ... --stream_error_data_sources="192.168.1.1:8099,192.168.2.1:8099"
in
*.slt
:In
sqllogictest-rs
:The text was updated successfully, but these errors were encountered: