Skip to content

Commit

Permalink
Fix mdoc compilation in site (#4674)
Browse files Browse the repository at this point in the history
  • Loading branch information
clairemcginty authored Jan 25, 2023
1 parent dcaac2b commit 9a9dec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/src/main/paradox/io/Parquet.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Starting in Magnolify 0.4.8 (corresponding to Scio 0.11.6 and above), predicates
import com.spotify.scio._
import com.spotify.scio.parquet.types._
import magnolify.parquet._
import org.apache.parquet.filter2.predicate.FilterApi

object ParquetJob {
case class MyRecord(int_field: Int, string_field: String)
Expand All @@ -137,7 +138,7 @@ object ParquetJob {
sc.typedParquetFile[MyRecord]("input.parquet", predicate = FilterApi.and(
Predicate.onField[String]("string_field")(_.startsWith("a")),
Predicate.onField[Int]("int_field")(_ % 2 == 0))
))
)

sc.run()
()
Expand Down

0 comments on commit 9a9dec6

Please sign in to comment.