Skip to content

Commit 9d75854

Browse files
committed
optimize
1 parent c20c390 commit 9d75854

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,11 +616,9 @@ private[hive] class HiveClientImpl(
616616
shim.createPartitions(client, db, table, parts, ignoreIfExists)
617617
}
618618

619-
val HIDDEN_FILES_PATH_FILTER: PathFilter = new PathFilter() {
620-
override def accept(p: Path): Boolean = {
619+
val HIDDEN_FILES_PATH_FILTER: PathFilter = (p: Path) => {
621620
val name = p.getName
622621
!name.startsWith("_") && !name.startsWith(".")
623-
}
624622
}
625623

626624
@throws[Exception]

0 commit comments

Comments
 (0)