You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2020/11/29 12:22:10 UTC
[zeppelin] branch branch-0.9 updated: [hotfix] code style fix
This is an automated email from the ASF dual-hosted git repository.
zjffdu pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/zeppelin.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new dc38abe [hotfix] code style fix
dc38abe is described below
commit dc38abefb5a10156af2f53f46ca03ac723dd2481
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Sun Nov 29 20:21:03 2020 +0800
[hotfix] code style fix
---
jdbc/src/main/java/org/apache/zeppelin/jdbc/hive/HiveUtils.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/jdbc/src/main/java/org/apache/zeppelin/jdbc/hive/HiveUtils.java b/jdbc/src/main/java/org/apache/zeppelin/jdbc/hive/HiveUtils.java
index 026cbb8..16a242c 100644
--- a/jdbc/src/main/java/org/apache/zeppelin/jdbc/hive/HiveUtils.java
+++ b/jdbc/src/main/java/org/apache/zeppelin/jdbc/hive/HiveUtils.java
@@ -131,7 +131,7 @@ public class HiveUtils {
// Sometimes, maybe hiveStmt was closed unnormally, hiveStmt.hasMoreLogs() will be true,
// this loop cannot jump out, and exceptions thrown.
// Add the below codes in case.
- if(hiveStmt.isClosed()){
+ if (hiveStmt.isClosed()){
break;
}
} catch (SQLException e) {
@@ -148,7 +148,8 @@ public class HiveUtils {
if (progressBar != null) {
// old: hiveStmt.setInPlaceUpdateStream(progressBar.getInPlaceUpdateStream(context.out));
- // Move codes into ProgressBar to delay NoClassDefFoundError of InPlaceUpdateStream until ProgressBar instanced.
+ // Move codes into ProgressBar to delay NoClassDefFoundError of InPlaceUpdateStream
+ // until ProgressBar instanced.
// When hive < 2.3, ProgressBar will not be instanced, so it works well.
progressBar.setInPlaceUpdateStream(hiveStmt, context.out);
}