Class PartitionValueExpression

Object
io.delta.kernel.expressions.PartitionValueExpression
All Implemented Interfaces:
Expression

@Evolving public class PartitionValueExpression extends Object implements Expression
Expression to decode the serialized partition value into partition type value according the Delta Protocol spec. Currently all valid partition types are supported except the `timestamp` and `timestamp without timezone` types.

  • Name: partition_value
  • Semantic: partition_value(string, datatype). Decode the partition value of type datatype from the serialized string format.
Since:
3.0.0
  • Constructor Details

    • PartitionValueExpression

      public PartitionValueExpression(Expression serializedPartitionValue, DataType partitionDataType)
      Create partition_value expression.
      Parameters:
      serializedPartitionValue - Input expression providing the partition values in serialized format.
      partitionDataType - Partition data type to which string partition value is deserialized as according to the Delta Protocol.
  • Method Details

    • getInput

      public Expression getInput()
      Get the expression reference to the serialized partition value.
    • getDataType

      public DataType getDataType()
      Get the data type of the partition value.
    • getChildren

      public List<Expression> getChildren()
      Specified by:
      getChildren in interface Expression
      Returns:
      a list of expressions that are input to this expression.
    • toString

      public String toString()
      Overrides:
      toString in class Object