Github user attilapiros commented on a diff in the pull request:
https://github.com/apache/spark/pull/20702#discussion_r171668166
--- Diff:
sql/hive-thriftserver/src/main/java/org/apache/hive/service/cli/session/HiveSessionImpl.java
---
@@ -665,6 +667,25 @@ public void close() throws HiveSQLException {
}
}
+ private void cleanupPipeoutFile() {
+ String lScratchDir = hiveConf.getVar(ConfVars.LOCALSCRATCHDIR);
+ String sessionID = hiveConf.getVar(ConfVars.HIVESESSIONID);
+
+ File[] fileAry = new File(lScratchDir).listFiles(
--- End diff --
Nit: There is an overloaded version of
[listfiles](https://docs.oracle.com/javase/8/docs/api/java/io/File.html#listFiles-java.io.FilenameFilter-).
Using it saves 1 line.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]