Commit 2a1600a8 by zhangyannao

update

parent d862e962
...@@ -464,12 +464,11 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService { ...@@ -464,12 +464,11 @@ public class FlatQueryResultServiceImpl implements IFlatQueryResultService {
Connection conn = HiveHelper.getHiveConnection(); Connection conn = HiveHelper.getHiveConnection();
if (conn != null) { if (conn != null) {
try { try {
Statement stat = conn.createStatement(); Statement stat = conn.createStatement();
stat.setQueryTimeout(60 * 1000);
// stat.setQueryTimeout(60 * 1000);
stat.execute("REFRESH TABLE " + condition.getTableId()); // 强制刷新表结构 stat.execute("REFRESH TABLE " + condition.getTableId()); // 强制刷新表结构
ResultSet rs = stat.executeQuery(fullQuery); ResultSet rs = stat.executeQuery(fullQuery);
// 生成指定格式下载元文件 // 生成指定格式下载元文件
String originalFilePath = ""; String originalFilePath = "";
if (task.getFormat().equals(DownloadFileFormat.CSV)) { // 如果指定为 CSV 格式 if (task.getFormat().equals(DownloadFileFormat.CSV)) { // 如果指定为 CSV 格式
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment