top.wboost.common.boost.handler.HiveSqlBoostHandler Maven / Gradle / Ivy
package top.wboost.common.boost.handler;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import top.wboost.common.util.StringUtil;
import top.wboost.common.utils.web.utils.HtmlUtil;
//@AutoWebApplicationConfig("hiveSqlBoostHandler")
public class HiveSqlBoostHandler extends AbstractSqlBoostHandler {
@Override
@SuppressWarnings("unchecked")
public ModelAndView handleInternal(HttpServletRequest request, HttpServletResponse response) {
String sql = request.getParameter("sql");
String split = request.getParameter("split");
if (split == null)
split = "\t";
if (StringUtil.notEmpty(sql)) {
List