- 
                Notifications
    
You must be signed in to change notification settings  - Fork 527
 
Description
in the testing section for scio.io.Parquet There are several points where the examples appear out of date or unclear.
- 
predicate filtering: the function
withPredicateappears to have been renamed towithFilter - 
the sequencing of predicate vs projection is inverted - in the first example (avro projection) we have
 
records withProjection projection withPredicate predicatehowever this fails to compile due to apparently interpreting withFilter as a scala collection method, leading to a type mismatch expecting a method returning a Boolean rather than a parquet FilterPredicate.
Fiipping the order to
records withFilter predicate withProjection projectionshould resolve this (tested with the case-class projection approach, which requires other changes - see below)
- postfix operators do not work for the case-class projection method - in the second example we have
 
records withProjection[MyProjection]but this fails with type application is not allowed for postfix operators.  Using a normal method call records.withProjection[MyProjection] resolves this.