Skip to content

ColumnPredicateBuilder

ColumnPredicateBuilder is a DataSkippingPredicateBuilder that UsesMetadataFields.

equalTo

Signature
equalTo(
  statsProvider: StatsProvider,
  colPath: Seq[String],
  value: Column): Option[DataSkippingPredicate]

equalTo is part of the DataSkippingPredicateBuilder abstraction.

equalTo requests the given StatsProvider for getPredicateWithStatTypes for the given colPath and the following metadata:

equalTo builds a Catalyst expression to match files with the requested value:

min <= value && value <= max

greaterThan

Signature
greaterThan(
  statsProvider: StatsProvider,
  colPath: Seq[String],
  value: Column): Option[DataSkippingPredicate]

greaterThan is part of the DataSkippingPredicateBuilder abstraction.

greaterThan requests the given StatsProvider for getPredicateWithStatType for the given colPath and the following metadata:

greaterThan builds a Catalyst expression to match files with the requested value:

c > value