kushagra.dubey
11/06/2026, 12:39 PMtoo many filtered rows for a sink I created in Risingwave. The MV in risingwave has records but total number of records in the starrocks table are 0. and this is the error I can see in aborted transactionsRocky
11/06/2026, 12:40 PMmax_filter_ratio (default 0, i.e. zero tolerance). Because every row got filtered, the target table stays empty — so this isn't "no data arrived", it's "all data was rejected".
Step 1 — get the real reason (the message alone won't tell you)
sql
SELECT LABEL, STATE, SCAN_ROWS, FILTERED_ROWS, SINK_ROWS, ERROR_MSG,
TRACKING_SQL, REJECTED_RECORD_PATH
FROM information_schema.loads
WHERE TABLE_NAME = '<your_table>' AND DB_NAME = '<your_db>'
ORDER BY CREATE_TIME DESC LIMIT 10;
-- then, with the LABEL
SELECT * FROM information_schema.load_tracking_logs WHERE label = '<label>'\G
REJECTED_RECORD_PATH gives you the actual rejected rows (wget <path>), but only if the load job was submitted with log_rejected_record_num > 0 — default is 0, so it's often NULL. Same for the ErrorURL in the Stream Load response.
Step 2 — most likely causes given 100% filtered
Per the docs, the common unqualified-row errors are:
• actual column number is less than/more than schema column number → the sink's column list doesn't match the StarRocks table (missing/extra column, or wrong order). Very common with RisingWave sinks.
• convert csv string to INT failed → type mismatch between the RisingWave source/MV column and the StarRocks column.
• the length of input is too long than schema → value wider than the target column (e.g. VARCHAR(n) too small).
• DECIMAL precision/scale overflow.
• there is no corresponding partition for this key → partition column value outside the defined range.
• Non-nullable target column receiving NULL.
RisingWave-specific things worth checking:
• Compare the sink's column set/order with SHOW CREATE TABLE <table> on StarRocks. Names and order must line up.
• Check the type mapping — TIME, TIMESTAMP WITH TIME ZONE, INTERVAL, BYTEA are not directly supported and must be cast (e.g. to `VARCHAR`/`TIMESTAMP`) before sinking.
• If starrocks.partial_update = true, only works on Primary Key tables and requires the PK columns to be present in every batch.
Step 3 — reproduce in isolation
Do a manual Stream Load of one JSON row with strict_mode:true and `log_rejected_record_num:-1`; the ErrorURL will then show the exact reason for that row:
curl -v -u <user>:<pw> -H "format: json" -H "strip_outer_array: true" \
-H "strict_mode: true" -H "log_rejected_record_num: -1" \
-T row.json -XPUT http://<fe_host>:8030/api/<db>/<table>/_stream_load
Don't just raise max_filter_ratio. strict_mode: false converts bad values to NULL instead of rejecting, which would "make it work" but silently corrupt data — fine only if the columns are nullable and you accept the loss.
Caveat: I couldn't find a doc page that names the exact string "too many filtered rows", so I'm inferring from the filtering/`max_filter_ratio` behaviour above rather than quoting it. If you paste the ERROR_MSG / tracking log output, I can narrow it to a specific column issue. Also worth confirming on the RisingWave side whether it exposes an option to pass extra Stream Load headers — I couldn't verify that from the StarRocks docs.
References
• sql-reference/sql-statements/loading_unloading/STREAM_LOAD.md
• loading/load_concept/strict_mode.md