Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test error.
  • Loading branch information
wangyum committed Jul 26, 2018
commit d684d38c6731f84d568a8e42f6ff0455cf6ba700
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ case class InsertIntoHadoopFsRelationCommand(


// update metastore partition metadata
if (staticPartitions.nonEmpty) {
// Avoid empty partition can't loaded.
if (staticPartitions.nonEmpty && updatedPartitionPaths.isEmpty) {
// Avoid empty static partition can't loaded to datasource table.
refreshUpdatedPartitions(Set(PartitioningUtils.getPathFragment(staticPartitions)))
} else {
refreshUpdatedPartitions(updatedPartitionPaths)
Expand Down