Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Aug 18, 2014
1 parent 27984d0 commit abee26d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ private[parquet] object ParquetTypesConverter extends Logging {
}
ParquetRelation.enableLogForwarding()

println(fs.listStatus(path).toSeq)

val children = fs.listStatus(path).filterNot { status =>
val name = status.getPath.getName
name(0) == '.' || name == FileOutputCommitter.SUCCEEDED_FILE_NAME
Expand All @@ -393,7 +395,7 @@ private[parquet] object ParquetTypesConverter extends Logging {
.orElse(children.find(_.getPath.getName == ParquetFileWriter.PARQUET_METADATA_FILE))
.map(ParquetFileReader.readFooter(conf, _))
.getOrElse(
throw new IllegalArgumentException(s"Could not find Parquet metadata at path $path"))
throw new IllegalArgumentException(s"Could not find Parquet metadata at path $path in ${children.map(_.getPath.getName).toSeq}"))
}

/**
Expand Down

0 comments on commit abee26d

Please sign in to comment.