We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fec2654 commit b1f202dCopy full SHA for b1f202d
ydb/library/yql/udfs/common/datetime/datetime_udf.cpp
@@ -215,6 +215,7 @@ namespace {
215
SIMPLE_STRICT_UDF(TIntervalTo##unit, type(TAutoMap<TInterval>)) { \
216
Y_UNUSED(valueBuilder); \
217
const i64 input = args[0].Get<i64>(); \
218
+ Y_DEBUG_ABORT_UNLESS(input > -(i64)NUdf::MAX_TIMESTAMP && input < (i64)NUdf::MAX_TIMESTAMP); \
219
TDuration duration = TDuration::MicroSeconds(std::abs(input)); \
220
return TUnboxedValuePod(static_cast<type>(input >= 0 ? duration.unit() : -duration.unit())); \
221
}
0 commit comments