Ivan Lezhankin
8c356a3830
WIP
2019-09-15 18:20:31 +03:00
alexey-milovidov
6b1352f65c
Merge pull request #6893 from malkfilipp/client_older_than_server
...
Display warning if clickhouse-client version is older than clickhouse-server.
2019-09-11 16:02:35 +03:00
malkfilipp
62f85c0a3a
Switch to tuples
2019-09-11 11:41:57 +03:00
malkfilipp
b63d2422d0
Change versions comparing from string to number
2019-09-11 01:29:21 +03:00
alexey-milovidov
8fa72c6804
Update Client.cpp
2019-09-10 23:10:23 +03:00
malkfilipp
058c04e759
Add a warning if the client is older than the server
2019-09-10 22:28:33 +03:00
Amos Bird
a1310ffbe6
Split libdbms.so using object library
...
Now the linking time of incremental builds are around 1-2 seconds
2019-09-11 01:56:01 +08:00
Anton Popov
69da4f30b3
Merge branch 'master' into merging_input_function
2019-09-06 16:20:00 +03:00
Mikhail Filimonov
34f393c17e
Ability to change history path by changing env
2019-09-06 01:35:25 +02:00
CurtizJ
b04cea7463
minor fixes of table function input
2019-09-05 16:17:01 +03:00
CurtizJ
7accc09066
Merge branch 'palasonic-add-input-function' of https://github.com/palasonic1/ClickHouse into merging_input_function
2019-09-04 15:25:20 +03:00
alexey-milovidov
b2e80b0cd9
Merge branch 'master' into query_masking
2019-09-03 22:58:15 +03:00
alexey-milovidov
5f33fd946f
Merge pull request #6711 from dimarub2000/exception_while_insert
...
Exception check added in client when sending insertion data.
2019-09-03 21:47:48 +03:00
Dmitry Rubashkin
d2b9990a2a
Unexpected packets received in a better way now.
2019-09-03 12:36:16 +03:00
Dmitry Rubashkin
876847f3f7
Now stacked logs are received in appropriate way.
2019-08-29 20:30:16 +03:00
Dmitry Rubashkin
4bd79c47dc
Now send_logs_level won't affect catching exception. Test added.
2019-08-29 15:36:06 +03:00
Dmitry Rubashkin
4b7f5f20c1
Exception check added when sending data by parts.
2019-08-28 20:52:17 +03:00
Alexey Milovidov
10b878b30b
Disable Poco::AbstractConfiguration substitutions in query in clickhouse-client
2019-08-28 18:06:30 +03:00
Dmitry Rubashkin
4f89dcc80d
Try to fix
2019-08-26 15:47:19 +03:00
alexey-milovidov
44d3e1e837
Update Client.cpp
2019-08-23 23:35:36 +03:00
alexey-milovidov
13f59d3f6c
Update Client.cpp
2019-08-23 23:13:08 +03:00
dimarub2000
859d97e8fd
Renaming
2019-08-23 18:47:27 +03:00
dimarub2000
a367f94923
Fix after review
2019-08-23 16:19:12 +03:00
Dmitry Rubashkin
e9d813bff7
Minor fixes
2019-08-22 17:30:18 +03:00
Dmitry Rubashkin
095124dcba
setOptionsDescription() function added
2019-08-22 17:03:37 +03:00
Alexey Milovidov
0a9787c7f3
Fixed possible stack overflow in parser
2019-08-10 19:38:25 +03:00
Mikhail Filimonov
9c2ae4513d
SensitiveDataMasker
2019-07-19 10:22:42 +02:00
Alexey Milovidov
36269c4e2a
Addition to prev. revision
2019-07-08 06:41:37 +03:00
Alexey Milovidov
f40b70884f
Two more fixes for PVS-Studio
2019-07-08 05:14:32 +03:00
Ivan Lezhankin
3b995bdb02
Add missing dependecies on sight to enable --no-undefined option
2019-07-04 17:05:55 +03:00
Alexey Milovidov
498a2072b5
Fixed bug in query formatting with TEMPORARY tables
2019-06-29 19:58:32 +03:00
Alexey Milovidov
a643f2f75e
Merge branch 'master' into sanych73-prepared_statements
2019-06-29 15:51:56 +03:00
proller
8b1651ae1f
arcadia fixes ( #5795 )
2019-06-29 15:04:47 +03:00
alesapin
e45d727e9d
Merge pull request #4558 from podshumok/distributred-timeout
...
Distributed and remote timeouts
2019-06-17 13:58:17 +03:00
Alexey Milovidov
0f9599bf22
Removed bad code; added support for --param_name value
2019-06-15 21:56:32 +03:00
Alexey Milovidov
b079631f61
Fixed tests
2019-06-15 21:22:48 +03:00
Alexey Milovidov
fad6013270
Fixing query parameters
2019-06-15 20:52:53 +03:00
Alexey Milovidov
da04db2a93
Fixes for #5331
2019-06-14 21:56:28 +03:00
Alexey Milovidov
f535a2f55f
Fixes for #5331
2019-06-14 21:32:22 +03:00
Alexey Milovidov
c5c2bd4a3f
Merge branch 'prepared_statements' of https://github.com/sanych73/ClickHouse into sanych73-prepared_statements
2019-06-14 19:28:25 +03:00
proller
09f3d68f6e
Use logging in clickhouse-local. Use config options in command line in clickhouse-client ( #5540 )
...
* Try fix macos server run
* Doc macos build
# Please enter the commit message for your changes. Lines starting
* CLICKHOUSE-3957 start wip
* tests wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* fix
* fix
* Making logger for clickhouse-local
* fixes
* wip
* wip
* wip
* wip
* clean
* cf
* wip
* fix
* Update CMakeLists.txt
* Update argsToConfig.h
* Update argsToConfig.cpp
* Update ExtendedLogChannel.h
* Update OwnPatternFormatter.cpp
2019-06-14 17:00:37 +03:00
Alexander Tretiakov
905856f02d
merge
2019-06-05 17:02:13 +03:00
Orivej Desh
5ec179377a
DEVTOOLS-5170 Delete Y_IGNORE markers ( #5533 )
...
They have been superseded by a new include resolution configuration that lives
outside clickhouse source tree.
2019-06-05 14:52:39 +03:00
Alexander Tretiakov
2f1a03dac0
merge
2019-06-04 21:08:08 +03:00
proller
8b101d0556
CLICKHOUSE-4493 Ask client password on tty ( #5092 )
...
* CLICKHOUSE-4493 Ask client password on tty
* wip
* clang-format
* O_NOCTTY
* remove O_NOCTTY
* fix
* static
* readpassphrase
* freebsd fix
* fix
* Better
* fix style
* Update ConnectionParameters.cpp
* fixes
* fix
* fix
2019-06-03 03:57:33 +03:00
Konstantin Podshumok
ab1913186e
fix timeouts in Suggest.h
2019-06-02 12:43:20 +03:00
Konstantin Podshumok
5cf4a4fd80
client: update timeouts usage
2019-06-02 12:43:20 +03:00
palasonicq
7826effcd7
Minor changes
2019-05-31 00:33:06 +03:00
palasonicq
ea86a758a1
Added some improvements after code review
2019-05-30 23:12:44 +03:00
palasonicq
0823e397ea
Added missed modifications
2019-05-28 21:30:10 +03:00
proller
324317ff6f
clickhouse-client: allow to run with unaccessable history file (read only, no disk space, file is directory, ...)
2019-05-27 21:56:50 +03:00
Alexander Tretiakov
461fb1eaa8
fix test
2019-05-26 01:51:21 +03:00
Alexander Tretiakov
212731b3e2
merge
2019-05-26 01:45:15 +03:00
Alexander Tretiakov
946fa5b47e
fix style and add tests
2019-05-25 16:43:52 +03:00
Guillaume Tassery
6fada68fe5
forget client.cpp
2019-05-20 20:24:53 +07:00
Alexander Tretiakov
f6812bbb1a
fix style
2019-05-19 02:57:26 +03:00
Alexander Tretiakov
c661f5c0a1
new
2019-05-19 00:07:23 +03:00
Vitaly Baranov
738a49f534
Use iterators instead of macros APPLY_FOR_SETTINGS and others.
2019-04-27 01:09:16 +03:00
Vitaly Baranov
8277e9d8f1
Refactoring of Settings based on new template class SettingsCollection.
...
Add new class SettingsConstraints.
2019-04-26 19:11:05 +03:00
Alexey Milovidov
33252941f9
Added a comment
2019-04-24 21:40:45 +03:00
Alexey Milovidov
2428ba70f5
Added option "always_load_suggestion_data" to clickhouse-client #5066
2019-04-24 19:47:04 +03:00
Alexey Milovidov
3741449017
Added option "always_load_suggestion_data" to clickhouse-client #5066
2019-04-24 19:45:21 +03:00
proller
5b1bde2e80
CLICKHOUSE-4387 Add (official build) to version of yandex builds
2019-04-03 17:06:59 +03:00
Vitaly Baranov
37b904b8f5
Merge pull request #4808 from vitlibar/kafka-with-protobuf-format
...
Kafka with protobuf format
2019-03-30 19:00:57 +03:00
Vitaly Baranov
08f85804d0
Send query settings before data from client to server.
...
Apply query settings only for the containing query (client).
2019-03-29 17:39:00 +03:00
Alexey Milovidov
f4b819c692
Added TRUNCATE to the list of suggested keywords in clickhouse-client
2019-03-28 20:52:50 +03:00
Alexey Milovidov
9bc4632f20
Avoid progress bar flicker
2019-03-26 17:36:56 +03:00
Azat Khuzhin
6d8706e692
clickhouse-client: fix --help without tty
...
stdin_is_not_tty is detected too late when the --help message is
printed, so fix this and do not call ioctl if stdin is not tty.
Before this patch:
$ clickhouse-client --help < /dev/null
debug build:
$ dbms/programs/clickhouse-client --help < /dev/null
Main options:
--help
clickhouse-client: ../contrib/boost/libs/program_options/src/options_description.cpp:542:
void boost::program_options::{anonymous}::format_description(std::ostream&, const string&, unsigned int, unsigned int): Assertion `line_length > first_column_width' failed.
Aborted (core dumped)
release build:
$ dbms/programs/clickhouse-client --help < /dev/null
.... print lots of empty lines and so forth ...
v2: add a test and bsdutils into image for tests
v3: adjust minimal cols to the length of one of the longest arguments,
since with line_length=3 boost will bail anyway (under script(1)
ioctl(TIOCGWINSZ) returnes ws_col=0)
2019-03-23 02:01:32 +03:00
Alexey Zatelepin
304c67da99
Merge branch 'master' into fix-add-materialized-column-after
...
Conflicts:
dbms/src/Interpreters/InterpreterCreateQuery.cpp
dbms/src/Interpreters/InterpreterDescribeQuery.cpp
dbms/src/Interpreters/interpretSubquery.cpp
dbms/src/Storages/ColumnsDescription.cpp
2019-03-17 00:46:53 +03:00
Alexey Zatelepin
b5a0a3fa23
store all kinds of columns in the same list in ColumnsDescription [#CLICKHOUSE-3101]
2019-03-15 19:37:52 +03:00
Ivan Lezhankin
61c24e0844
Overload template method |as<>()| with reference type.
...
Move promotion logic to a separate class
2019-03-15 16:12:11 +03:00
Ivan Lezhankin
67eefa7b12
Revert wrong replacements of dynamic_cast.
...
dynamic_cast to intermediate type is not equivalent to typeid_cast
2019-03-12 15:41:57 +03:00
Ivan Lezhankin
d1ead22073
Rename As<…> → as<…>
2019-03-11 16:22:51 +03:00
Ivan Lezhankin
a7e838e328
Replace all other casts to method IAST::As<Derived>
...
Also remove some redundant methods like IsIdentifier() et. al.
2019-03-11 15:49:39 +03:00
Ivan Lezhankin
0e325c7a4a
Replace const typeid_casts with As<Derived>() method invocations
2019-03-08 12:48:20 +03:00
proller
d2e18d47fb
Fix link in split mode ( #4574 )
2019-03-04 20:47:31 +03:00
Vitaly Baranov
76aae5f5d0
Add support for settings 'format_schema' in a "INSERT INTO table FORMAT" query.
2019-02-20 05:32:29 +03:00
alexey-milovidov
81a184c47f
Merge pull request #4301 from yandex/input-data-in-perf-test
...
Fix perf-test input data and refactor two tests
2019-02-11 12:52:03 +03:00
alexey-milovidov
4f2b35cb10
Merge pull request #4215 from abyss7/CLICKHOUSE-3729
...
Report progress from server-side to keep client connections alive
2019-02-11 02:07:57 +03:00
Alexey Milovidov
a1754f76b5
Added one more keyword for command line completions #4328
2019-02-10 23:30:28 +03:00
Alexey Milovidov
5b97abe693
Fixed use after free in clickhouse-client (suggestion thread)
2019-02-08 21:15:54 +03:00
alesapin
0a4c99efe4
More effective
2019-02-07 19:09:06 +03:00
alesapin
15488a21eb
Really process single query instead of preparsed multiquery
2019-02-07 19:03:02 +03:00
Ivan Lezhankin
92769a2460
Don't update "arrow" on client-side for nothing
2019-02-07 16:47:16 +03:00
Ivan Lezhankin
8c640f54f8
Fix clang-7 warnings
2019-02-05 13:19:34 +03:00
Ivan Lezhankin
994926e568
Merge remote-tracking branch 'upstream/master' into CLICKHOUSE-3729
2019-02-04 20:13:50 +03:00
alexey-milovidov
450c575c7e
Merge pull request #4230 from bsd-conqueror/missing_password_value
...
Fixed the issue when --password was used without a value
2019-02-02 20:53:15 +03:00
alexey-milovidov
fb297b78ba
Update ConnectionParameters.h
2019-02-02 20:52:57 +03:00
alexey-milovidov
69c18786cb
Update Client.cpp
2019-02-02 20:50:57 +03:00
Sergei Semin
adfc3bf5b3
fix typo
2019-02-02 17:43:36 +03:00
Sergei Semin
3f92350c2b
rename config file parameter name
2019-02-02 17:40:29 +03:00
BSD_Conqueror
fbb3fee9af
Fixed a mistype
2019-02-02 17:35:51 +03:00
Sergei Semin
f3bbb07337
remove extra brackets
2019-02-02 17:29:54 +03:00
Sergei Semin
21cc1f6488
add another option for client configuration file
2019-02-02 17:28:37 +03:00
Sergei Semin
c7b52af1f8
Revert "treat "-C" as "-c" parameter for clickhouse-client"
...
This reverts commit 6ed2a4d4
2019-02-02 17:01:10 +03:00
Sergei Semin
959952114c
move client creation and run under try to show exception message
2019-02-02 16:49:24 +03:00
BSD_Conqueror
5a7e4c863d
Added a comment to explain why '\n' is used as the implicit value for the --password option
2019-02-02 16:43:08 +03:00
BSD_Conqueror
171f54a1f6
Merge branch 'missing_password_value' of https://github.com/bsd-conqueror/ClickHouse into missing_password_value
2019-02-02 16:21:55 +03:00
BSD_Conqueror
d2d11d4e96
Removed code duplication in --password handling
2019-02-02 16:20:51 +03:00
BSD_Conqueror
375be7b881
Merge branch 'master' into missing_password_value
2019-02-02 16:10:38 +03:00