code: public String doTranslate(Dialect d, String sql) {
  		if (StrUtils.isEmpty(sql))
  			return sql;
  		// if prefix not empty and SQL not include prefix, directly return
  		if (!StrUtils.isEmpty(Dialect.getGlobalSqlFunctionPrefix())
  				&& !StrUtils.containsIgnoreCase(sql, Dialect.getGlobalSqlFunctionPrefix()))
  			return sql;
  		char[] chars = (" " + sql + " ").toCharArray();
  		DialectSqlItem[] items = seperateCharsToItems(chars, 1, chars.length - 2);
  		for (DialectSqlItem item : items) {
  			correctType(item);
  		}
  		String result = join(d, true, null, items);
  		if (Dialect.getGlobalAllowShowSql())
  			Dialect.logger.info("Translated sql: " + result);
  		return result;
  	}
docs: Translate universal SQL to native SQL, all #xxx() format universal SQL
  functions will be translate to xxx() native SQL functions