ivanzhukov
3c6de6eee9
Use new IO functions interface
2017-05-09 21:53:47 +03:00
ivanzhukov
5fa4b5f15e
Support query in a file
2017-05-09 21:53:47 +03:00
ivanzhukov
086ef6ed82
Support directory as an input
2017-05-09 21:53:47 +03:00
ivanzhukov
1c2b64168e
Code style
2017-05-09 21:53:46 +03:00
ivanzhukov
0fb964ba79
Print all runs for one query first
2017-05-09 21:53:31 +03:00
ivanzhukov
52849e746e
Check metrics for execType
2017-05-09 21:53:31 +03:00
ivanzhukov
f4c6219244
Use new connectionPool inerface
2017-05-09 21:53:31 +03:00
ivanzhukov
73fa7905f0
Use new RemoteBlockInputStream's interface
2017-05-09 21:53:31 +03:00
ivanzhukov
c6f35247bf
Fix include
2017-05-09 21:53:29 +03:00
ivanzhukov
26606a1556
Dont print corrupted statistics
2017-05-09 21:52:58 +03:00
ivanzhukov
dca10863c7
Refactoring
2017-05-09 21:52:58 +03:00
ivanzhukov
70fb951831
Separate metrics output for queries
2017-05-09 21:52:58 +03:00
ivanzhukov
09ca5e0032
Construct and output info at the end
2017-05-09 21:52:58 +03:00
ivanzhukov
64a18f6b6e
Rename read_{rows,bytes} to {rows,bytes}_read
2017-05-09 21:52:58 +03:00
ivanzhukov
3568946082
Add support for time criterions
2017-05-09 21:52:58 +03:00
ivanzhukov
c4c6960c75
Separate 'loop' queries execution from 'once'
2017-05-09 21:52:57 +03:00
ivanzhukov
1986ceb819
Execute queries without terminate conditions
2017-05-09 21:52:56 +03:00
ivanzhukov
4e5362b246
Replace raw pointers with Poco's AutoPtr
2017-05-09 21:52:42 +03:00
ivanzhukov
17c7b2a0cf
Extract settings and construct queries from config
2017-05-09 21:52:40 +03:00
ivanzhukov
fd307bffb7
Add command line options support
2017-05-09 21:52:17 +03:00
ivanzhukov
39c3054d09
Add base file for PerformanceTest
2017-05-07 01:04:39 +03:00
ivanzhukov
842ebadc0e
Add cmake rules for performance test launcher
2017-05-07 01:04:39 +03:00
proller
fac00792f9
Move most AggregateFunctions to separate lib, use AggregateFunctionFactory as singletone, rename lib storages_system->clickhouse_storages_system
2017-05-05 16:59:18 -07:00
proller
f32862be60
Hotfix for functions lib in client
2017-04-21 22:16:31 +03:00
Alexey Zatelepin
baf0f70ba3
Failover if the needed table is missing on remote server [#CLICKHOUSE-2141]
2017-04-20 19:19:30 +03:00
Alexey Zatelepin
d1fa449f4a
PR fixes [#CLICKHOUSE-2141]
2017-04-20 17:04:38 +03:00
Alexey Zatelepin
c91828e5bf
PR fixes [#CLICKHOUSE-2141]
2017-04-19 21:29:50 +03:00
Alexey Zatelepin
485c58b039
use only ConnectionPoolWithFailover in RemoteBlockInputStream [#CLICKHOUSE-2141]
2017-04-19 20:50:17 +03:00
Alexey Zatelepin
aa62dc354f
ensure that empty entries are not returned from PoolWithFailoverBase [#CLICKHOUSE-2141]
2017-04-18 16:37:00 +03:00
Alexey Zatelepin
e30dc7c254
check replica delay when getting a connection from ConnectionPoolWithFailover [#CLICKHOUSE-2141]
2017-04-17 22:51:41 +03:00
Alexey Zatelepin
0a98f43d3a
add TablesStatus request to protocol [#CLICKHOUSE-2141]
2017-04-17 19:02:48 +03:00
Alexey Milovidov
777adabde7
Client: fixed error with percentage [#CLICKHOUSE-2].
2017-04-16 07:28:04 +03:00
Alexey Milovidov
00ebb1709d
Client: more correct code [#CLICKHOUSE-2].
2017-04-12 22:50:49 +03:00
proller
72ccc69212
Debian: simpler package ( #662 )
...
* Allow use external re2 with re2_st=re2
* fix
* remove dupe
* use re2_st in FunctionsStringSearch.h
* fix
* move files from tools/etc to debian
* dont generate control
* version
* ok.
* wip
* Cmake: dont touch CMAKE_INSTALL_PREFIX
* wip
* works!
* clean
* okay
* like old
* wip
* wip
* okay
* clickhouse-server-base-dbg
* clean
* clickhouse-server-dbg
* Debian: Remove daemons
* Update rules
* add source/format
* control clean
* add watch
* clean
* clean
* temp fix build
* clean
* docs
* fake make_control
* fix
* testme
* testme
* add metrika package
* fake metrika files
2017-04-10 20:43:30 +03:00
Alexey Milovidov
a0b9bf5e97
Moved code to cpp [#CLICKHOUSE-2].
2017-04-08 04:32:05 +03:00
Alexey Milovidov
a7e557f2a3
clickhouse-client: Fixed terminal escape codes in Mosh [#CLICKHOUSE-2930].
2017-04-07 20:56:03 +03:00
f1yegor
b4c23f122a
Translated comments
2017-04-02 20:37:49 +03:00
Alexey Milovidov
310736cd7e
Moved headers and sources to same place [#CLICKHOUSE-3].
2017-04-01 12:22:42 +03:00
Alexey Milovidov
09e3134bf4
Revert "Using C++17 [#CLICKHOUSE-3]."
...
This reverts commit 431a735efe
.
2017-04-01 11:51:30 +03:00
Alexey Milovidov
ecb0b87bd8
Using C++17 [#CLICKHOUSE-3].
2017-04-01 11:51:30 +03:00
Alexey Milovidov
137ad95929
Changed tabs to spaces in code [#CLICKHOUSE-3].
2017-04-01 11:35:09 +03:00
Alexey Milovidov
4f44445ff0
Removed all trailing whitespaces [#CLICKHOUSE-2]. find . -name '*.h' -or -name '*.cpp' -or -name '*.cmake' -or -name 'CMakeLists.txt' -or -name '*.html' -or -name '*.xml' | grep -v contrib | xargs sed -i -r -e 's/\s+$//'
2017-03-31 19:00:30 +03:00
George
1d317d994f
Fixed mistake that made % not show over 50%
2017-03-31 08:11:31 +03:00
Alexey Milovidov
14c8003081
Normalized formatting [#CLICKHOUSE-3].
...
Apply in a loop:
find dbms -name '*.h' -or -name '*.cpp' | xargs grep -l -P '^(\t*) ' | xargs sed -i -r -e 's/^(\t*) /\1\t/'
2017-03-26 04:28:07 +03:00
f1yegor
bc0d9a2cae
translate comments
2017-03-25 21:12:56 +01:00
Alexey Zatelepin
3f9eb5f0f9
implemented clickhouse --extract-from-config tool [#CLICKHOUSE-2876]
2017-03-25 02:31:18 +03:00
George3d6
f338a747b0
Update Client.cpp ( #615 )
...
* Update Client.cpp
* Update Client.cpp
Added a check before displaying the % completed to see if progress.total_rows is equal to zero (in order not to display faulty information for table where the % can't be computed). Also added the "elapsed_ns > 500000000" check so that the % still renders in sync with the progress bar.
2017-03-23 04:57:11 +04:00
Vitaliy Lyudvichenko
349c96ec8f
Resolved #619 . Eliminated copy paste from benchmark util. [#CLICKHOUSE-3]
2017-03-21 15:18:56 +03:00
proller
930ac5b2ce
move ClickHouseRevision to dbms
2017-03-16 13:51:41 +04:00
proller
28ed324702
add cmake option USE_VECTORIZED_MATH_FUNCTIONS, reorganize auto configs
2017-03-16 13:51:41 +04:00
Alexey Milovidov
a6a18db6da
Merge branch 'translate/comments' of https://github.com/f1yegor/ClickHouse into f1yegor-translate/comments
2017-03-13 20:51:22 +03:00
Alexey Milovidov
7606eef20c
Style [#CLICKHOUSE-2].
2017-03-13 20:37:20 +03:00
Alexey Milovidov
07f256015b
Revert "Update Client.cpp"
...
This reverts commit 4eb969087d
.
2017-03-13 20:35:17 +03:00
alexey-milovidov
4eb969087d
Update Client.cpp
2017-03-13 21:33:18 +04:00
ks1322
afbd2f78d8
pager for command line client
2017-03-13 00:10:52 +03:00
f1yegor
401425bb89
translate comments
2017-03-12 20:18:07 +01:00
Alexey Milovidov
5546f7f75b
Normalized formatting [#CLICKHOUSE-3].
2017-03-09 07:26:17 +03:00
f1yegor
48bd5b696c
translate comments
2017-03-09 01:56:38 +01:00
proller
045fd6f55d
fix build without readline
2017-02-08 01:40:08 +03:00
Vitaliy Lyudvichenko
38c900bf2f
Add request changes for #436 PR.
2017-02-07 23:43:31 +04:00
Vitaliy Lyudvichenko
67d8ce3568
Fast SIGINT handling and correct exception handling in Benchmark. [#CLICKHOUSE-2774]
2017-02-07 23:43:31 +04:00
proller
3135ff17b6
Fix compiling utils without readline ( #429 )
...
* Fix compiling utils without readline
* fix
2017-01-31 23:34:30 +04:00
alexey-milovidov
de9bc1dc75
Text formats allow to skip errors ( #407 )
...
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Allow to skip errors in text formats: added settings 'input_format_allow_errors_num' and 'input_format_allow_errors_ratio' [#CLICKHOUSE-2778]. https://github.com/yandex/ClickHouse/issues/134
* Added test [#CLICKHOUSE-2778].
2017-01-27 08:29:47 +04:00
Alexey Milovidov
43971faf32
Merge branch 'localhost' of https://github.com/proller/ClickHouse into proller-localhost
2017-01-27 00:42:56 +03:00
alexey-milovidov
0e38fdcbf3
Remove stringstream performance on very short queries ( #406 )
...
* Improved performance on very short-response queries [#CLICKHOUSE-2].
* Improved performance on very short-response queries [#CLICKHOUSE-2].
* Improved performance on very short-response queries [#CLICKHOUSE-2].
* Renamed variable in test [#CLICKHOUSE-2].
* Benchmark: whitespace [#CLICKHOUSE-2].
* Manual version update [#CLICKHOUSE-2].
2017-01-27 01:30:11 +04:00
proller
35dce017a2
Merge remote-tracking branch 'upstream/master' into localhost
2017-01-26 15:07:29 +03:00
proller
70e641f58a
Fix readline finding on mac; use config for readline vars ( #397 )
...
* Fix readline finding on mac; use config for readline vars
* fix
2017-01-26 00:14:41 +04:00
proller
3fc4998a01
Merge remote-tracking branch 'upstream/master' into localhost
2017-01-25 21:27:23 +03:00
proller
f890af1f8d
Remove code and includes from Collator.h, fix including <unicode/...> in dbms ( #395 )
2017-01-25 22:19:15 +04:00
proller
9c3133deac
wip
2017-01-25 16:17:13 +03:00
Alexey Zatelepin
f5a25c341c
translate comments [#CLICKHOUSE-3]
2017-01-19 03:48:59 +04:00
Alexey Zatelepin
5de1975bc4
parse INTO OUTFILE clause [#CLICKHOUSE-2133]
2017-01-19 03:48:59 +04:00
proller
db0fce346a
Freebsd clang3.8 compile fixes ( #352 )
...
* Freebsd clang3.8 compile fixes
* clean
2017-01-18 01:00:23 +04:00
proller
ecb7642c4f
Freebsd: preparing port, misc build/install chandes
2017-01-12 13:51:30 +00:00
Alexey Milovidov
604bd6c5a3
Less const_casts [#METR-2944].
2017-01-03 04:42:17 +03:00
Alexey Milovidov
ca37f28b5f
Renamed methods Block::rows and Block::rowsInFirstColumn [#METR-2944].
2017-01-02 23:45:27 +03:00
Alexey Milovidov
901c6a8d50
Addition to prev. revision [#METR-22799].
2016-12-24 04:30:05 +03:00
Alexey Milovidov
47756eda45
Fixed error with --external command line arguments for clickhouse-client [#METR-22799].
2016-12-24 00:34:49 +03:00
Vitaliy Lyudvichenko
6fe581c172
Added --stacktrace option to clickhouse-local. [#METR-23765]
...
Added support of path config variable and ability to load clickhouse-server data. [#METR-20000]
Default database of clickhouse-local is changed to "_local" to avoid collisions with clickhouse-server.
Small fixes and enhancements of command line options (setting and limits). [#METR-23101]
2016-12-20 18:01:05 +03:00
Alexey Milovidov
cdfeccd38d
clickhouse-client: Fixed error that 'host' and 'port' parameters cannot have default values set in configuration file [#METR-23829].
2016-12-14 00:26:31 +03:00
Igor Hatarist
b22e4981df
Add clickhouse-client option: --version
2016-12-12 12:25:33 +03:00
Alexey Milovidov
f9c31c42c5
Fixed error after updating boost [#METR-2944].
2016-12-12 10:56:49 +03:00
Vladimir Chebotarev
8e1a6aaf3e
cmake: Boost, OpenSSL into find_package(). [#METR-23701]
2016-12-06 16:20:32 +03:00
Vladimir Chebotarev
bcc5500f91
cmake: More options. [#METR-23701]
2016-12-05 15:43:14 +03:00
Vladimir Chebotarev
cdfcea7488
dbms: Fixed build under OS X. [#METR-21516]
2016-11-20 01:21:00 +03:00
Alexey Zatelepin
307e397dce
adopt server timezone in non-interactive mode also
2016-11-17 00:12:08 +00:00
alexey-milovidov
3432f84409
Merge pull request #183 from ztlpn/METR-23447
...
Client uses server timezone for interpreting DateTime strings [#METR-23447]
2016-11-16 05:22:28 +04:00
Alexey Zatelepin
e1bb33cad0
PR fixes:
...
* add forgotten const
* print exception string if switching to server timezone failed
* protocol compatibility with old versions
* use ALWAYS_INLINE in DateLUT.h
2016-11-15 10:24:55 +00:00
Vitaliy Lyudvichenko
bfbe8f8ed1
Fixed debian package build.
2016-11-14 18:32:55 +03:00
Vitaliy Lyudvichenko
107f7b34c7
Added requested PR changes, 2nd iteration.
2016-11-14 02:57:18 +03:00
Alexey Zatelepin
3a7260e200
[#METR-23447] Client uses server timezone for DateTime string parsing
2016-11-13 19:34:31 +00:00
Vitaliy Lyudvichenko
c05f512637
Merged server, client and local into single binary, more args for local mode.
2016-11-09 22:06:29 +03:00
Vitaliy Lyudvichenko
bae8c7edf8
Added more command line features and docs. Fixed queries splitting.
2016-11-09 22:05:35 +03:00
Vitaliy Lyudvichenko
d952dd39b0
Merged clickhouse-server and clickhouse-local into common app.
2016-11-09 22:05:35 +03:00
Vitaliy Lyudvichenko
48a3d25f99
Implemented tiny clickhouse-local app.
2016-11-09 22:03:47 +03:00
Vitaliy Lyudvichenko
cf24f6e2d1
Implemented draft version of clickhouse-local service.
2016-11-09 22:03:47 +03:00
Vitaliy Lyudvichenko
0e2eb5436b
Added StorageFile and template for clickhouse-local app.
2016-11-09 22:03:47 +03:00
Vladimir Chebotarev
cdaece7dfa
: More specific usage of static libraries. [#METR-21516]
2016-11-09 21:49:01 +03:00
Vladimir Chebotarev
72a533bc11
dbms: max_open_files for server, readline in OS X. [#METR-21516]
2016-11-07 14:33:25 +03:00
Vladimir Smirnov
d36f52502e
Make it compilable on OS X
...
It's still hackish and dirty, but server and client compies.
Server starts, but throwes meaningless exception on any query.
Client seems to be working fine.
Linux compilation might (but shouldn't) be broken (not tested).
2016-11-01 17:59:21 +01:00