@Override
    public SQLRecognizer getSelectForUpdateRecognizer(String sql, SQLStatement ast) {
        if (((SQLSelectStatement) ast).getSelect().getFirstQueryBlock().isForUpdate()) {
            return new PolarDBXSelectForUpdateRecognizer(sql, ast);
        }
        return null;
    }
@Test
    public void getSelectForUpdateTest() {
        // common select without lock
        String sql = "SELECT name FROM t1 WHERE id = 1";
        SQLStatement sqlStatement = getSQLStatement(sql);
        Assertions.assertNull(new PolarDBXOperateRecognizerHolder().getSelectForUpdateRecognizer(sql, sqlStatement));

        // select for update
        sql += " FOR UPDATE";
        sqlStatement = getSQLStatement(sql);
        Assertions.assertNotNull(new PolarDBXOperateRecognizerHolder().getSelectForUpdateRecognizer(sql, sqlStatement));
    }