<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/yql/essentials/sql/v1/complete/syntax/format.cpp, branch oidc-1.2.5-dev</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=oidc-1.2.5-dev</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=oidc-1.2.5-dev'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2025-07-08T10:33:04Z</updated>
<entry>
<title>YQL-19747: Fix FilterText for a named expression</title>
<updated>2025-07-08T10:33:04Z</updated>
<author>
<name>vitya-smirnov</name>
<email>vitya-smirnov@yandex-team.com</email>
</author>
<published>2025-07-08T09:41:44Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=63ec7404d527617330ecf9742fc05ed6fe9455d2'/>
<id>urn:sha1:63ec7404d527617330ecf9742fc05ed6fe9455d2</id>
<content type='text'>
Related to &lt;https://nda.ya.ru/t/DMAUQona7GBKMA&gt;.
There was a problem with a binding ranking.
commit_hash:6dbd96ec883562c4e03778a8487b2843be189ce7
</content>
</entry>
<entry>
<title>YQL-19747: Support LSP FilterText</title>
<updated>2025-07-03T12:02:48Z</updated>
<author>
<name>vitya-smirnov</name>
<email>vitya-smirnov@yandex-team.com</email>
</author>
<published>2025-07-03T11:40:24Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=fdc3ed2f3a53f64b189d53b2cb81513916a78dc3'/>
<id>urn:sha1:fdc3ed2f3a53f64b189d53b2cb81513916a78dc3</id>
<content type='text'>
LSP protocol has a property
```
/**
 * A string that should be used when filtering a set of
 * completion items. When omitted the label is used as the
 * filter text for this item.
 */
filterText?: string;
```

It is useful, e.g. when we prepend some punctuation
at a candidate content, but still want to filter by
prefix, ignoring that punctuation.

Related to https://nda.ya.ru/t/KCkzjhXS7G3Epg.
commit_hash:01f258218d312eef764350bd4d78da15acb8c9ea
</content>
</entry>
<entry>
<title>YQL-19747: Respect quotable columns</title>
<updated>2025-07-03T06:05:31Z</updated>
<author>
<name>vitya-smirnov</name>
<email>vitya-smirnov@yandex-team.com</email>
</author>
<published>2025-07-03T05:48:29Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=399640bac77022be833bebfbd33ba8a77627e45d'/>
<id>urn:sha1:399640bac77022be833bebfbd33ba8a77627e45d</id>
<content type='text'>
Table can have not `ID_PLAIN` columns and we
should return them as `ID_QUOTED`.
commit_hash:f5850228a3191ab84e3740fc1c36cf8882b08c40
</content>
</entry>
<entry>
<title>YQL-19747: Improve types completion</title>
<updated>2025-06-17T10:00:42Z</updated>
<author>
<name>vitya-smirnov</name>
<email>vitya-smirnov@yandex-team.com</email>
</author>
<published>2025-06-17T09:44:39Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=bacec6cbd87d14bf55c256f17797537ae8c2bbed'/>
<id>urn:sha1:bacec6cbd87d14bf55c256f17797537ae8c2bbed</id>
<content type='text'>
Instead of relying on keyword sequences provided by C3 and using hacks like pattern matching on keyword sequences (`format.cpp`), emit composite types manually.
commit_hash:999d8d4b514433fbdf7885aa0122b2010e985efb
</content>
</entry>
<entry>
<title>YQL-19747: Fix some TODOs and Clang Tidy checks</title>
<updated>2025-06-06T08:32:08Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-06-06T08:09:02Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=1df1c560c27a041991c7fc59bcdf232eb57ad11f'/>
<id>urn:sha1:1df1c560c27a041991c7fc59bcdf232eb57ad11f</id>
<content type='text'>
Clang Tidy is cool, but too slow ;(. Btw, should we respect `misc-include-cleaner` check?

```bash
ya dump compile-commands &gt; /tmp/cc/compile_commands.json
find . -type f \( -name "*.cpp" -o -name "*.h" \) -exec clang-tidy {} -p /tmp/cc {} -checks="misc-*" \;
```

---

- Related to `YQL-19747`
- Related to https://github.com/ydb-platform/ydb/issues/9056

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1305
commit_hash:c2ecf638062dcdd0730fed3381da4a230f5352c3
</content>
</entry>
<entry>
<title>YQL-19747: Complete camel case type names</title>
<updated>2025-05-12T18:16:38Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-05-12T18:05:25Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=53b15a5b87b078a27ee071b8ab93458f1a3bcd81'/>
<id>urn:sha1:53b15a5b87b078a27ee071b8ab93458f1a3bcd81</id>
<content type='text'>
---

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

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1268
commit_hash:76e4e2c8b225994cc842c1ee00a0ec8e6eed5c05
</content>
</entry>
<entry>
<title>YQL-19747 Complete folder, table and cluster names</title>
<updated>2025-05-06T13:04:08Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-05-06T12:49:02Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=9c3fdca51d8ae892c5ad8f6ef92df73fafc09e28'/>
<id>urn:sha1:9c3fdca51d8ae892c5ad8f6ef92df73fafc09e28</id>
<content type='text'>
---

- Related to `YQL-19747`
- On top of https://github.com/ytsaurus/ytsaurus/pull/1253
- Related to https://github.com/ydb-platform/ydb/issues/9056
- Related to https://github.com/vityaman/ydb/issues/14
- Related to https://github.com/vityaman/ydb/issues/35
- Related to https://github.com/vityaman/ydb/issues/40

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1257
commit_hash:0b842abb27184c88b8177beeea29fb1ea86b7a04
</content>
</entry>
<entry>
<title>YQL-19747 Rank keywords just by plain usages</title>
<updated>2025-04-14T10:40:02Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-14T10:06:15Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=14005fcfba8efa6918e54d823bff6780d9922f8f'/>
<id>urn:sha1:14005fcfba8efa6918e54d823bff6780d9922f8f</id>
<content type='text'>
- [x] Rank keywords just by plain usages
- [x] `LocalSyntaxAnalysis` now returns a mapping `:: Keyword -&gt; [Following Keywords]`.
- [x] Extracted keyword sequence formatting from `syntax/local` to `syntax/format`.
- [x] Extracted token display logic from `syntax/local` to `antlr4/vocabulary` as it is ANTLR dependent.

---

Example

```python
$ ./yql_complete &lt;&lt;&lt; "select "
[Keyword] CAST(
[Keyword] NULL
[Keyword] NOT
[FunctionName] If(
[FunctionName] Yson::ConvertToString(
[FunctionName] Count(
[FunctionName] Sum(
[FunctionName] Unwrap(
[FunctionName] Coalesce(
[Keyword] DISTINCT
[Keyword] ALL
[Keyword] CASE
[FunctionName] Max(
[Keyword] FALSE
[FunctionName] Some(
```

---

- Related to https://github.com/ydb-platform/ydb/issues/9056
- Related to https://github.com/vityaman/ydb/issues/17

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1197
commit_hash:f42cb4aaffe6de7c9137069c4d9c635ee110a805
</content>
</entry>
</feed>
