Robert Schulze
802bae9661
GCC --> clang pragmas
2024-03-11 12:55:56 +00:00
vdimir
b4bfd01322
Merge pull request #58246 from ClickHouse/vdimir/util_format_values
...
clickhouse-format improvements: support VALUES, comments, max_line_length
2024-01-09 11:24:42 +01:00
Bharat Nallan
ee37f551a2
independent registration of interpreters ( #58443 )
...
* make interpreter factory an instance
* add registerInterpreter
* register interpreters individually
* try wire everything up
* fix style
* fix test
2024-01-08 22:33:48 -08:00
vdimir
e68fc2df7a
Remove spaces after insert in clickhouse-format
2024-01-08 12:16:53 +00:00
vdimir
cccc24c2fd
upd
2024-01-08 12:01:34 +00:00
vdimir
621d17b16f
Better clickhouse-format: support VALUES, comments
2024-01-08 12:01:33 +00:00
Bharat Nallan Chakravarthy
906745feaa
validation and left over fixes
2023-12-29 20:06:07 -08:00
Alexey Milovidov
dc4b9a1013
Obfuscator: keep settings and timezones
2023-12-23 04:55:55 +01:00
Alexey Milovidov
264bff8c9f
Fix a comment
2023-08-05 01:44:16 +02:00
Sema Checherinda
1596b09dc2
add missing finalize calls
2023-06-28 10:51:54 +02:00
Alexey Milovidov
98ae9be734
Revert "Added tests for ClickHouse apps help and fixed help issues"
2023-04-21 01:54:34 +03:00
Yatsishin Ilya
80857638c1
Merge remote-tracking branch 'origin/master' into clickhouse-help
2023-02-22 13:58:17 +00:00
Yatsishin Ilya
200e50b8e1
more changes in apps help
2023-02-08 12:55:56 +00:00
Antonio Andelic
ec04cf6876
Merge branch 'master' into add-support-for-settings-alias
2023-02-01 09:01:01 +00:00
Antonio Andelic
defc9108f0
Extend support for aliases to constraints and profiles
2023-01-27 09:39:10 +00:00
Alexander Tokmakov
3f6594f4c6
forbid old ctor of Exception
2023-01-23 22:18:05 +01:00
Robert Schulze
118e94523c
Activate clang-tidy warning "readability-container-contains"
...
This check suggests replacing <Container>.count() by
<Container>.contains() which is more speaking and in case of
multimaps/multisets also faster.
2022-04-18 23:53:11 +02:00
zhanghuajie
9947008d31
fix crash when you use clickhouse-git-import with invalid parameter
...
for example:
clickhouse-git-import -xxx
2022-04-14 23:16:02 +08:00
Azat Khuzhin
33d99c8ffb
Introduce compatiblity mode for SETTINGS after FORMAT
...
Add allow_settings_after_format_in_insert setting, OFF by default.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: s/parser_settings_after_format_compact/allow_settings_after_format_in_insert/ (suggested by vitlibar)
v3: replace ParserSettings with a flag (requested by vitlibar)
2022-04-07 16:36:34 +03:00
taiyang-li
26f2a0ef51
move clickhouse-format code from settings to format.cpp
2022-02-07 13:34:13 +08:00
taiyang-li
caed1898b0
add options for clickhouse-format
2022-02-06 11:22:05 +08:00
Alexey Milovidov
0bf597374f
More enhancements for query obfuscator
2021-10-03 05:56:32 +03:00
Alexey Milovidov
7269b20ecc
Fix issue: clickhouse-format --obfuscate cannot process queries with embedded dictionaries
2021-10-03 00:46:51 +03:00
凌涛
08983e432b
clickhouse-format support option --query
2021-09-25 00:34:33 +08:00
Ivan
495c6e03aa
Replace all Context references with std::weak_ptr ( #22297 )
...
* Replace all Context references with std::weak_ptr
* Fix shared context captured by value
* Fix build
* Fix Context with named sessions
* Fix copy context
* Fix gcc build
* Merge with master and fix build
* Fix gcc-9 build
2021-04-11 02:33:54 +03:00
Kruglov Pavel
2e7f756d7c
Merge pull request #21494 from ucasFL/format
...
add --backslash option for clickhouse-format
2021-03-12 14:31:58 +03:00
feng lv
ba16896162
add --backslash option for clickhouse-format
...
fix
fix
fix
2021-03-06 12:29:16 +00:00
feng lv
d208013161
add test
...
fix
fix
fix
2021-03-06 05:03:53 +00:00
feng lv
cbeb2853fb
improve clickhouse-format
...
fix
fix error word
2021-02-28 11:34:25 +00:00
Alexey Milovidov
bb4668fd6e
Fix bug: no newline after exception message in some tools
2020-12-24 00:18:08 +03:00
Alexander Tokmakov
5cdfcfb307
remove other stringstreams
2020-11-09 22:12:44 +03:00
Alexander Tokmakov
62ff00ee8b
use WriteBuffer in formatAST(...)
2020-11-09 19:05:40 +03:00
Alexey Milovidov
ed4ff51ed8
Integrate into clickhouse-format; add test and comments
2020-09-26 03:38:59 +03:00
alexey-milovidov
580c218680
Update Format.cpp
2020-05-12 19:21:37 +03:00
dgrr
340ca06979
Changed formatting of Format.cpp (to fit ClickHouse's)
2020-05-12 18:13:34 +02:00
dgrr
6425e5453b
Added multiple query formatting on clickhouse-format
2020-05-12 16:56:52 +02:00
Alexey Milovidov
cdeda4ab91
Fix usage of max_parser_depth setting; remove harmful default function arguments
2020-04-16 04:06:10 +03:00
Ivan
97f2a2213e
Move all folders inside /dbms one level up ( #9974 )
...
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00