Commit Graph

79 Commits

Author SHA1 Message Date
morty
2479453aa5 Free memory before exit 2018-06-04 17:59:24 +03:00
morty
3ad80a6a0f Removed hashtable use ternary search tree 2018-06-04 17:50:16 +03:00
morty
be0f0ecef9 Free hash after usage and dont use it at all if no readline present 2018-05-30 17:45:43 +03:00
morty
12a68a9e23 Added all clickhouse query keywords 2018-05-29 20:04:53 +03:00
morty
dcff1bb79d First implementation 2018-05-25 19:52:50 +03:00
proller
051395a761 clickhouse-client: option --ask-password for interactively ask for credentials #1044 2018-05-21 20:27:18 +03:00
Vitaliy Lyudvichenko
c888903488
Add query ALTER TABLE t1 [REPLACE|ATTACH] PARTITION FROM t2
* Add ATTACH PARTITION FROM table for MergeTree. [#CLICKHOUSE-3546]

* Implemented replicated case on non-leader replica. [#CLICKHOUSE-3546]

* Disable merges in the dropping range. [#CLICKHOUSE-3546]

* DROP PARTITION is atomic and simpler now. [#CLICKHOUSE-3546]

* Implemented more SYSTEM queries. [#CLICKHOUSE-2931] [#CLICKHOUSE-3546]

SYSTEM queries:
RESTART REPLICAS
SYNC REPLICA db.name
STOP MERGES [db.name]
START MERGES [db.name]
STOP FETCHES [db.name]
START FETCHES [db.name]
STOP REPLICATED SENDS [db.name]
START REPLICATED SENDS [db.name]
STOP REPLICATION QUEUES [db.name]
START REPLICATION QUEUES [db.name]

* Fixed a bunch of bugs in REPLACE PARTITION. [#CLICKHOUSE-3546]

* Add tests for REPLACE PARTITION and SYSTEM. [#CLICKHOUSE-3546]

* Add system.part_log logging. [#CLICKHOUSE-3546]

* Fixed long wait in SYNC REPLICA. [#CLICKHOUSE-3546]

* Add requested changes. [#CLICKHOUSE-3546]

Fixed clickhouse-client bad return code.

* Add requested chenges. [#CLICKHOUSE-3546]

* Add requested chenges. [#CLICKHOUSE-3546]
2018-05-21 16:49:54 +03:00
Vitaliy Lyudvichenko
b4025e312e Use neat boost::program_options, more parameters. [#CLICKHOUSE-3713] 2018-05-10 02:15:06 +03:00
Nikolai Kochetov
9e05052c2a merged with master 2018-04-16 18:35:11 +03:00
Nikolai Kochetov
7b8a306e34 minor fixes 2018-04-16 18:11:13 +03:00
proller
0c2ba39978
Debian: Try make compatible package depends (#2194)
* Fix split shared build

* Fix build without system odbc libs

* Move dbms/src/Common/iostream_debug_helpers.h -> libs/libcommon/include/common/iostream_debug_helpers.h

* Fix build with libiodbc

* Fix clickhouse-server.postinst

* Debian: Try make compatible package depends

* Try fix fail on travis tests fail

* Try fix package

* Fix ssl test

* fix

* fix

* wip

* try fix

* clean

* fix
2018-04-10 11:25:08 -07:00
proller
a6f9df105c Allow use encryption for distributed tables (#2065)
* Allow use encryption for distributed tables

* wip

* fix

* rename encryption to secure

* Fix DirectoryMonitor with +secure

* fix

* fix

* Update DirectoryMonitor.cpp

* Update DirectoryMonitor.cpp
2018-03-29 04:41:06 +03:00
alexey-milovidov
f1887fe033
Merge pull request #2105 from elBroom/add-query-id-to-client
Added query_id to client
2018-03-26 01:45:29 +03:00
alexey-milovidov
9ba28666e1
Update Client.cpp 2018-03-26 01:44:54 +03:00
elBroom
b80f5ed875 ignoring query_id in interactive mode 2018-03-25 02:50:30 +03:00
elBroom
d406454f39 Added query_id to client 2018-03-25 02:22:58 +03:00
Alexey Milovidov
f5896d35b4 Removed duplicate code that could lead to wrong behaviour #1959 2018-03-23 21:20:54 +03:00
Alexey Milovidov
046346645f Minor modifications #1959 2018-03-23 19:55:35 +03:00
alexey-milovidov
3f320eb031
Merge branch 'master' into show-server-group-in-client 2018-03-23 19:23:25 +03:00
proller
caf83a650e libs: compiling with msvc2017 (#1996)
* Allow use bundled *ssl library

* fix

* Add submodule

* Fixes

* fix

* fixes

* fixes

* fix

* fix

* update poco

* fix warnings

* fix

* fix

* Build fixes

* Build fixes

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* add bat

* no zookeeper in dbms

* update boost

* fixes

* fixes

* fix

* fix

* fix

* fix

* try fix

* try fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* Better

* fix

* dh verbose

* fix

* dh verbose

* fix

* clean

* Update LocalDate.h

* Update LocalDateTime.h
2018-03-23 19:05:14 +03:00
Alexey Milovidov
ed9517bb0b Whitespace #2051 2018-03-16 07:49:00 +03:00
proller
6a965bb707
Client: use ConfigProcessor (#2049)
* Client: use ConfigProcessor
2018-03-14 22:38:48 +03:00
Kirill Shvakov
808bfef345 inline prompt function 2018-03-12 15:23:15 +02:00
Alexey Milovidov
5ff433b670 Merged Limits to Settings [#CLICKHOUSE-2021] 2018-03-11 03:15:26 +03:00
Kirill Shvakov
8c4a7b774e Removed BB-Style macros for colors. Preparing prompt pattern once and replace current database in the cycle only. 2018-03-08 10:55:27 +02:00
Kirill Shvakov
3f71a79025 Merge branch 'show-server-group-in-client' of https://github.com/kshvakov/ClickHouse-Server into show-server-group-in-client 2018-03-08 09:37:21 +02:00
Kirill Shvakov
052079b73a Use standard markup '{}' like macros. Add coments. 2018-03-08 09:36:58 +02:00
alexey-milovidov
fdcc88b5a2
Update Client.cpp 2018-03-07 23:56:15 +03:00
Kirill Shvakov
27a9ce8dd7 Display host if display name is empty 2018-03-05 16:47:10 +02:00
Kirill Shvakov
5e55a605f0 add bold font 2018-03-05 14:18:53 +02:00
Kirill Shvakov
bba0591452 add X-ClickHouse-Display-Name header to HTTPHandler 2018-03-05 12:20:23 +02:00
Alexey Milovidov
c80a0e549a Fixed error in clickhouse-client [#CLICKHOUSE-2] 2018-03-01 09:18:25 +03:00
Kirill Shvakov
053b3f21a0 move 'colors' from function body 2018-02-27 09:57:18 +02:00
Kirill Shvakov
390ce9428b add background colors 2018-02-27 09:47:15 +02:00
Kirill Shvakov
213caffdde add default section to client config 2018-02-26 15:48:07 +02:00
Kirill Shvakov
f15b55f929 prototype: custom prompt 2018-02-26 15:24:06 +02:00
Kirill Shvakov
d3b6aafa09 Rename group_name to display_name 2018-02-26 08:49:17 +02:00
Alexey Milovidov
6e93635275 Better UNION ALL: development #1947 2018-02-25 09:35:24 +03:00
Kirill Shvakov
2216f9e0cc fix function name 2018-02-24 14:36:19 +02:00
Kirill Shvakov
0b26189fab prototype: show server group name in client 2018-02-24 14:06:53 +02:00
Alexey Milovidov
468a280a94 Fixed bug [#CLICKHOUSE-3561] 2018-02-05 23:33:17 +03:00
Alexey Milovidov
08a76cbdcc Miscellaneous [#CLICKHOUSE-2] 2018-01-22 01:00:27 +03:00
Alexey Milovidov
94701c1d17 Addition to prev. revision [#CLICKHOUSE-2]. 2018-01-10 04:43:54 +03:00
Alexey Milovidov
0bfea2f52c Miscellaneous [#CLICKHOUSe-2] 2018-01-10 03:04:08 +03:00
Nikolai Kochetov
cbeeb84999 added http_*_timeout settings [#CLICKHOUSE-3440] 2018-01-09 21:41:01 +03:00
proller
9b8972b4c8 Add bad queries from #1563 (#1653)
* cmake fix

* load shell_config.sh

* env bash

* fix

* use $CLICKHOUSE_CLIENT

* fix

* curl 1

* curl2

* curl3

* fix

* fix

* fix

* fix

* ExtractFromConfig --try

* fix

* fix

* Add symlinks to package

* fix bundle

* fix

* fix

* fix package

* clickhouse-test --order option

* client --ignore-error option (useful with --multiquery)

* add bad queries from @filimonov

* More queries

* --ignore_error via lexer

* fix

* rename
2017-12-22 21:29:03 +03:00
Alexey Milovidov
3124ffea67 Fixed error in prev. revision [#CLICKHOUSE-2]. 2017-12-20 02:14:37 +03:00
Alexey Milovidov
548cb4e658 Fixed bad code in Client.cpp [#CLICKHOUSE-2]. 2017-12-19 22:46:02 +03:00
ks1322
2a42fe8f3f ignore SIGPIPE signal for custom pagers 2017-12-16 16:06:30 +03:00
Alexey Milovidov
aea1d0ce4a Fixed error [#CLICKHOUSE-2]. 2017-12-14 00:26:17 +03:00