Skip to content

Commit

Permalink
fixed a typo in the user guide
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre committed Dec 23, 2014
1 parent db4d1b5 commit 684ecae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/scala/com/nicta/scoobi/guide/LoadAndPersist.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ One of the advantages of using `fromDelimitedTextFile` is that we have at our di

// load CSV and pull out id and second_name if first_name is "Harry"
val names = fromDelimitedTextFile("hdfs://path/to/CSV/files/*", ",") {
case AnyInt(id) :: "Harry" :: second_name :: age :: _ => (id, second_name)
case AnInt(id) :: "Harry" :: second_name :: age :: _ => (id, second_name)
}

We can of course supply multiple patterns:
Expand Down

0 comments on commit 684ecae

Please sign in to comment.