<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/yql/essentials/parser, branch oidc-1.2.3</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=oidc-1.2.3</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=oidc-1.2.3'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2025-07-10T12:51:42Z</updated>
<entry>
<title>YQL-20102: Enable debug arrow validation</title>
<updated>2025-07-10T12:51:42Z</updated>
<author>
<name>atarasov5</name>
<email>atarasov5@yandex-team.com</email>
</author>
<published>2025-07-10T12:30:05Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=5ce6e1b18f1023a06b261707a585835825e612f9'/>
<id>urn:sha1:5ce6e1b18f1023a06b261707a585835825e612f9</id>
<content type='text'>
В данном PR включена поддержка валидации Datum'ов на соответствие `MKQL type &lt;-&gt; arrow type &lt;-&gt; arrow array data structure.`

Выявленные проблемы:
1\. `AllocateResizableBuffer(size_t size)` возвращает массив длины 0 вместо size. Поэтому есть ошибка в работе с датами в некоторых нодах
commit_hash:122f2bd114dec50993131391a3793d9540877cb4
</content>
</entry>
<entry>
<title>YQL-20153 params fixes</title>
<updated>2025-07-04T13:48:49Z</updated>
<author>
<name>vvvv</name>
<email>vvvv@yandex-team.com</email>
</author>
<published>2025-07-04T13:00:25Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=6eff12e93b9d1e93fa333d7b05b4c9336e804c40'/>
<id>urn:sha1:6eff12e93b9d1e93fa333d7b05b4c9336e804c40</id>
<content type='text'>
commit_hash:6a71bff1ad52eddd1b8c7d516f0810f0decf401e
</content>
</entry>
<entry>
<title>YQL-20086 parser (w/o pg)</title>
<updated>2025-06-20T14:10:34Z</updated>
<author>
<name>vvvv</name>
<email>vvvv@yandex-team.com</email>
</author>
<published>2025-06-20T13:21:56Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=e1efda2594290917a9cbef824f5ca242f62a845c'/>
<id>urn:sha1:e1efda2594290917a9cbef824f5ca242f62a845c</id>
<content type='text'>
commit_hash:f4bddb30981abde1a951149fff272d86a22dd726
</content>
</entry>
<entry>
<title>Intermediate changes</title>
<updated>2025-06-16T17:16:31Z</updated>
<author>
<name>robot-piglet</name>
<email>robot-piglet@yandex-team.com</email>
</author>
<published>2025-06-16T16:45:47Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=bcbebc88fecedccc6267457436865fc7c082a433'/>
<id>urn:sha1:bcbebc88fecedccc6267457436865fc7c082a433</id>
<content type='text'>
commit_hash:18e311c0ad94b55003cb5a6c0487a16830fac5cd
</content>
</entry>
<entry>
<title>YQL-19747: Support USE statement</title>
<updated>2025-05-20T10:07:06Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-05-20T09:50:28Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=16630d4dfad772e0108e694f76f922e486cd6439'/>
<id>urn:sha1:16630d4dfad772e0108e694f76f922e486cd6439</id>
<content type='text'>
Introduce global analysis which will be extended with more ParseTree analysis later.

---

