Package io.delta.kernel.internal.util
Class IntervalParserUtils
Object
io.delta.kernel.internal.util.IntervalParserUtils
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 Summary
Modifier and TypeMethodDescriptionstatic longparseIntervalAsMicros(String input) static longsafeParseIntervalAsMillis(String input) Parse the given interval string into milliseconds.
-
Method Details
-
safeParseIntervalAsMillis
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
-