mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
6cfbaf9f86
If some string literals are used in DDL, they might have `Character Set Introducers` https://dev.mysql.com/doc/refman/8.0/en/charset-introducer.html f.e. _utf8mb4'1' which is not parsable by current ParserStringLiteral. Since we use utf8 by default, suggesting to automatically convert the string literals to utf8 before executing the query and avoid any charset introducers there. Conversion from utf8 to utf8 is not needed and skipped. Also it might convert double quotes to single quotes if any which might solve issues with COMMENT and empty string literals "" in DEFAULT expressions. SELECT _latin1"abc"; -- might be also valid for MySQL ... DEFAULT "", ... COMMENT "abc" Currently no DEFAULT expressions are supported, not parsable at all, but using this MR it allows to parse the expressions together with double quotes as string literals. |
||
---|---|---|
.. | ||
configs | ||
__init__.py | ||
materialized_with_ddl.py | ||
test.py |