Crate risingwave_sqlsmith

Source

Re-exports§

pub use validation::is_permissible_error;

Modules§

reducer
Provides E2E Test runner functionality.
sql_gen 🔒
Provides Data structures for query generation, and the interface for generating stream (MATERIALIZED VIEW) and batch query statements.
test_runners
Contains test runners:
utils 🔒
validation
Provides validation logic for expected errors.

Structs§

Table

Functions§

create_table_statement_to_table
Extract relevant info from CREATE TABLE statement, to construct a Table
differential_sql_gen
generate_update_statements
insert_sql_gen
Generate INSERT
mview_sql_gen
Generate a random CREATE MATERIALIZED VIEW sql string. These are derived from tables.
parse_create_table_statements
parse_sql
Parse SQL FIXME(Noel): Introduce error type for sqlsmith for this.
print_function_table
session_sql_gen
TODO(noel): Eventually all session variables should be fuzzed. For now we start of with a few hardcoded configs. Some config need workarounds, for instance QUERY_MODE, which can lead to stack overflow (a simple workaround is limit length of generated query when QUERY_MODE=local.
sql_gen
Generate a random SQL string.