@@ -385,6 +385,16 @@ struct TGetTimeComponent {
385
385
Y_ENSURE (!block);
386
386
387
387
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
388
+ // FIXME: The condition below is required to untie the
389
+ // Gordian knot with the upgrade, when two MiniKQL
390
+ // runtimes with different versions are being used.
391
+ // See YQL-19967 for more info.
392
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
393
+ ::TStringBuilder sb;
394
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
395
+ builder.SetError (sb);
396
+ return true ;
397
+ }
388
398
BuildSignature<TFieldStorage, TM64ResourceName, WAccessor>(builder, typesOnly);
389
399
return true ;
390
400
}
@@ -1166,6 +1176,16 @@ class TGetDateComponent: public ::NYql::NUdf::TBoxedValue {
1166
1176
}
1167
1177
1168
1178
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
1179
+ // FIXME: The condition below is required to untie the
1180
+ // Gordian knot with the upgrade, when two MiniKQL
1181
+ // runtimes with different versions are being used.
1182
+ // See YQL-19967 for more info.
1183
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
1184
+ ::TStringBuilder sb;
1185
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
1186
+ builder.SetError (sb);
1187
+ return true ;
1188
+ }
1169
1189
BuildSignature<TResultWType, TM64ResourceName, WAccessor>(builder, typesOnly);
1170
1190
return true ;
1171
1191
}
@@ -1280,6 +1300,16 @@ class TGetDateComponentName: public ::NYql::NUdf::TBoxedValue {
1280
1300
}
1281
1301
1282
1302
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
1303
+ // FIXME: The condition below is required to untie the
1304
+ // Gordian knot with the upgrade, when two MiniKQL
1305
+ // runtimes with different versions are being used.
1306
+ // See YQL-19967 for more info.
1307
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
1308
+ ::TStringBuilder sb;
1309
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
1310
+ builder.SetError (sb);
1311
+ return true ;
1312
+ }
1283
1313
BuildSignature<TM64ResourceName, WAccessor>(builder, typesOnly);
1284
1314
return true ;
1285
1315
}
@@ -1515,6 +1545,16 @@ TUnboxedValue GetTimezoneName(const IValueBuilder* valueBuilder, const TUnboxedV
1515
1545
}
1516
1546
1517
1547
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
1548
+ // FIXME: The condition below is required to untie the
1549
+ // Gordian knot with the upgrade, when two MiniKQL
1550
+ // runtimes with different versions are being used.
1551
+ // See YQL-19967 for more info.
1552
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
1553
+ ::TStringBuilder sb;
1554
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
1555
+ builder.SetError (sb);
1556
+ return true ;
1557
+ }
1518
1558
BuildSignature<TM64ResourceName>(builder, typesOnly);
1519
1559
return true ;
1520
1560
}
@@ -1817,6 +1857,16 @@ class TBoundaryOf: public ::NYql::NUdf::TBoxedValue {
1817
1857
}
1818
1858
1819
1859
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
1860
+ // FIXME: The condition below is required to untie the
1861
+ // Gordian knot with the upgrade, when two MiniKQL
1862
+ // runtimes with different versions are being used.
1863
+ // See YQL-19967 for more info.
1864
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
1865
+ ::TStringBuilder sb;
1866
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
1867
+ builder.SetError (sb);
1868
+ return true ;
1869
+ }
1820
1870
BuildSignature<TM64ResourceName, WBoundary>(builder, typesOnly);
1821
1871
return true ;
1822
1872
}
@@ -2198,6 +2248,16 @@ class TShift : public TBoxedValue {
2198
2248
}
2199
2249
2200
2250
if (resource.GetTag () == TStringRef::Of (TM64ResourceName)) {
2251
+ // FIXME: The condition below is required to untie the
2252
+ // Gordian knot with the upgrade, when two MiniKQL
2253
+ // runtimes with different versions are being used.
2254
+ // See YQL-19967 for more info.
2255
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
2256
+ ::TStringBuilder sb;
2257
+ sb << " Unexpected Resource tag: got '" << resource.GetTag () << " '" ;
2258
+ builder.SetError (sb);
2259
+ return true ;
2260
+ }
2201
2261
BuildSignature<TM64ResourceName, WShifter>(builder, typesOnly);
2202
2262
return true ;
2203
2263
}
0 commit comments