Skip to content

Commit

Permalink
[ADAM-1179] Improve error message when globbing a parquet file fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
fnothaft committed Sep 20, 2016
1 parent ca4d964 commit 8bd6c0e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ class ADAMContext private (@transient val sc: SparkContext) extends Serializable
// the path must match at least one file
if (paths.isEmpty) {
throw new FileNotFoundException(
s"Couldn't find any files matching ${path.toUri}"
s"Couldn't find any files matching ${path.toUri}. If you are trying to" +
" glob a directory of Parquet files, you need to glob inside the" +
" directory as well (e.g., \"glob.me.*.adam/*\", instead of" +
" \"glob.me.*.adam\"."
)
}

Expand Down

0 comments on commit 8bd6c0e

Please sign in to comment.