Module utils

Source

Functionsยง

create_base_tables ๐Ÿ”’
Create the tables defined in testdata, along with some mviews. TODO: Generate indexes and sinks.
create_mviews ๐Ÿ”’
Create the tables defined in testdata, along with some mviews. TODO: Generate indexes and sinks.
drop_mview_table ๐Ÿ”’
Drops mview tables.
drop_tables ๐Ÿ”’
Drops mview tables and seed tables
format_drop_mview ๐Ÿ”’
generate_rng ๐Ÿ”’
get_seed_table_sql ๐Ÿ”’
populate_tables ๐Ÿ”’
run_query ๐Ÿ”’
run_query_inner ๐Ÿ”’
Run query, handle permissible errors For recovery error, just do bounded retry. For other errors, validate them accordingly, skipping if they are permitted. Otherwise just return success. If takes too long return the query which timed out + execution time + timeout error Returns: Number of skipped queries, number of rows returned.
set_variable ๐Ÿ”’
test_batch_queries ๐Ÿ”’
Test batch queries, returns skipped query statistics Runs in distributed mode, since queries can be complex and cause overflow in local execution mode.
test_population_count ๐Ÿ”’
Expects at least 50% of inserted rows included.
test_session_variable ๐Ÿ”’
test_sqlsmith ๐Ÿ”’
Sanity checks for sqlsmith
test_stream_queries ๐Ÿ”’
Test stream queries, returns skipped query statistics
update_base_tables ๐Ÿ”’
validate_response ๐Ÿ”’
Validate client responses, returning a count of skipped queries, number of result rows.

Type Aliasesยง

PgResult ๐Ÿ”’
Result ๐Ÿ”’