Object
org.apache.spark.sql.internal.connector.ExpressionWithToString
All Implemented Interfaces:
Serializable, Expression, Literal<Boolean>, scala.Serializable

@Evolving public final class AlwaysTrue extends Predicate implements Literal<Boolean>
A predicate that always evaluates to true.
Since:
3.3.0
See Also:
  • Constructor Details

    • AlwaysTrue

      public AlwaysTrue()
  • Method Details

    • value

      public Boolean value()
      Description copied from interface: Literal
      Returns the literal value.
      Specified by:
      value in interface Literal<Boolean>
    • dataType

      public DataType dataType()
      Description copied from interface: Literal
      Returns the SQL data type of the literal.
      Specified by:
      dataType in interface Literal<Boolean>
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.spark.sql.internal.connector.ExpressionWithToString