summaryrefslogtreecommitdiffstats
path: root/yql/essentials/tools/sql2yql
Commit message (Collapse)AuthorAgeFilesLines
* YQL-21134: Set UnstableFormat AST flag unconditionallyvitya-smirnov10 days1-1/+3
| | | | | | | - Renamed `TAstNodeFlags::IgnoredContent` to `TAstNodeFlags::UnstableFormat` to better reflect its purpose. - Removed the `MarkQueryTextAtomWithIgnoredContent` translation setting. The `UnstableFormat` flag is now unconditionally applied to query text atoms during parsing. - Updated `CheckedFormat` and `ValidateAST` to accept an already parsed AST. Since the flag is now set unconditionally, we can reuse the initial AST for format validation. This avoids re-parsing the original query, reducing redundant AST builds and overall RAM consumption. commit_hash:bba3e6733d3a9c120cf9724a161e603de0cfc038
* YQL-20239: Exract pure_ast and move to sql/v1/idevitya-smirnov2026-06-112-2/+2
| | | | | | | | | It is a preparation for a hover LSP method implementation. Query parser and a narrowing visitor are required for the feature, so I extract the logic to a module `pure_ast` from a `complete`. Also modules `complete` and `pure_ast` are moved to `sql/v1/ide/completion` and `sql/v1/ide/pure_ast`. commit_hash:58bed5f2e39bf4779e28468fe7de1e0c4fb2c4c3
* YQL-21134: Introduce not strict AST equalityvitya-smirnov2026-06-101-3/+1
| | | | commit_hash:6d140dd812ad22bada6b8680e160b74b599f7032
* Retire StrictWarningAsError flagvitya-smirnov2026-06-081-3/+3
| | | | commit_hash:426fc64ddb2e4aa97f2a867677c63208562d5e76
* Enable StrictWarningAsError at codevitya-smirnov2026-04-301-1/+1
| | | | commit_hash:2edeea0a4eb7e3a51fc7417a1258b2652026bc08
* YQL-20538: Introduce --test-triple-formatvitya-smirnov2026-03-121-3/+19
| | | | | | | | | | | | | 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-20998: Remove EmitReadsForExistsvitya-smirnov2026-03-051-1/+0
| | | | | | | 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
* Intermediate changesrobot-piglet2026-03-031-2/+3
| | | | commit_hash:a66d1ef65085fb8e8bfe860b8b7a95cbc5793851
* YQL-20095: Enable modernize-loop-convertvitya-smirnov2026-02-271-5/+5
| | | | | | | | - https://clang.llvm.org/extra/clang-tidy/checks/modernize/loop-convert.html Semi-automatic translation was performed. Manually rewritten some types and names. commit_hash:0ad921f0d512dd4a8ccc8af557197ce6a02582e1
* Intermediate changesrobot-piglet2026-02-261-1/+3
| | | | commit_hash:d7143d999c6383c49b3e32ea07930fde8292ce15
* Intermediate changesrobot-piglet2026-02-241-27/+34
| | | | commit_hash:00083104632b4aa64300ea04e015da54c58395ff
* YQL-20095: Enable modernize-avoid-c-arraysvitya-smirnov2026-02-191-2/+2
| | | | commit_hash:da491ee93c4f4d3c885c7908a22b4d5d66c80388
* Intermediate changesrobot-piglet2026-02-061-1/+1
| | | | commit_hash:c1acbb89857acf40764b131b015b4be9bafd0aee
* YQL-20095: Enable misc-use-anonymous-namespacevitya-smirnov2026-02-051-4/+12
| | | | | - https://clang.llvm.org/extra/clang-tidy/checks/misc/use-anonymous-namespace.html commit_hash:746be9b9db256111b2fb6ab4d89844746deebcda
* YQL-20095: Enable google-explicit-constructorvitya-smirnov2026-01-231-2/+2
| | | | commit_hash:4d77ad10fd4db303459ec4e45e139967c7fc8196
* YQL-20367: Support an activation for SQL flagsvitya-smirnov2025-11-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | We need to control feature activation not only for core YQL components, but also for the SQL translator. This patch enables SQL features activation via the new `ExtendedTranslationFlags` configuration property. Example usage: ```scala SqlCore { ExtendedTranslationFlags: { Name: "DisableExceptIntersectBefore202503" Activation: { IncludeUsers: [ "xxx" ] } } } ``` commit_hash:a60dbeb68b73cd0d5f1c1831fecdde19544f12e1
* YQL-20504: Fix formatting check in QPlayersvitya-smirnov2025-10-132-48/+10
| | | | commit_hash:cbb6bbe39c72e2322d57a38ded86cda07c68a419
* YQL-20086 invert flagvvvv2025-10-101-2/+0
| | | | commit_hash:a6b640bc576263b62884a0b4187ba79c893e13d9
* Intermediate changesrobot-piglet2025-10-062-31/+25
| | | | commit_hash:ab4976b763ebd56a8961ed2ba5e9f289926a0086
* YQL-20116: Introduce ANTLR4 ambiguity detectionvitya-smirnov2025-10-061-4/+10
| | | | | | - Ignored 2 known ambiguities. - Tested tools. commit_hash:9e29bb2f876dabc68293b3e5c26a470d373506ae
* YQL-20189: Track warnings as errorsvitya-smirnov2025-09-031-0/+5
| | | | | | There was an issue that a query with warnings as errors passed translation. commit_hash:890d18853380b5ad669e9684553cdb6991827cff
* Intermediate changesrobot-piglet2025-07-141-0/+6
| | | | commit_hash:778aa5364639806318069575e28e3ec6d757b69e
* Intermediate changesrobot-piglet2025-07-111-1/+3
| | | | commit_hash:28e7ffac446ec164b114e1e27cbccf1ac4e7086e
* Intermediate changesrobot-piglet2025-07-101-1/+1
| | | | commit_hash:0db8837c719ce19cf1d9ef561ba7fd77f80a8ae8
* Intermediate changesrobot-piglet2025-07-091-1/+6
| | | | commit_hash:e7846c444dce1a91050e458886f839bf3424a5c6
* Intermediate changesrobot-piglet2025-07-082-1/+54
| | | | commit_hash:4bdb12bc8b88e2f51996b218a14171a53d6bb6b1
* YQL-17269: support INTERSECT and EXCEPT without PositionalUnionAllkndrvt2025-06-201-0/+11
| | | | commit_hash:632e24794e8bcf6ef0502b7e8c031e964d28d36a
* Intermediate changesrobot-piglet2025-06-181-6/+6
| | | | commit_hash:c1a8fb920a99a419ee1636efe4655ea367cc4b11
* Intermediate changesrobot-piglet2025-06-112-5/+1
| | | | commit_hash:c8d74820e197343a1019edeff4f8c21fc5805244
* Intermediate changesrobot-piglet2025-06-092-9/+23
| | | | commit_hash:a5cf347a0fdbf87672444c86b9acad24d4ab956a
* YQL-19616 refactor test lexers from sql2yql, supported facade run toolsvvvv2025-04-142-66/+5
| | | | commit_hash:fb1727dda2b8c7d2ff42d4436c54cb7aa1ce4bc2
* Intermediate changesrobot-piglet2025-04-112-10/+32
| | | | commit_hash:3130610c0735089d0be0e14d07555480bbed5a19
* YQL-19616 Convert YQL lexer grammar to regexesvityaman2025-03-281-2/+2
| | | | | | | | | | | | | | | | | - [x] Parse YQL grammar to extract lexer grammar into `TLexerGrammar`. - [x] Translate `TLexerGrammar` into regexes. - [x] Implement a lexer via regexes `TRegexLexer` to test generated regexes validity. - [x] Test on `Default` syntax mode. - [x] Test on `ANSI` syntax mode. --- - Related to https://github.com/ydb-platform/ydb/issues/15129 - Requirement for https://github.com/ytsaurus/ytsaurus/pull/1112 --- Pull Request resolved: https://github.com/ytsaurus/ytsaurus/pull/1127 commit_hash:03ffffe81cdafe7f93a4d3fd9a3212fe67f1c72d
* Intermediate changesrobot-piglet2025-03-192-0/+56
| | | | commit_hash:50f35111dfe21322f7d24f449ffb9d644521d601
* Intermediate changesrobot-piglet2025-03-051-0/+5
| | | | commit_hash:dacf0e6cb652774fdda7fd6543333c73a68e65b2
* YQL-19594 Explicit lexers & parsers 2vvvv2025-02-211-1/+8
| | | | commit_hash:2aa733486a55a04c39ff8bb1c7eaca3a85719647
* YQL-19594 Explicit lexers & parsersvvvv2025-02-192-1/+15
| | | | commit_hash:6be543b7c5bff6ee474ee606c920197fb2569767
* refactor SQL translators YQL-19594vvvv2025-02-162-7/+16
| | | | commit_hash:401d21dd23ee9bb7ee52b2fc42e596cb3e4bdda7
* EXISTS with tables YQL-19496vvvv2025-01-291-0/+1
| | | | commit_hash:76639a66853d8a9d514e4b11f47e14e2d26e26c4
* YQL for create, alter and drop transfer from topic to tabletesseract2025-01-211-1/+1
| | | | commit_hash:09502f46a7ee665609d2c4ba8d9e0aa421720cdb
* Intermediate changesrobot-piglet2024-12-151-3/+3
| | | | commit_hash:ae0ad14edeb2d2c7b99cdcc642c9e70e882b4a65
* Moved other yql/essentials libs YQL-19206vvvv2024-11-072-7/+7
| | | | | init commit_hash:7d4c435602078407bbf20dd3c32f9c90d2bbcbc0
* Prepare move yql/minikql YQL-19206vvvv2024-11-071-1/+1
| | | | | types,jsonpath,dom commit_hash:6b54be5968b6a30b6d97fe3a1611574bcefc749e
* Moved yql/ast YQL-19206vvvv2024-11-061-3/+3
| | | | | init commit_hash:a6a63582073784b9318cc04ffcc1e212f3df703b
* Moved yql/public/udf YQL-19206vvvv2024-11-031-1/+1
| | | | | | | init [nodiff:caesar] commit_hash:fea5321f18f8d9ada6a22d2359af7e1c4c19b8cc
* Moved yql/parser (w/o pg_wrapper) & yql/protos YQL-19206vvvv2024-11-032-2/+2
| | | | | init commit_hash:71603ddfc208bf4ab1691d886ac35f22c107e3ee
* YQL-19206: Move contrib/ydb/library/yql/tools/ to yql/essentials/tools/maxkovalev2024-11-022-0/+398
YQL-19206: Move contrib/ydb/library/yql/tools/ to yql/essentials/tools/ commit_hash:db43e12cb7f8d79b470589676fd98198a9c94318