public void execute(Connection connection, String sql, int batchSize, ResultSetConsumer consumer) {
        try (Statement stmt = connection.createStatement()) {
            stmt.setFetchSize(batchSize);
            boolean query = stmt.execute(sql);
            // Represents the query
            if (query) {
                try (ResultSet rs = stmt.getResultSet()) {
                    consumer.accept(rs);
                }
            }
        } catch (Exception e) {
            log.error("execute error:{}", sql, e);
            throw new RuntimeException(e);
        }
    }
Formats the given table name by stripping off any schema or catalog prefixes.
If the table name contains a dot ('.'), it splits the string by the dot
and returns the last part, which is generally the actual table name.
If the table name is blank (null, empty, or only whitespace), it returns the original table name.

@param tableName the original table name, potentially including schema or catalog prefixes.
@return the formatted table name, or the original table name if it's blank or contains no dot.
chat2db-server/chat2db-spi/src/main/java/ai/chat2db/spi/sql/SQLExecutor.java