ClickHouse/tests
Val Doroshchuk efa638ef3c MaterializedMySQL: Support unquoted utf-8 strings in DDL
Since ClickHouse does not support unquoted utf-8 strings but MySQL does.

Instead of fixing Lexer to recognize utf-8 chars as TokenType::BareWord,
suggesting to quote all unrecognized tokens before applying any DDL.

Actual parsing and validating the syntax will be done by particular Parser.

If there is any TokenType::Error, the query is unable to be parsed anyway.
Quoting such tokens can provide the support of utf-8 names.

See `tryQuoteUnrecognizedTokens` and `QuoteUnrecognizedTokensTest`.

mysql> CREATE TABLE 道.渠(...

is converted to

CREATE TABLE `道`.`渠`(...

Also fixed the bug with missing * while doing SELECT in full sync because db or table name are back quoted when not needed.
2023-07-24 11:12:10 +02:00
..
ci Reproducible builds for Rust 2023-07-22 22:46:22 +02:00
config
fuzz
instructions
integration MaterializedMySQL: Support unquoted utf-8 strings in DDL 2023-07-24 11:12:10 +02:00
jepsen.clickhouse
perf_drafts
performance
queries Merge pull request #52450 from ClickHouse/remove-to-decimal-string 2023-07-24 08:40:51 +03:00
sqllogic
.gitignore
.rgignore Revert changes in tests 2022-12-13 12:48:14 +01:00
analyzer_integration_broken_tests.txt
analyzer_tech_debt.txt Merge branch 'master' into dist/optimize_skip_unused_shards-join-fix 2023-07-23 01:29:38 +03:00
clickhouse-test
CMakeLists.txt
tsan_suppressions.txt
ubsan_suppressions.txt