File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
yql/essentials/udfs/common/datetime2 Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2547,6 +2547,16 @@ class TBoundaryOfInterval: public ::NYql::NUdf::TBoxedValue {
2547
2547
}
2548
2548
2549
2549
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
2550
+ // FIXME: The condition below is required to untie the
2551
+ // Gordian knot with the upgrade, when two MiniKQL
2552
+ // runtimes with different versions are being used.
2553
+ // See YQL-19967 for more info.
2554
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
2555
+ ::TStringBuilder sb;
2556
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
2557
+ builder.SetError (sb);
2558
+ return true ;
2559
+ }
2550
2560
BuildSignature<TM64ResourceName, WBoundary>(builder, typesOnly);
2551
2561
return true ;
2552
2562
}
@@ -2681,6 +2691,16 @@ class TTimeOfDay: public ::NYql::NUdf::TBoxedValue {
2681
2691
}
2682
2692
2683
2693
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
2694
+ // FIXME: The condition below is required to untie the
2695
+ // Gordian knot with the upgrade, when two MiniKQL
2696
+ // runtimes with different versions are being used.
2697
+ // See YQL-19967 for more info.
2698
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
2699
+ ::TStringBuilder sb;
2700
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
2701
+ builder.SetError (sb);
2702
+ return true ;
2703
+ }
2684
2704
BuildSignature<TM64ResourceName>(builder, typesOnly);
2685
2705
return true ;
2686
2706
}
You can’t perform that action at this time.
0 commit comments