Similar to T332941: Warning: SQLPlatform::isWriteQuery fallback to regex (from Wikibase EntityUsageTable):
Triggered around 28K/hour. Like the Wikibase violation above, this too is due the API code using IDatabase::unionQueries(). It seems the Rdbms library currently doesn't offer any other way to run union queries.
Wikimedia\Rdbms\Platform\SQLPlatform::isWriteQuery fallback to regex
#0 /srv/mediawiki/php-1.41.0-wmf.1/includes/libs/rdbms/database/Database.php(934): Wikimedia\Rdbms\Platform\SQLPlatform->isWriteQuery(string, integer) … #4 /srv/mediawiki/php-1.41.0-wmf.1/includes/api/ApiQueryRevisions.php(261): Wikimedia\Rdbms\DBConnRef->query(string, string) #5 /srv/mediawiki/php-1.41.0-wmf.1/includes/api/ApiQueryRevisionsBase.php(136): ApiQueryRevisions->run() #6 /srv/mediawiki/php-1.41.0-wmf.1/includes/api/ApiQuery.php(679): ApiQueryRevisionsBase->execute() #7 /srv/mediawiki/php-1.41.0-wmf.1/includes/api/ApiMain.php(1906): ApiQuery->execute() #8 /srv/mediawiki/php-1.41.0-wmf.1/includes/api/ApiMain.php(883): ApiMain->executeAction() #9 /srv/mediawiki/php-1.41.0-wmf.1/includes/api/ApiMain.php(854): ApiMain->executeActionWithErrorHandling() #10 /srv/mediawiki/php-1.41.0-wmf.1/api.php(91): ApiMain->execute() #11 /srv/mediawiki/php-1.41.0-wmf.1/api.php(46): wfApiMain() #12 /srv/mediawiki/w/api.php(3): require(string) #13 {main}