<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ydb/yql/essentials/sql/v1/complete/syntax/parser_call_stack.cpp, branch CLI_2.21.0</title>
<subtitle>Mirror of YDB github repos</subtitle>
<id>https://code.mastervirt.ru/ydb/atom?h=CLI_2.21.0</id>
<link rel='self' href='https://code.mastervirt.ru/ydb/atom?h=CLI_2.21.0'/>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/'/>
<updated>2025-05-16T12:32:43Z</updated>
<entry>
<title>YQL-19747: Ignore type_id completions and table_key</title>
<updated>2025-05-16T12:32:43Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-05-16T12:20:12Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=31441fb3a8e27eb1c9f1125b55dd4a83d9310fc0'/>
<id>urn:sha1:31441fb3a8e27eb1c9f1125b55dd4a83d9310fc0</id>
<content type='text'>
Fixes superfluous candidates (`OPTIONAL`, `CALLABLE`, ...) at `SELECT * FROM #`.

---

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

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1273
commit_hash:d34d81ea86b8b6b5d339174be20d14d0371c3de6
</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 Use TMaybe</title>
<updated>2025-04-28T10:52:54Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-28T10:29:56Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=3dfd8d9b20fe8902588dc35edb24423fbf165917'/>
<id>urn:sha1:3dfd8d9b20fe8902588dc35edb24423fbf165917</id>
<content type='text'>
Just replaced `std::optional` usages with `TMaybe` to prevent this refactoring noise in future PRs.

---

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

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1247
commit_hash:dca8a6849e5ba9cb614d8350996f9423a1dc2373
</content>
</entry>
<entry>
<title>YQL-19747 Complete read hints on PROCESS and REDUCE</title>
<updated>2025-04-10T14:35:51Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-10T14:08:20Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=473f2869597653cf26c8582095d1d9a805cb66fb'/>
<id>urn:sha1:473f2869597653cf26c8582095d1d9a805cb66fb</id>
<content type='text'>
Forgot to support it.

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

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1195
commit_hash:a2f5937dbca5712f3ecbfccdf66662ce99e70619
</content>
</entry>
<entry>
<title>YQL-19747 Complete select and insert hints</title>
<updated>2025-04-09T15:12:05Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-09T14:57:35Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=394fee4aa8d48e58cf82c72bcb9dda0a5dd50190'/>
<id>urn:sha1:394fee4aa8d48e58cf82c72bcb9dda0a5dd50190</id>
<content type='text'>
- Related to https://github.com/ydb-platform/ydb/issues/9056
- Related to https://github.com/vityaman/ydb/issues/19

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1189
commit_hash:7f1cb1dcf0617aa2c94c3f2188fc9bd481380252
</content>
</entry>
<entry>
<title>YQL-19747 Complete after PRAGMA and multi-token names</title>
<updated>2025-04-08T13:26:47Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-08T13:11:56Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=2f90258cf6f1625ba0c99f6f37b6c9f336590534'/>
<id>urn:sha1:2f90258cf6f1625ba0c99f6f37b6c9f336590534</id>
<content type='text'>
- [x] Complete after PRAGMA
- [x] Complete multi-token names correctly, for example, `yt.` returns only `DisableStrict`, not `yt.DisableStrict` and `DateTime::` returns `Split`, not `DateTime::Split`.

I tried to implement it using `CompletedToken` edition, but not all completion environments support candidates with various `contextLen` (`Replxx` does not). So I decided that completions should rewrite only the current token, not sequences. For example, on `DateTime::Spl` rewrite only `Spl`. It makes sense as multi-token names have some namespace separated by a punctuation, so used types only namespace and gets names inside of it.

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1181
commit_hash:9d8967ac43b9348f6dbb53837d92a9dcc9b51f48
</content>
</entry>
<entry>
<title>YQL-19747 Complete type name as a function argument</title>
<updated>2025-04-07T12:00:33Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-04-07T11:33:48Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=c33aace83a03e01fbf260c3a28c614a58cbce812'/>
<id>urn:sha1:c33aace83a03e01fbf260c3a28c614a58cbce812</id>
<content type='text'>
As I understand, type name should not be completed at `SELECT |`, so I added a check that we are at `invoke_expr` context.

Currently composite type keywords are suggested at `SELECT |` and also are uppercased. I will fix it separately when this merged during
- https://github.com/users/vityaman/projects/5?pane=issue&amp;itemId=105056723&amp;issue=vityaman%7Cydb%7C8

---

- Related to https://github.com/ydb-platform/ydb/issues/9056
- Related to https://github.com/users/vityaman/projects/5/views/1?pane=issue&amp;itemId=105056423&amp;issue=vityaman%7Cydb%7C7

---

Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1182
commit_hash:e87565867cf9fa82d9ac49a88d59b293d6686fe7
</content>
</entry>
<entry>
<title>YQL-19747 Complete Function Names</title>
<updated>2025-03-28T19:36:16Z</updated>
<author>
<name>vityaman</name>
<email>vityaman.dev@yandex.ru</email>
</author>
<published>2025-03-28T19:01:21Z</published>
<link rel='alternate' type='text/html' href='https://code.mastervirt.ru/ydb/commit/?id=b60cb8f5ce78ae5f63304a534278e124d31398b0'/>
<id>urn:sha1:b60cb8f5ce78ae5f63304a534278e124d31398b0</id>
<content type='text'>
- Function names are suggested now
- Changed the module structure
- Checking ruleIndex independence on mode (ansi | default) via unit tests

---

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