Skip to content

Commit ee1586d

Browse files
author
atarasov5
committed
YQL-19535: Provide block implementation for some utf8 udf
commit_hash:30371c936e006647e6aee38a0c95980d2d1af49e
1 parent a8b10ce commit ee1586d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+990
-342
lines changed

yql/essentials/udfs/common/unicode_base/lib/unicode_base_udf.h

Lines changed: 145 additions & 78 deletions
Large diffs are not rendered by default.

yql/essentials/udfs/common/unicode_base/test/canondata/result.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,41 @@
2929
"uri": "file://test.test_BlockStrip_/results.txt"
3030
}
3131
],
32+
"test.test[BlockToUint64F0]": [
33+
{
34+
"uri": "file://test.test_BlockToUint64F0_/extracted"
35+
}
36+
],
37+
"test.test[BlockToUint64F1]": [
38+
{
39+
"uri": "file://test.test_BlockToUint64F1_/extracted"
40+
}
41+
],
42+
"test.test[BlockToUint64F2]": [
43+
{
44+
"uri": "file://test.test_BlockToUint64F2_/extracted"
45+
}
46+
],
47+
"test.test[BlockToUint64F3]": [
48+
{
49+
"uri": "file://test.test_BlockToUint64F3_/extracted"
50+
}
51+
],
52+
"test.test[BlockToUint64]": [
53+
{
54+
"uri": "file://test.test_BlockToUint64_/results.txt"
55+
}
56+
],
3257
"test.test[BlockTo]": [
3358
{
3459
"uri": "file://test.test_BlockTo_/results.txt"
3560
}
3661
],
62+
"test.test[BlockTryToUint64]": [
63+
{
64+
"uri": "file://test.test_BlockTryToUint64_/results.txt"
65+
}
66+
],
3767
"test.test[BlockUnicode]": [
3868
{
3969
"uri": "file://test.test_BlockUnicode_/results.txt"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<tmp_path>/program.sql:<main>: Error: Execution
2+
3+
<tmp_path>/program.sql:<main>:10:1: Error: Execution of node: YtMap!
4+
SELECT
5+
^
6+
<tmp_path>/program.sql:<main>:10:1: Error: Input string is not a number
7+
SELECT
8+
^
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<tmp_path>/program.sql:<main>: Error: Execution
2+
3+
<tmp_path>/program.sql:<main>:10:1: Error: Execution of node: YtMap!
4+
SELECT
5+
^
6+
<tmp_path>/program.sql:<main>:10:1: Error: Input string contains junk after the number
7+
SELECT
8+
^
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<tmp_path>/program.sql:<main>: Error: Execution
2+
3+
<tmp_path>/program.sql:<main>:10:1: Error: Execution of node: YtMap!
4+
SELECT
5+
^
6+
<tmp_path>/program.sql:<main>:10:1: Error: Converted value falls out of Uint64 range
7+
SELECT
8+
^
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<tmp_path>/program.sql:<main>: Error: Execution
2+
3+
<tmp_path>/program.sql:<main>:10:1: Error: Execution of node: YtMap!
4+
SELECT
5+
^
6+
<tmp_path>/program.sql:<main>:10:1: Error: Incorrect base
7+
SELECT
8+
^
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
[
2+
{
3+
"Write" = [
4+
{
5+
"Type" = [
6+
"ListType";
7+
[
8+
"StructType";
9+
[
10+
[
11+
"value";
12+
[
13+
"DataType";
14+
"Utf8"
15+
]
16+
];
17+
[
18+
"key";
19+
[
20+
"DataType";
21+
"Utf8"
22+
]
23+
];
24+
[
25+
"column2";
26+
[
27+
"DataType";
28+
"Uint64"
29+
]
30+
]
31+
]
32+
]
33+
];
34+
"Data" = [
35+
[
36+
"0x1234abcd";
37+
"with_format_1";
38+
"305441741"
39+
];
40+
[
41+
"0X4";
42+
"with_format_2";
43+
"4"
44+
];
45+
[
46+
"0644";
47+
"with_format_3";
48+
"420"
49+
];
50+
[
51+
"0101010";
52+
"binary_1";
53+
"33288"
54+
];
55+
[
56+
"101";
57+
"binary_2";
58+
"101"
59+
]
60+
]
61+
}
62+
]
63+
};
64+
{
65+
"Write" = [
66+
{
67+
"Type" = [
68+
"ListType";
69+
[
70+
"StructType";
71+
[
72+
[
73+
"value";
74+
[
75+
"DataType";
76+
"Utf8"
77+
]
78+
];
79+
[
80+
"key";
81+
[
82+
"DataType";
83+
"Utf8"
84+
]
85+
];
86+
[
87+
"column2";
88+
[
89+
"DataType";
90+
"Uint64"
91+
]
92+
];
93+
[
94+
"column3";
95+
[
96+
"DataType";
97+
"Uint64"
98+
]
99+
]
100+
]
101+
]
102+
];
103+
"Data" = [
104+
[
105+
"0101010";
106+
"binary_1";
107+
"42";
108+
"1052688"
109+
];
110+
[
111+
"101";
112+
"binary_2";
113+
"5";
114+
"257"
115+
]
116+
]
117+
}
118+
]
119+
};
120+
{
121+
"Write" = [
122+
{
123+
"Type" = [
124+
"ListType";
125+
[
126+
"StructType";
127+
[
128+
[
129+
"value";
130+
[
131+
"DataType";
132+
"Utf8"
133+
]
134+
];
135+
[
136+
"key";
137+
[
138+
"DataType";
139+
"Utf8"
140+
]
141+
];
142+
[
143+
"column2";
144+
[
145+
"DataType";
146+
"Uint64"
147+
]
148+
];
149+
[
150+
"column3";
151+
[
152+
"DataType";
153+
"Uint64"
154+
]
155+
];
156+
[
157+
"column4";
158+
[
159+
"DataType";
160+
"Uint64"
161+
]
162+
]
163+
]
164+
]
165+
];
166+
"Data" = [
167+
[
168+
"0";
169+
"zero";
170+
"0";
171+
"0";
172+
"0"
173+
]
174+
]
175+
}
176+
]
177+
}
178+
]

0 commit comments

Comments
 (0)