- Related to `YQL-19747`
- Related to https://github.com/vityaman/ydb/issues/40

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1281
commit_hash:848fb3fdd6bc9612769c47d66198fca018ff465f
</content>
</entry>
<entry>
<title>YQL-19611: Appropriate handle of null arguments in param score matching</title>
<updated>2025-05-13T14:38:39Z</updated>
<author>
<name>mrlolthe1st</name>
<email>mrlolthe1st@yandex-team.com</email>
</author>
<published>2025-05-13T14:23:34Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=dc63d5794da99c2ebe3f32914d0351d9707660b0'/>
<id>urn:sha1:dc63d5794da99c2ebe3f32914d0351d9707660b0</id>
<content type='text'>
commit_hash:aef029b757218731b5855868b341ffdb3fa79203
</content>
</entry>
<entry>
<title>YQL-19767: Introduce MKQL allocator address sanitizing</title>
<updated>2025-05-06T12:16:42Z</updated>
<author>
<name>atarasov5</name>
<email>atarasov5@yandex-team.com</email>
</author>
<published>2025-05-06T12:01:42Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=0ba803a734b1c0a6c0f79beff16668302c34f3d1'/>
<id>urn:sha1:0ba803a734b1c0a6c0f79beff16668302c34f3d1</id>
<content type='text'>
Здесь поддержал только out of bounds access и use after free. Отложенное использование памяти и тд буду делать потом
commit_hash:2a3fd472b626762ff7c8b7b0bc1285af50c511cf
</content>
</entry>
<entry>
<title>Intermediate changes</title>
<updated>2025-04-24T10:12:15Z</updated>
<author>
<name>robot-piglet</name>
<email>robot-piglet@yandex-team.com</email>
</author>
<published>2025-04-24T10:01:50Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=cc1add0c1ca513213dc8ecaaed41a3f328c353ef'/>
<id>urn:sha1:cc1add0c1ca513213dc8ecaaed41a3f328c353ef</id>
<content type='text'>
commit_hash:dc3193604b8e3f1c1a2e012318f542b2497d7638
</content>
</entry>
<entry>
<title>YQL-19747 Detect a token at the caret position</title>
<updated>2025-04-23T12:27:38Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-23T12:04:48Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=c222f6f103376934dd705e16bf9a3bad66e44365'/>
<id>urn:sha1:c222f6f103376934dd705e16bf9a3bad66e44365</id>
<content type='text'>
When I tried to implement a folder and object names completion at `ID_QUOTED` I faced with a problem, that I actually can't detect, that cursor is at `ID_QUOTED` token because `TCompletionInput::Text` it was cut until the `TCompletionInput::CursorPosition`, therefore at input ``` SELECT * FROM `#` ``` prefix was ``` SELECT * FROM `# ``` and then lexer failed.

While we actually want tokenize the whole current statement, `C3` still needs to receive a prefix as input. I tried to tokenize the whole statement and then on input `SELECT Optional&lt;#&gt;` got nothing because `&lt;&gt;` is solid token in the `SQL`. The only way to fix it I found is to cut a query to prefix until the cursor position.

BTW, current implementation is not so efficient as we tokenize the input multiple times. Especially `SplitQueryToStatemnts` seems heavy. In future we anyway will parse the whole input so will need to design APIs to receive ready token streams to do statements splitting, for example, just not to do the work twice.

![image](https://github.com/user-attachments/assets/114804d3-f311-4a46-be84-8ed4650bc9dd)

So I introduce you the following changes

- [x] Select the whole current statement, not just prefix.
- [x] Find the token at caret and output no candidates when caret is at `STRING_VALUE`, `DIGIGTS` and so on.
- [x] Change `C3` wrapper interface to take `TCompletionInput` to hide an implementation detail that it runs on cut prefix.
- [x] `#` annotated queries in unit tests.
- [x] Detect `CaretTokenPosition` -- if is it enclosed with a token or between two.
- [x] Ensure that `maxErrors` in `ILexer::Tokenize` is positive. Just a tiny bugfix.

---

- Related to https://github.com/ytsaurus/ytsaurus/pull/1209
- Related to https://github.com/ydb-platform/ydb/issues/9056
- Related to https://github.com/vityaman/ydb/issues/14

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1225
commit_hash:a434b9888ec8a7356247d63d9f1420e256ae4fca
</content>
</entry>
<entry>
<title>YQL-19747 Improve yql_complete tool and add input validation</title>
<updated>2025-04-07T21:17:32Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-07T20:50:34Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=5af5cb3b7b423f2d3fcebf2e1406d37cbd6f3bbf'/>
<id>urn:sha1:5af5cb3b7b423f2d3fcebf2e1406d37cbd6f3bbf</id>
<content type='text'>
No description

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1185
commit_hash:1def5874ff6a9a5b3dcdd0ad285d2e64b16c9306
</content>
</entry>
</feed>
