File tree Expand file tree Collapse file tree 7 files changed +11
-231
lines changed
yql/essentials/udfs/common/digest Expand file tree Collapse file tree 7 files changed +11
-231
lines changed Original file line number Diff line number Diff line change 1
1
#include < yql/essentials/public/udf/udf_helpers.h>
2
2
#include < yql/essentials/public/udf/udf_value_builder.h>
3
3
4
+ #include < yql/essentials/minikql/mkql_runtime_version.h>
5
+
4
6
#include < util/digest/murmur.h>
5
7
#include < util/digest/city.h>
6
8
#include < util/digest/numeric.h>
@@ -56,6 +58,15 @@ namespace {
56
58
return false ;
57
59
}
58
60
61
+ // FIXME: The condition below is required to untie the
62
+ // Gordian knot with the upgrade, when two MiniKQL
63
+ // runtimes with different versions are being used.
64
+ // See YQL-19967 for more info.
65
+ if (MKQL_RUNTIME_VERSION < 51U && typesOnly) {
66
+ builder.SimpleSignature <TResult (TAutoMap<char *>)>();
67
+ return true ;
68
+ }
69
+
59
70
auto args = builder.Args ();
60
71
args->Add (builder.SimpleType <char *>()).Flags (ICallablePayload::TArgumentFlags::AutoMap);
61
72
args->Add (builder.Optional ()->Item (builder.SimpleType <TResult>()).Build ()).Name (" Init" );
Original file line number Diff line number Diff line change 3
3
{
4
4
"uri" : " file://test.test_Basic_/results.txt"
5
5
}
6
- ],
7
- "test.test[Init]" : [
8
- {
9
- "uri" : " file://test.test_Init_/results.txt"
10
- }
11
6
]
12
7
}
Original file line number Diff line number Diff line change 70
70
"Uint64"
71
71
]
72
72
];
73
- [
74
- "cityWithSeed";
75
- [
76
- "DataType";
77
- "Uint64"
78
- ]
79
- ];
80
73
[
81
74
"city128";
82
75
[
275
268
"5654386555365545660";
276
269
"1466639702";
277
270
"11413460447292444913";
278
- "684814019408231284";
279
271
[
280
272
"125830901799957853";
281
273
"7569582475522398857"
334
326
"16472888669357673283";
335
327
"2351653828";
336
328
"17472595041006102391";
337
- "8016373356242392939";
338
329
[
339
330
"13426016195983081906";
340
331
"17051066397148972982"
393
384
"6734453432295282525";
394
385
"2128480519";
395
386
"11275350073939794026";
396
- "1669883546352889947";
397
387
[
398
388
"15168680716710346397";
399
389
"13490672353767795293"
452
442
"0";
453
443
"0";
454
444
"11160318154034397263";
455
- "12607432989128692740";
456
445
[
457
446
"18085479540095642321";
458
447
"11079402499652051579"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 9
9
Digest::MurMurHash2A(key) AS murmur2a,
10
10
Digest::MurMurHash2A32(key) AS murmur2a32,
11
11
Digest::CityHash(key) AS city,
12
- Digest::CityHash(key, 111 ) AS cityWithSeed,
13
12
Digest::CityHash128(key) AS city128,
14
13
Digest::NumericHash(COALESCE(CAST(key AS Uint64), 0 )) AS numeric ,
15
14
Digest::Md5Hex(key) AS md5hex,
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments