Skip to content

Commit 8d0bd7f

Browse files
committed
Update
1 parent 5b0448c commit 8d0bd7f

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

check.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,12 @@ grep -v "window functions are not allowed in table function arguments" |
152152
grep -v "window functions are not allowed in OR argument" |
153153
grep -v "window functions are not allowed in AND argument" |
154154
grep -v "LIMIT must not be negative" |
155+
grep -v "window functions are not allowed in" |
156+
grep -v "aggregate functions are not allowed in" |
157+
grep -v "internal transform error: exceeded recursion limit of" |
158+
grep -v "attempt to create relation with too many columns" |
159+
grep -v "timestamp cannot be NaN" |
160+
grep -v "regexp_extract must specify at least one capture group" |
161+
grep -v "nested aggregate functions are not allowed" |
162+
grep -v "materialized view objects cannot depend on log sources" | # TODO: This occurs often!
155163
sort | uniq -c | sort -n

postgres.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state
192192
for (const auto &obj : data["tables"]) {
193193
string schema = obj["schema"].get<string>();
194194
string db = obj["db"].get<string>();
195-
if (no_catalog && ((schema == "pg_catalog") || (schema == "mz_catalog") || (schema == "mz_internal") || (schema == "information_schema")))
195+
if (no_catalog && ((schema == "pg_catalog") || (schema == "mz_catalog") || (schema == "mz_internal") || (schema == "information_schema") || (schema == "mz_introspection")))
196196
continue;
197197

198198
tables.push_back(table(w.quote_name(obj["name"].get<string>()),
@@ -408,7 +408,6 @@ schema_pqxx::schema_pqxx(std::string &conninfo, bool no_catalog, bool dump_state
408408
"AND NOT mz_functions.name in ('aclitemin', 'boolin', 'bpcharin', 'byteain', 'charin', 'float4in', 'float8in', 'int2in', 'int2vectorin', 'int4in', 'int8in', 'namein', 'oidin', 'regclassin', 'regprocin', 'regtypein', 'textin', 'varcharin') " // all in functions are not yet supported, but don't exclude functions like 'min', 'sin', date_bin', so better keep an explicit list
409409
"AND mz_functions.name <> 'mz_row_size' " // mz_row_size requires a record type
410410
"AND mz_functions.name <> 'jsonb_build_object' " // argument list must have even number of elements
411-
"AND mz_functions.name <> 'mz_now' " // https://github.com/MaterializeInc/materialize/issues/18045
412411
"AND NOT mz_functions.name like 'has_%_privilege' " // common "does not exist" errors
413412
"AND NOT mz_functions.name like 'mz_%_oid' " // common "does not exist" errors
414413
"AND mz_functions.name <> 'mz_global_id_to_name' " // common "does not exist" errors

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
NUM_INSTANCES=${1:-16}
33
while (( --NUM_INSTANCES >= 0 )); do
4-
./sqlsmith --max-joins=1 --verbose --target="host=localhost port=6875 dbname=materialize user=materialize" > $NUM_INSTANCES.log &
4+
./sqlsmith --max-joins=2 --verbose --target="host=localhost port=6875 dbname=materialize user=materialize" > $NUM_INSTANCES.log &
55
done
66
wait

0 commit comments

Comments
 (0)