Class IntervalParserUtils

Object
io.delta.kernel.internal.util.IntervalParserUtils

public class IntervalParserUtils extends Object
Copy of `org/apache/spark/sql/catalyst/util/SparkIntervalUtils.scala` from Apache Spark. Delta table properties store the interval format. We need a parser in order to parse these values in Kernel.
  • Method Details

    • safeParseIntervalAsMillis

      public static long safeParseIntervalAsMillis(String input)
      Parse the given interval string into milliseconds. For configs accepting an interval, we require the user specified string must obey:
      • Doesn't use months or years, since an internal like this is not deterministic.
      • Doesn't use microseconds or nanoseconds part as it too granular to use.
      Returns:
      parsed interval as milliseconds.
    • parseIntervalAsMicros

      public static long parseIntervalAsMicros(String input)