Filter provides a way to define filtering predicates with a simple algebra. Use filters to process
your files while it is read from a file system and BEFORE its content is transferred to your application.
You can filter by values of leaf fields of your schema. Check
here which field types are supported.
Refer to fields/columns using case class Col. Define filtering conditions using simple algebraic operators, like
equality or greater then (check Col's fields. Combine filter by means of simple algebraic operators &&, ||
and !.
You can also define filters for partitions. Keep in mind that partition value can be only a String.
Filter provides a way to define filtering predicates with a simple algebra. Use filters to process your files while it is read from a file system and BEFORE its content is transferred to your application.
You can filter by values of leaf fields of your schema. Check here which field types are supported. Refer to fields/columns using case class Col. Define filtering conditions using simple algebraic operators, like equality or greater then (check Col's fields. Combine filter by means of simple algebraic operators
&&
,||
and!
.You can also define filters for partitions. Keep in mind that partition value can be only a String.
Given schema:
Search for males in age below 40 (exclusive) or above 50 (inclusive)