summaryrefslogtreecommitdiffstats
path: root/yql/essentials/sql
Commit message (Collapse)AuthorAgeFilesLines
...
* YQL-20189: Introduce PRAGMA Warning for pgSQLvitya-smirnov2026-04-152-17/+345
| | | | commit_hash:c2e47cfc5969038aa6a4076a3fc2f5e67d5083ba
* YQL-20882: Ensure formatting and lexer checks are OK on pgSQLvitya-smirnov2026-04-149-0/+149
| | | | commit_hash:153e546ce3d52153d488b9b36d63c3b44f5a959f
* YQL-20095: Enable readability-isolate-declarationvitya-smirnov2026-04-137-8/+17
| | | | commit_hash:c180c2db4897962cb70063ffdc2ddcd21e5e3418
* YQL-20873: Range PG supportatarasov52026-04-131-0/+41
| | | | commit_hash:9e799ea42a2692eb96ebc792b48e46dd060c182b
* Remove redundant std::movevitya-smirnov2026-04-081-3/+3
| | | | commit_hash:cf2cfa1c2c53a2b99b4406d4ed29e70a3ceab16b
* YQL-21058: Allow no SQL-statements under a SQL flagvitya-smirnov2026-04-089-66/+344
| | | | commit_hash:8e8b69c49159fb6ea51c1f9cd0f49e8d8d52f5ee
* YQL-20095: Enable readability-container-data-pointervitya-smirnov2026-04-081-1/+1
| | | | commit_hash:6bd18cff912ed7cc4b2bedd531c80cc43bdcd584
* YQL-21134: Do not check formatted AST on CREATE VIEWvitya-smirnov2026-04-0712-108/+315
| | | | commit_hash:1465f98162ca2b71d5b4c0d8088af25f68cd1d3b
* YQL-20095: Enable readability-container-size-emptyvitya-smirnov2026-04-0714-40/+40
| | | | commit_hash:464a95fd6de1a395f8ffe20092e837df995e623c
* YQL-20095: Enable readability-const-return-typevitya-smirnov2026-04-066-8/+8
| | | | commit_hash:8c898c65c0bdf92423256a1e752b13cc3ffd364a
* YQL-20095: Enable readability-duplicate-includevitya-smirnov2026-04-061-1/+0
| | | | commit_hash:ea7cc749f3373f610d5945dc823ee74493744775
* YQL-20095: Enumerate Arcadia Clang Tidy whitelistvitya-smirnov2026-04-035-5/+20
| | | | | | | | | | | | | Then I will be able to: 1. Create a script to compare our Clang Tidy configuration with Arcadia whitelist, so we will receive Pre-release errors like we have now for a Clang Format. 2. Improve yqltidyfix command for an autofix and check activation, so it will be completely automatic. In past, I forgot to enable some checks because of an automation absence. commit_hash:c3678b389d18ce8b5ec5314b2b992eaf09fec249
* YQL-21105 refactored udf meta for lintervvvv2026-04-033-5/+5
| | | | | | | | | | | | | | #### Рефакторинг метаданных UDF для линтера 📝 - 🔄 Заменена структура фильтрации UDF на более гибкую систему метаданных, упрощена логика работы с UDF в линтере - 📦 Добавлены новые интерфейсы и реализации для работы с метаданными UDF, обеспечено совместимое API с существующими компонентами - 🛠️ Обновлены вызовы и передача параметров в функции линтера, адаптированы все зависимости под новую архитектуру метаданных - 🧪 Обновлены тесты и примеры использования, адаптированы к новой системе работы с метаданными UDF - 📁 Удалены устаревшие зависимости и структуры, упрощена архитектура взаимодействия между компонентами - 📝 Обновлены документационные комментарии и описание API для соответствия новой реализации <a href="https://nda.ya.ru/t/qa0kX64r7DqvtN"><font size="2">Autodescription by Yandex Code Assistant</font></a> commit_hash:5ec05daf8b80518d549815ee823c6850a1629ee3
* YQL-21111: Disable Builtins LangVer checkvitya-smirnov2026-04-022-0/+11
| | | | commit_hash:d820cda2c14835d3f946e31bc0182c7eabaf05d0
* YQL-21108: Introduce YqlSelect TranslationSettingvitya-smirnov2026-04-028-24/+76
| | | | commit_hash:c969a8e417caf0cc0aeb913d7843ca717c8b8271
* Intermediate changesrobot-piglet2026-04-021-22/+24
| | | | commit_hash:6801f8cd01887903fec0e73089f6f0f1cab28c19
* YQL-20773 PositionOf & WithIssuevvvv2026-04-013-5/+37
| | | | commit_hash:fd9981b64488aca88d19a45aa956d80eab220cb8
* YQL-21111: Introduce MaxLangVer for SQL-builtinsmariibykova2026-04-014-5/+36
| | | | commit_hash:25917781fc20f16e0e9e0256508433cc01d79379
* YQL-21080: Add MinLangVer for SQL-builtinsmariibykova2026-04-011-34/+43
| | | | | | | | | | | | | | | | | | | | | | | Add MinLangVer for functions: * `WithSideEffects/WithSideEffectsMode` * `DictInsert/DictUpsert/DictUpdate/DictRemove` * `ToDynamicLinear/FromDynamicLinear` * `LinearType/DynamicLinearType` * `LinearTypeHandle/DynamicLinearTypeHandle` * `LinearItemType` * `Concat` * `NullIf` * `MutDict` builtins commit_hash:7a9cf54356446d21bc5d869a155c630fca51ceed
* Replace unreachable with *_ENSURE(false, ...)atarasov52026-04-0115-169/+174
| | | | commit_hash:7c1445375e838a9327006528cb455c9899e9b32d
* YQL-21080: Provide access to AsOptionalType as a SQL Builtinmariibykova2026-03-313-16/+54
| | | | commit_hash:f5c4c85829dbf0cc700619b62e676ee3bd843c24
* YQL-20234: Fix partial aggregation for Histogram and TopFreqvitya-smirnov2026-03-311-28/+113
| | | | | | `Null` are not yet implemented, because it was hard to fix, will do it later. commit_hash:879a892d511a0a2dd7110a728f01f80c260dedbf
* YQL-20095: Enable readability-avoid-const-params-in-declsvitya-smirnov2026-03-315-7/+7
| | | | | https://clang.llvm.org/extra/clang-tidy/checks/readability/avoid-const-params-in-decls.html commit_hash:17e1ec5c3849a38bcb76cd4927e66979bee6c2ec
* YQL-21048: Support GROUPING SETS for YqlSelectvitya-smirnov2026-03-307-32/+511
| | | | | | | | | | | | | | | | | | This patch unlocks a subset of `GROUPING SETS`, `ROLLUP` and `CUBE` syntax for `YqlSelect`. The `sql` was easy, but I faced problems at the `core` level. An existing expansion was OK, but type annotation was changed to correctly annotate `GROUP BY` keys as `Optional`. ```haskell notNullKeys groupBy = union [ ( intersection [ groupingSet | groupingSet in groupingSets ] ) | groupingSets in groupBy ] ``` It gives 60/100 (+9) TPC-DS queries. commit_hash:defda3152f10bf16b9e6300294bc23cccfa1329c
* YQL-20234: Fix partial aggregation for Top/Bottomvitya-smirnov2026-03-301-13/+95
| | | | | | | | | | | | Fixed agg phases for `Top`, `Bottom`, `TopBy` and `BottomBy`. The `SerializedState` for `Top` and `Bottom` is contains `MaxSize`, so only the `state` argument is required when it `IsOverState`. `Null` are not yet implemented, because it was hard to fix, will do it later. The code is not clean, but to fix it a huge refactoring is needed, including `aggregate.yqls` and `aggregation.cpp`. Also YQLs minirun launch target was introduced, because it is easier to experiment with YQLs directly, rather than tweaking the SQL translator. commit_hash:47af002f70d9be6db61316e64aa866d4bff34cf4
* YQL-21093 USE yt:defaultvvvv2026-03-261-2/+6
| | | | commit_hash:6c9b7849a93a8b29fba71be8e024ca93a83ad5be
* KIKIMR-24904: Support expressions in secret values parsingyurikiselev2026-03-246-171/+277
| | | | | | This PR adds a possibility for setting secrets values with expression, so the values could be provided via parameters (DECLARE syntax). Before this PR, secret values could be set only explicitly for now. This will continue to work because the explicit values format has not changed. commit_hash:15a59c3ad7303988d588133c380090ce2040532f
* YQL-21048: Allow GROUPING SETS trailing commavitya-smirnov2026-03-243-1/+74
| | | | commit_hash:74d8018418c82541d856eda2696500c0718d082b
* support cloud auth for CREATE EXTERNAL DATA SOURCE (yql part)yumkam72026-03-232-0/+6
| | | | | | | | | | | | | structured token will require service_account_id and resource_id and AUTH_METHOD=IAM will require SERVICE_ACCOUNT_ID and INITIAL_TOKEN_SECRET[_NAME|_PATH] Initial token is used on EDS creation for resolving resource_id/cloud_id and verifying database access, then service_account_id and resource_id will be used for delegated token issue (about same as used for async replication) commit_hash:3eec95e2dea61654a1939bd92549222f752d9654
* YQL-21068: Fix duplicated preaggregate exprvitya-smirnov2026-03-204-31/+55
| | | | | | | | | | | | Here was 2 issues: 1. `Init` return status was ignored and so error suppressed. 2. `PreaggregateExpr` was collected twice. On the first attempt it was replaced with a synthetic column that will be "registered" in a source later, and on a second attempt it was already that synthetic, but not yet registered column and so it's init was failing. commit_hash:4398a075d53d99cbb9b172ebae0a05aff5e2d5a7
* Fix ALTER TABLE ADD COLUMN (with COMPRESSION)neyrox2026-03-202-6/+35
| | | | | Task <https://github.com/ydb-platform/ydb/issues/27699> commit_hash:2560cfb4cd091462f6519c557cccfcfabfd7fe21
* YQL-20928: Fix YqlSelect quoted atoms and unsupported messagevitya-smirnov2026-03-196-21/+117
| | | | | | | | | | | | | | This PR "unmutes" some TPC-DS queries. There was 2 defect kinds fixed: 1. Other than ordinary `GROUP BY` variants were actually unsupported, but not checked by an implementation. 2. Just `Q(TString)` was used to make quoted atoms, but it is not generally correct, because it does not wrap the arbitrary content and so `QUOTED_ID`s with spaces made a ill-formed YQLs. The second defect fix gave us +5 successfully compilable queries. commit_hash:10891b4cfc19872c8bb4b0765de2efae26797693
* Add per column encoding settings YQL grammarvladilenmuz2026-03-189-5/+449
| | | | | | | Task in github: <https://github.com/ydb-platform/ydb/issues/27470> RFC: <https://github.com/ydb-platform/ydb-rfc/blob/main/cs_column_encodings.md> commit_hash:da6b89209ce4ecc2a140507212dfedfc35bc5ccb
* Cherry pick YQL-20998: Emit Reads only on EXISTSvitya-smirnov2026-03-181-0/+4
| | | | | Return that commit, because the problem, why [Rollback: rXXXXXX](https://nda.ya.ru/t/trCMW4CN7X4Gwb) was initiated was not in that commit, but other problem - see [a comment](https://nda.ya.ru/t/r31wHW2u7X4HUs). commit_hash:bb553ac4b3ab46e326e6fbb8e811d80efdda8aba
* Rollback: rXXXXXXrobot-srch-releaser2026-03-171-4/+0
| | | | | | | | | | | | | | | | | | | | | | | [diff-resolver:vitya-smirnov] SKIP_REVIEW SKIP_CHECK __BYPASS_CHECKS__ > ................................................................. > INCLUDE: rXXXXXX | vitya-smirnov@ | 2026-03-17T04:41:04Z > > YQL-20998: Emit Reads only on EXISTS > > Because the previous patch "YQL-20998: Remove EmitReadsForExists" > makes a test red, temporarily reverting it. > > - YQL-21020 > > REVIEW: 12369245 > Sandbox task: https://nda.ya.ru/t/2GCU64Ag7WyZMX Task author: achugunov@ Commit was made by robot-srch-releaser@, but committer is achugunov@ Description: Rollback rXXXXXX due to broken tests commit_hash:e3056a3b46b5418ffaf2b78805b6c1389ab6174f
* YQL-20998: Emit Reads only on EXISTSvitya-smirnov2026-03-171-0/+4
| | | | | | | | Because the previous patch "YQL-20998: Remove EmitReadsForExists" makes a test red, temporarily reverting it. - YQL-21020 commit_hash:02a6d414e2528efa66a787533974ed5979ef37cd
* YQL-20095: Enable modernize-use-designated-initializersvitya-smirnov2026-03-1724-782/+787
| | | | | https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-designated-initializers.html commit_hash:d73eb463c7bec2bda4c362aab10af49979a7ddd3
* YQL-20538: Introduce --test-triple-formatvitya-smirnov2026-03-125-24/+90
| | | | | | | | | | | | | Can not enable an option `--test-double-format` because a lot of Query Replay failures which are hard to fix, so introducing this option to temporarly relax the formatter requirements to enable at least such check on a Query Replay. It is not enabled in tests, because a `--test-double-format` is already enabled there and it is more strict. Also fixed a bug with multiline comments NL preservation. commit_hash:3c42dcf4b0b00026a97643a0031d2a3a8a319a1a
* YQL-20095: Enable modernize-raw-string-literalvitya-smirnov2026-03-066-39/+39
| | | | | https://clang.llvm.org/extra/clang-tidy/checks/modernize/raw-string-literal.html commit_hash:80a511a46b35539fa1f834d4fb5de452ccfbe0ac
* YQL-20998: Remove EmitReadsForExistsvitya-smirnov2026-03-054-18/+12
| | | | | | | Removed a check and usages of `EmitReadsForExists` from the `yql/essentials`. There are a lot of YQLs code recanonized because sometimes an extra block with return was emitted and sometimes is not, but the YQLs is equivalent. commit_hash:a4ec2a575177eff4063da017b4d9ee96e06f3740
* YQL-20969: Derive TSqlTranslation settingsvitya-smirnov2026-03-0521-254/+267
| | | | | | This is a step forward to a cleaner `TSqlTranslation`. Now local settings are derived to children and less mutable state is used. commit_hash:17fcb6ad7669e3f3906beeae355df940bbfe5d28
* YQL-21007 new lang vervvvv2026-03-041-5/+5
| | | | commit_hash:f9d592aaafd658d9c44bb4f7299a527c22593569
* YQL-20998: Enable EmitReadsForExists by defaultvitya-smirnov2026-03-041-1/+1
| | | | | | This patch is needed for https://github.com/ydb-platform/ydb/pull/35415. Also related to https://nda.ya.ru/t/WoCr0-yd7Vrdpa. commit_hash:2b31c740040657e787109ef49c34c13466042714
* YQL-20095: Enable modernize-use-nullptrvitya-smirnov2026-03-042-5/+5
| | | | commit_hash:a504ad9d540aa714c550320e0ce20f9eb8bd17cf
* YQL-20095: Enable modernize-use-usingvitya-smirnov2026-03-0413-39/+39
| | | | commit_hash:ea1f0987ec40e3e683c35bffb64b7f5ab35e73ed
* Intermediate changesrobot-piglet2026-03-032-7/+12
| | | | commit_hash:a66d1ef65085fb8e8bfe860b8b7a95cbc5793851
* YQL-20095: Enable modernize-use-bool-literalsvitya-smirnov2026-03-031-6/+6
| | | | commit_hash:05fdc8e01569c5d74e2840a310ed1f7a34b72374
* YQL-20904: Support UNION at YqlSelect subqueryvitya-smirnov2026-03-024-22/+89
| | | | | | | | A partial implementation, that accepts only subqueries, matching `select_kind (UNION/EXCEPT/INTERSECT select_kind)*`, so parenthesis are not supported yet and will be added later. Parenthesis support was postponed as they are not used in the TPC-DS benchmark. commit_hash:008ad8857000d1f69e8e8979fa83ab803318a1ae
* YQL-20095: Enable modernize-pass-by-valuevitya-smirnov2026-03-0227-399/+442
| | | | commit_hash:4939dfad654f18bb31e40711ee0c39063889f17b
* Revert YQL-10829: Improve unknown builtin error at JOIN ONvitya-smirnov2026-03-0210-70/+34
| | | | | | This patch triggered a lot of QPlayer failures: https://nda.ya.ru/t/BcVGwg9S7VgzFA. This is because https://nda.ya.ru/t/Mh2NOU6z7VgzPH. commit_hash:a2c5f968b0751d785d42db238e59c96499edb417