Mikhail Korotov
c05652067e
Update HTTPHandler.cpp
2020-01-23 16:40:16 +03:00
Ivan Lezhankin
bfdab88efb
Restore \G suffix support
2020-01-23 14:18:47 +03:00
Nikolai Kochetov
f431b10e38
Update TCPHandler.
2020-01-23 13:04:18 +03:00
Ivan
b80e3dcd46
Refactoring of replxx ( #8748 )
2020-01-23 11:18:19 +03:00
Denis Glazachev
b6fe187e59
Fix test/check failures
2020-01-22 22:52:04 +05:30
millb
7c6312fcb2
first attempt
2020-01-22 19:32:18 +03:00
Pavel Kovalenko
dce424fe11
SeekableReadBuffer initial implementation. IDisk readFile should return SeekableBuffer.
2020-01-22 19:17:25 +03:00
Denis Glazachev
d414131c3c
Update callback type and name
2020-01-22 05:03:57 +05:30
Yuriy
f916e7d079
enabled MySQL wire protocol by default on port 9004
2020-01-22 01:38:20 +03:00
alexey-milovidov
2d599cb1cb
Update HTTPHandler.cpp
2020-01-21 23:28:35 +03:00
alexey-milovidov
5e7f80c664
Merge pull request #8760 from kreuzerkrieg/GCCSuggestOverride
...
Add GCC warning to suggest virtual function override
2020-01-21 22:12:26 +03:00
Denis Glazachev
79085bf629
Set X-ClickHouse-Format
HTTP response header to the format name
2020-01-22 00:33:33 +05:30
kreuzerkrieg
4225ca4eec
Add GCC warning to suggest virtual function override
2020-01-21 17:34:55 +02:00
kreuzerkrieg
a256741cf9
Add GCC warning to suggest virtual function override
2020-01-21 13:10:32 +02:00
Nikolai Kochetov
c28e224e24
Merge pull request #8735 from ClickHouse/processors-5.12
...
Processors 5.12
2020-01-21 11:51:07 +03:00
alexey-milovidov
c2e95c008e
Merge pull request #8724 from yurriy/less-mysql-logging
...
Proper logging levels in MySQL compatibility server
2020-01-19 16:19:30 +03:00
Alexey Milovidov
98d393c957
Fixed LineReader
2020-01-19 15:26:49 +03:00
Yuriy
6f4431b79f
proper logging levels
2020-01-19 01:19:06 +00:00
Alexey Milovidov
db1bb630e0
Fixed configuration of replxx
2020-01-19 03:23:35 +03:00
Alexey Milovidov
47f6156ad8
Correct configuration of replxx
2020-01-19 03:01:49 +03:00
alexey-milovidov
2ba89d169e
Merge branch 'master' into readline-to-replxx-docs-and-corrections
2020-01-18 20:58:24 +03:00
alexey-milovidov
52e8252653
Merge pull request #8650 from ClickHouse/remove_istorage_weak_ptr
...
Get rid of StorageWeakPtr
2020-01-18 20:28:53 +03:00
alexey-milovidov
86a062110d
Merge pull request #8704 from kreuzerkrieg/MoreGCCWarnings
...
Enable -Wmissing-include-dirs for GCC
2020-01-18 20:12:56 +03:00
Alexey Milovidov
c0a5c664a9
Replace readline to replxx: docs and corrections
2020-01-18 18:44:08 +03:00
Alexey Milovidov
f7efa5e2c7
Merge branch 'replxx' of https://github.com/abyss7/ClickHouse into abyss7-replxx
2020-01-18 17:00:59 +03:00
alexey-milovidov
3e680b59ee
Merge pull request #8709 from ClickHouse/client-clusters-in-suggest
...
Added cluster names to suggestions in interactive mode in clickhouse-client
2020-01-18 14:36:43 +03:00
kreuzerkrieg
0bf3ea4247
Enable -Wmissing-include-dirs for GCC
2020-01-18 10:46:27 +02:00
Alexey Milovidov
9b5121d92e
Do not interpolate quantiles in clickhouse-benchmark
2020-01-18 05:28:07 +03:00
Alexey Milovidov
d270fb69b5
Added cluster names to suggestions in interactive mode in clickhouse-client
2020-01-18 03:32:16 +03:00
Alexander Kuzmenkov
8de0f4fc34
Avoid stale log files.
...
When the logging configuration changes, the logging-related data
structures on the server are not properly updated. This leads to a bug
where logs are written to old files, and it is impossible to fix without
restarting the server. The log file grows indefinitely and eventually
makes the server run out of disk space (see #8696 ). To avoid
catastrophic consequences, require that the server is restarted to apply
logging configuration changes, until the proper fix is developed.
2020-01-17 22:27:41 +03:00
Nikolai Kochetov
7803e518c6
Remove query pipeline later.
2020-01-16 19:20:22 +03:00
Alexander Tokmakov
ff1b7e1386
get rid of StorageWeakPtr
2020-01-14 19:54:25 +03:00
Alexander Tokmakov
9389c83d4d
Merge branch 'master' into table_name_in_istorage
2020-01-13 14:41:42 +03:00
alexey-milovidov
303b146a93
Merge branch 'master' into vfs_log
2020-01-12 20:16:30 +03:00
Alexey Milovidov
797b1b9cd5
Fixed error code of test assertion in client
2020-01-12 16:47:56 +03:00
alexey-milovidov
f051844eb7
Merge branch 'master' into replxx
2020-01-11 19:59:33 +03:00
Alexey Milovidov
d75ecffb98
Removed useless code
2020-01-11 18:06:15 +03:00
Pradeep Chhetri
4941fdfe4b
Fix some spelling mistakes
2020-01-11 17:51:33 +08:00
Alexander Burmak
26511b7978
Added DiskMemory and tests
2020-01-11 00:43:42 +03:00
Ivan
dec5a50033
Add new config syntax for table filters ( #8381 )
2020-01-10 19:53:47 +03:00
Alexey Milovidov
c4304b51af
Added part_log to example config for developers
2020-01-10 14:36:59 +03:00
Ivan Lezhankin
5950f6c081
Merge remote-tracking branch 'upstream/master' into replxx
2020-01-09 19:21:04 +03:00
Alexander Tokmakov
9b75ee2378
Merge branch 'master' into table_name_in_istorage
2020-01-09 17:33:58 +03:00
Nikolai Kochetov
874d01e8b7
Merge pull request #8423 from ClickHouse/processors-5.7
...
Processors 5.7
2020-01-09 11:53:22 +03:00
Alexey Milovidov
1fe1a37a5b
Fixed build
2020-01-07 17:13:10 +03:00
Alexey Milovidov
c5697f3c3f
Removed some garbage from Performance Test
2020-01-07 12:10:36 +03:00
Alexey Milovidov
dd3e0a7abd
Fixed incorrect method of parsing "brotli" from Accept-Encoding in HTTP
2020-01-05 04:54:58 +03:00
Alexey Milovidov
df80ca892f
Prefer brotli over other compression methods in HTTP
2020-01-05 04:51:59 +03:00
Alexey Milovidov
5c8c990787
Fixed error
2020-01-05 01:59:08 +03:00
Alexey Milovidov
e7241c1dbe
Removed bad code around general compression methods
2020-01-04 10:42:52 +03:00
Alexey Milovidov
0f4a58ecaa
Removed bad code around general compression methods
2020-01-04 10:31:00 +03:00
Nikolai Kochetov
833499cfb6
Merged with master.
2020-01-03 15:34:17 +03:00
alexey-milovidov
03be29eddb
Merge pull request #8501 from ClickHouse/stack-trace-in-std-exception
...
Calculate stack trace for std::exception (experimental)
2020-01-03 00:22:12 +03:00
Amos Bird
74dfa87b9a
fix prewhere test (camouflage an Easter Egg)
2020-01-02 18:29:59 +08:00
Alexey Milovidov
67afaa9d93
Stack trace for every exception (experimental)
2020-01-02 09:56:53 +03:00
Nikolai Kochetov
aaca37a472
Merge pull request #8497 from ClickHouse/json-quote-perftest
...
JSON quoting in perftest
2020-01-02 09:26:11 +03:00
Nikolai Kochetov
a04f8ca955
Correct quoting for query in perftest.
2020-01-01 23:04:49 +03:00
Nikolai Kochetov
944daef70b
Correct quoting for query in perftest.
2020-01-01 22:55:08 +03:00
Nikolai Kochetov
950fe0dfd6
Correct quoting for query in perftest.
2020-01-01 22:32:08 +03:00
Ivan Lezhankin
13b88886d4
[WIP]
2020-01-01 22:22:57 +03:00
Nikolai Kochetov
65a00150b2
Update num threads in processors.
2020-01-01 13:42:46 +03:00
alexey-milovidov
17b413fd2e
Merge pull request #8458 from vitlibar/separate-variables-for-database-and-name
...
Separate variables for database and name in dictionaries.
2019-12-31 07:39:01 +03:00
Vitaly Baranov
037eb85972
Automatic removing of config repositories to simplify the code.
2019-12-31 06:30:27 +07:00
Alexander Tokmakov
3687900848
Merge branch 'master' into table_name_in_istorage
2019-12-30 21:30:24 +03:00
Mikhail Nacharov
d6cd202860
refs #8443 fix logging
2019-12-29 18:08:33 +05:00
Ivan Lezhankin
212a3234c1
Support Ctrl+C like shell does.
2019-12-27 16:17:36 +03:00
Ivan Lezhankin
bf22e12e4e
Initial replacement readline → replxx
2019-12-27 16:17:36 +03:00
Alexander Tokmakov
a2a155dcbd
Merge branch 'master' into table_name_in_istorage
2019-12-27 15:47:29 +03:00
Vitaly Baranov
b75771be61
Merge pull request #7808 from vitlibar/RBAC-3
...
RBAC-3
2019-12-27 09:44:24 +07:00
Alexander Tokmakov
2e5d61cd81
better constructors of storages
2019-12-26 20:04:08 +03:00
alexey-milovidov
f70632b95b
Merge pull request #8413 from achulkov2/shutted-down-storages-fix
...
Fix incorrect past tense in log
2019-12-26 17:38:59 +03:00
achulkov2
f691143593
Fix incorrect past tense in log
2019-12-26 17:09:36 +03:00
Alexander Kuzmenkov
e3cb9043ab
log_to_console.xml should log to console.
...
Confusingly, it doesn't specify 'logger.console' now.
2019-12-25 14:01:58 +03:00
alesapin
4555d1398c
Merge pull request #8267 from ClickHouse/fix_coverage_one_more_time
...
More strict coverage flush.
2019-12-23 11:43:49 +03:00
VDimir
5a84f4782f
Set prometheus default port to 9363
2019-12-21 17:56:24 +00:00
VDimir
0e9daded94
Repcale dots in prometheus metric names with underscores
2019-12-21 17:47:44 +00:00
Alexey Milovidov
41ed1ed471
Added quoting of db and table names where appropriate
2019-12-20 19:53:37 +03:00
Vitaly Baranov
754fb40cc4
Transform stateless test for row policy into an integration test
...
with improvements.
2019-12-19 13:37:02 +03:00
alesapin
a175ea5b73
Add coverage file flush for clickhouse-server when std::atexit is not called. Also slightly improved logging in stateless tests with coverage.
2019-12-18 13:43:40 +03:00
alexey-milovidov
a7384b4d07
Merge branch 'master' into MoreGCCWarnings
2019-12-18 02:01:39 +03:00
kreuzerkrieg
9612bb0e79
More GCC warnings
2019-12-16 23:19:50 +02:00
alesapin
a2180b0bb3
Merge branch 'master' into restrictions_for_external_dictionaries_from_ddl
2019-12-16 23:07:16 +03:00
Alexey Milovidov
4cf540b621
Applied a patch from Nicolae Vartolomei
2019-12-16 22:03:03 +03:00
alesapin
a67540e658
Merge pull request #8230 from Melancholic/master
...
Fixed #5335 . clickhouse-local. Print help if no arguments are passed
2019-12-16 17:47:00 +03:00
nagorny
03f0909552
Fixed #5335 . clickhouse-local. Print help if no arguments are passed
2019-12-16 12:05:26 +03:00
alexey-milovidov
bf1414cc76
Merge pull request #8225 from ClickHouse/tcmalloc-deprecate
...
Deprecate tcmalloc
2019-12-16 03:20:56 +03:00
Alexey Milovidov
d5d2959a5f
Minor changes after merge #7900
2019-12-16 01:53:52 +03:00
Alexey Milovidov
ebf16a8a17
Deprecated tcmalloc
2019-12-16 01:37:27 +03:00
alexey-milovidov
d498e14ff8
Merge pull request #7900 from Vdimir/prometheus-metrics-7369
...
Prometheus endpoint
2019-12-16 01:16:52 +03:00
VDimir
d413c4a7d5
Add test_prometheus_endpoint
2019-12-14 19:40:50 +03:00
alexey-milovidov
d354628010
Merge pull request #8088 from dingxiangfei2009/ClusterCopier/refine-zxid-def
...
ClusterCopier: refine zxid definition
2019-12-13 02:25:41 +03:00
alexey-milovidov
d2c7a10340
Update ClusterCopier.cpp
2019-12-13 02:25:12 +03:00
alesapin
8fb9541958
Merge pull request #7946 from Alex-Burmak/filesystem_abstraction
...
Filesystem abstraction layer
2019-12-12 18:12:35 +03:00
Ding Xiang Fei
21c571c5b5
Add reference to Zookeeper Internals manual
2019-12-12 18:16:14 +08:00
Alexander Burmak
2ce6136de5
Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs
2019-12-12 12:10:50 +03:00
Alexander Kazakov
954d5072e9
Returned the terminating sendProgress() in processOrdinaryQuery
2019-12-12 07:46:39 +03:00
Alexander Kazakov
eb5040771b
Minor correction
2019-12-11 17:54:19 +03:00
Alexander Kazakov
292e3a0d24
Reworked TCPHandler::processOrdinaryQuery() to resolve race condition
2019-12-11 16:30:27 +03:00
alexey-milovidov
3540dd5c53
Update ClusterCopier.cpp
2019-12-11 04:53:29 +03:00
alesapin
ea8994b9e4
Add restrections for several sources of external dictionaries
2019-12-10 20:27:29 +03:00
VDimir
b6aadf468a
Prometheus metric prefixes in CamelCase
2019-12-10 08:31:59 +00:00
Ding Xiang Fei
0f22f90ee5
refine zxid definition: it has two warping uint32 counters
2019-12-10 09:44:06 +08:00
alexey-milovidov
cce78ef018
Merge pull request #8036 from yurriy/mysql
...
Compatibility with MySQL clients which don't support sha2_password auth plugin
2019-12-09 23:11:31 +03:00
Alexander Burmak
5a93441445
Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs
2019-12-09 17:18:47 +03:00
alexey-milovidov
9106b2854a
Merge pull request #8084 from azat/read-temporary-tables-on-failure
...
Read temporary tables on failure to avoid interpreting that bits as query
2019-12-09 13:49:09 +03:00
alexey-milovidov
624be3679b
Merge branch 'master' into mysql
2019-12-09 04:53:30 +03:00
alexey-milovidov
0d278b414c
Merge pull request #8046 from amosbird/interpose
...
Interpose malloc symbols entirely.
2019-12-09 04:33:49 +03:00
Azat Khuzhin
7b4fcc5fc5
Read temporary tables on failure to avoid interpreting that bits as query
...
Before this patch if the query failes (due to "Too many simultaneous
queries" for example) it will not read external tables info, and the
next request will interpret them as the query beginning at got:
DB::Exception: Unknown packet 11861 from client
v2: reordering in the executeQuery() is not enough, since the query
can fail in other places, before, i.e. quotas
v3: I cannot make non-intergration test (since there is no ability to
receive "Unknown packet" via client, only from the server log),
hence added one
2019-12-08 23:26:43 +03:00
Alexander Burmak
8104395dd2
Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs
2019-12-08 11:45:18 +03:00
Amos Bird
971770a040
Interpose malloc symbols entirely.
2019-12-07 00:32:00 +08:00
Vitaly Baranov
0e21673271
Rework Quota based on IAccessEntity.
2019-12-05 21:03:57 +03:00
Yuriy Baranov
1df4250b2f
Update MySQLHandler.cpp
2019-12-05 04:52:48 +03:00
Yuriy
564b58d2f6
using mysql_native_password for passwordless users
2019-12-05 02:37:11 +03:00
Yuriy
dbe7dc1185
using SHA1 MySQL auth plugin for plaintext passwords
2019-12-05 02:30:06 +03:00
alesapin
516876becb
Fix unintendent dependency from GLIBC 2.16 in clickhouse-odbc-bridge
2019-12-04 15:39:09 +03:00
VDimir
29312f5153
Revert "Metric names in prometheus-friendly snake_case format"
...
This reverts commit 2ddb801d0b
.
2019-12-04 07:54:09 +00:00
alesapin
20e4e92c49
Fix some conflicts
2019-12-03 19:32:41 +03:00
Alexander Burmak
21623c3308
Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs
2019-12-03 18:16:19 +03:00
alexey-milovidov
937386a7c9
Update Server.cpp
2019-12-03 04:14:01 +03:00
alexey-milovidov
43c47bdb55
Merge pull request #7717 from MaxFedotov/support_mysql_federated
...
support clickhouse as mysql federated server
2019-12-03 02:21:35 +03:00
alexey-milovidov
972156066d
Update MySQLHandler.cpp
2019-12-03 02:20:58 +03:00
alexey-milovidov
b08446a8c5
Update MySQLHandler.cpp
2019-12-03 02:18:19 +03:00
Maksim Fedotov
6381d33981
support clickhouse as mysql federated server. apply code review notes p4
2019-12-02 14:32:45 +03:00
Alexander Burmak
e5ffdc0224
Merge remote-tracking branch 'refs/remotes/upstream/master' into vfs
2019-11-29 18:27:56 +03:00
Maksim Fedotov
13a1a33834
support clickhouse as mysql federated server. apply code review notes p3
2019-11-29 16:37:13 +03:00
Maksim Fedotov
6f0f9f855a
support clickhouse as mysql federated server. fix code style
2019-11-28 18:02:02 +03:00
Maksim Fedotov
4844b9b230
support clickhouse as mysql federated server. apply code review notes p2
2019-11-28 17:43:52 +03:00
Nikolai Kochetov
f343803891
Merge pull request #7735 from amosbird/clientfix
...
fix utf-8 paste
2019-11-27 15:51:13 +03:00
Alexander Burmak
3e5ef56644
Filesystem abstraction layer
2019-11-27 14:33:27 +03:00
VDimir
3c4220017c
Add async metrics to Prometheus output
2019-11-26 23:27:24 +03:00
VDimir
eadc58bbd6
Style fixes in HTTPHandlerFactory
2019-11-26 22:03:29 +03:00
Maksim Fedotov
5e40311266
support clickhouse as mysql federated server. apply code review notes
2019-11-26 18:39:36 +03:00
Pervakov Grigory
9fbc55c61a
Change max_table_size_to_drop and max_partition_size_to_drop to atmoic. Update hint in default config.
2019-11-25 14:42:09 +03:00
Pervakov Grigory
651e0f3a1c
Update max_table_size_to_drop and max_partition_size_to_drop with config reload
2019-11-25 14:42:09 +03:00
VDimir
2ddb801d0b
Metric names in prometheus-friendly snake_case format
2019-11-24 23:59:22 +03:00
VDimir
0e65716378
Style fixes
2019-11-24 23:03:09 +03:00
VDimir
ffcd9022a4
Prometheus run on custom port
2019-11-24 19:27:00 +03:00
VDimir
b19e33e819
Make HTTPRequestHandlerFactory composable, add PrometeusRequestHandlerFactory
2019-11-24 18:43:53 +03:00
VDimir
947fc8d134
Create http handler responding metrics in prometheus format
2019-11-24 15:06:10 +03:00
alexey-milovidov
eb7f48aaf6
Merge pull request #7816 from dingxiangfei2009/fix-copier-contention-master
...
Fix clickhouse-copier cleaning-tainting contention between concurrent workers
2019-11-23 06:49:03 +03:00
Nikita Mikhaylov
728ede25f9
Merge pull request #7840 from apbodrov/read_write_gzip
...
Gzip read/write to file/s3/url/hdfs
2019-11-22 11:48:58 +03:00
Ding Xiang Fei
8330a09575
apply style guide and fix CI warnings
2019-11-22 09:48:58 +08:00
Ding Xiang Fei
608aa276ab
add safeguard against contention to check target partition row counts
2019-11-22 09:48:57 +08:00
Nikita Mikhaylov
762d295ab0
Merge pull request #7780 from ClickHouse/aku/parallel-parsing
...
Merging parallel format parsing
2019-11-22 01:54:47 +03:00
alexey-milovidov
420aeb25a4
Update MySQLHandler.cpp
2019-11-20 07:30:00 +03:00
Yuriy
5be62948bc
merged master
2019-11-20 02:34:05 +03:00
Yuriy
1bf4d21c67
more precise error messages in MySQL protocol
2019-11-20 02:27:30 +03:00
Yuriy
21cc7ae25e
enabled MySQL compatibility server when ClickHouse is compiled without SSL
2019-11-20 00:10:21 +03:00
Alexander Kuzmenkov
9a2b864940
Cleanup
2019-11-19 21:42:51 +03:00
Andrei Bodrov
a2b5989177
BrotliReadBuffer refactoring
2019-11-19 16:57:54 +03:00
Alexander Kuzmenkov
7e5731d64e
Merge remote-tracking branch 'origin/master' into HEAD
2019-11-19 16:15:47 +03:00
Andrei Bodrov
8cbc52e711
add gzip read/write to file/s3/url/hdfs
2019-11-19 15:46:07 +03:00
Vitaly Baranov
681f03c625
Merge pull request #7653 from vitlibar/skip-unknown-settings-with-warnings
...
Skip unknown settings with warnings.
2019-11-18 13:50:52 +03:00
Vitaly Baranov
f3d72b9ec1
Skip unknown settings with warnings.
2019-11-17 03:51:58 +03:00
Amos Bird
755904f51f
better INCLUDE_DEBUG_HELPERS
2019-11-16 00:34:43 +08:00
alexey-milovidov
698cb6c3ee
Merge pull request #7743 from dmitriy-myz/fix-mysql-wire-auth
...
MySQL wire protocol: wrong source ip
2019-11-14 20:33:17 +03:00
alexey-milovidov
5017a090bf
Update MySQLHandler.cpp
2019-11-14 20:32:56 +03:00
Alexander Kuzmenkov
7f34c0089c
Merge remote-tracking branch 'origin/master' into HEAD
2019-11-14 18:53:36 +03:00
alexey-milovidov
ed5e4cd4b5
Merge pull request #7760 from amosbird/clientfixexit
...
Fix multi query exit for clickhouse-client
2019-11-14 12:50:31 +03:00
Amos Bird
646c5f124c
Enable bracketed-paste in certain case only.
...
Only enable bracketed-paste when multiquery is on and multiline is off.
2019-11-14 09:02:51 +08:00
Amos Bird
f5688e6046
Fix multi query exit for clickhouse-client
2019-11-13 23:45:23 +08:00
Dmitry Muzyka
38f34bd437
fix detection of remote ip
2019-11-12 22:57:39 +03:00
Amos Bird
5a28f1dee9
fix utf-8 paste
2019-11-12 20:17:57 +08:00
Maksim Fedotov
0403444f14
support clickhouse as mysql federated server
2019-11-11 17:31:12 +03:00
Vasily Nemkov
4ac21ca6ba
PR-review fixes: handling bad value of 'external_table_functions_use_nulls' param, fixed typo
2019-11-08 14:30:11 +03:00
Vasily Nemkov
5624bb3abb
odbc table function now respects external_table_functions_use_nulls setting
...
* Passing setting value to ODBC-bridge on each request
* Handling that setting value correctly in ODBC-bridge
* Fixed issue with executing table-functions on context with no settings
applied in `SELECT ... SETTINGS x=foo` query.
* Added tests to verify fix.
2019-11-08 14:30:11 +03:00
millb
7a2dcf451a
Merge branch 'master' into url_engine_problem
2019-11-08 02:19:09 +03:00
Nikolai Kochetov
3bde663681
Wailt for AsynchronousBlockInputStream inner thread before getting totals to avoid possible race.
2019-11-06 15:34:51 +03:00
Alexander Kuzmenkov
233212ac68
Merge pull request #7531 from amosbird/getkeymapped
...
Unify hash tables interface (separated for review)
2019-11-06 13:49:39 +03:00
Amos Bird
fbfbe161ec
Unify hash tables interface.
2019-11-06 00:08:04 +08:00
Mikhail Korotov
3687ccfa1e
Merge branch 'url_engine_problem' of https://github.com/millb/ClickHouse into url_engine_problem
2019-11-05 15:46:03 +03:00
Mikhail Korotov
82d09a8df0
working commit
2019-11-05 15:45:43 +03:00
millb
d62cd6efa8
Merge branch 'master' into url_engine_problem
2019-11-05 14:42:53 +03:00
Nikita Mikhaylov
817b52314e
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel_parsing
2019-11-05 12:32:26 +03:00
Amos Bird
8f902dc2a9
Better null format for tcp handler.
2019-11-04 11:53:26 +08:00
alexey-milovidov
f5531fb436
Merge pull request #7590 from amosbird/typetrait
...
ubsan fix
2019-11-02 13:22:39 +03:00
proller
6a573b4092
Allow to use mysql format without ssl - try2 with mysql interface split ( #7524 )
...
* Allow use mysql format without ssl
* fix
* fix
* fix
* Also disable poco's optional libraries
* clean
* fix
* fix
* Requested changes
* clean
* Requested fixes
* Update MySQLHandler.cpp
2019-11-02 13:20:46 +03:00
Amos Bird
ad12099642
ubsan fix
2019-11-02 17:00:03 +08:00
Amos Bird
4609ca3189
Enable bracketed paste if possible
2019-10-31 02:33:45 +08:00
Nikita Mikhaylov
756a10707d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel_parsing
2019-10-28 13:51:52 +03:00
Alexander Kuzmenkov
c3ea94209b
Merge pull request #7491 from traceon/odbc-bridge-type-mapping-fix
...
Add handling of SQL_TINYINT and SQL_BIGINT, fix SQL_FLOAT in ODBC Bridge
2019-10-28 13:30:18 +03:00
Denis Glazachev
8e48430159
Add handling of SQL_TINYINT and SQL_BIGINT
...
Fix handling of SQL_FLOAT
2019-10-25 21:49:49 +04:00
alesapin
04ca163518
Merge branch 'master' into dictionaries_ddl_loader
2019-10-25 10:58:04 +03:00
Alexander Kuzmenkov
29052b6a37
Merge pull request #7377 from azat/INSERT-Distributed-MATERIALIZED-cols
...
* Fix INSERT into Distributed non local node with MATERIALIZED columns
Previous patch e527def18a
("Fix INSERT
into Distributed() table with MATERIALIZED column") fixes it only for
cases when the node is local, i.e. direct insert.
This patch address the problem when the node is not local
(`is_local == false`), by erasing materialized columns on INSERT into
Distributed.
And this patch fixes two cases, depends on `insert_distributed_sync`
setting:
- `insert_distributed_sync=0`
```
Not found column value in block. There are only columns: date. Stack trace:
2. 0x7ffff7be92e0 DB::Exception::Exception() dbms/src/Common/Exception.h:27
3. 0x7fffec5d6cf6 DB::Block::getByName(...) dbms/src/Core/Block.cpp:187
4. 0x7fffec2fe067 DB::NativeBlockInputStream::readImpl() dbms/src/DataStreams/NativeBlockInputStream.cpp:159
5. 0x7fffec2d223f DB::IBlockInputStream::read() dbms/src/DataStreams/IBlockInputStream.cpp:61
6. 0x7ffff7c6d40d DB::TCPHandler::receiveData() dbms/programs/server/TCPHandler.cpp:971
7. 0x7ffff7c6cc1d DB::TCPHandler::receivePacket() dbms/programs/server/TCPHandler.cpp:855
8. 0x7ffff7c6a1ef DB::TCPHandler::readDataNext(unsigned long const&, int const&) dbms/programs/server/TCPHandler.cpp:406
9. 0x7ffff7c6a41b DB::TCPHandler::readData(DB::Settings const&) dbms/programs/server/TCPHandler.cpp:437
10. 0x7ffff7c6a5d9 DB::TCPHandler::processInsertQuery(DB::Settings const&) dbms/programs/server/TCPHandler.cpp:464
11. 0x7ffff7c687b5 DB::TCPHandler::runImpl() dbms/programs/server/TCPHandler.cpp:257
```
- `insert_distributed_sync=1`
```
2019.10.18 13:23:22.114578 [ 44 ] {a78f669f-0b08-4337-abf8-d31e958f6d12} <Error> executeQuery: Code: 171, e.displayText() = DB::Exception: Block structure mismatch in RemoteBlockOutputStream stream: different number of columns:
date Date UInt16(size = 1), value Date UInt16(size = 1)
date Date UInt16(size = 0): Insertion status:
Wrote 1 blocks and 0 rows on shard 0 replica 0, 127.0.0.1:59000 (average 0 ms per block)
Wrote 0 blocks and 0 rows on shard 1 replica 0, 127.0.0.2:59000 (average 2 ms per block)
(version 19.16.1.1) (from [::1]:3624) (in query: INSERT INTO distributed_00952 VALUES ), Stack trace:
2. 0x7ffff7be92e0 DB::Exception::Exception() dbms/src/Common/Exception.h:27
3. 0x7fffec5da4e9 DB::checkBlockStructure<void>(...)::{...}::operator()(...) const dbms/src/Core/Block.cpp:460
4. 0x7fffec5da671 void DB::checkBlockStructure<void>(...) dbms/src/Core/Block.cpp:467
5. 0x7fffec5d8d58 DB::assertBlocksHaveEqualStructure(...) dbms/src/Core/Block.cpp:515
6. 0x7fffec326630 DB::RemoteBlockOutputStream::write(DB::Block const&) dbms/src/DataStreams/RemoteBlockOutputStream.cpp:68
7. 0x7fffe98bd154 DB::DistributedBlockOutputStream::runWritingJob(DB::DistributedBlockOutputStream::JobReplica&, DB::Block const&)::{lambda()#1}::operator()() const dbms/src/Storages/Distributed/DistributedBlockOutputStream.cpp:280
<snip>
````
Fixes : #7365
Fixes : #5429
Refs: #6891
* Cover INSERT into Distributed with MATERIALIZED columns and !is_local node
I guess that adding new cluster into server-test.xml is not required,
but it won't harm.
* Update DistributedBlockOutputStream.cpp
2019-10-24 12:35:09 +03:00
alesapin
a6199b7e69
Merge with master
2019-10-24 12:33:40 +03:00
Azat Khuzhin
80cf86f100
Cover INSERT into Distributed with MATERIALIZED columns and !is_local node
...
I guess that adding new cluster into server-test.xml is not required,
but it won't harm.
2019-10-23 21:55:08 +03:00
Amos Bird
295864e6e0
better scalar query
2019-10-23 21:37:54 +08:00
Nikita Mikhaylov
34d8ade4a0
Merge branch 'master' of github.com:ClickHouse/ClickHouse into parallel_parsing
2019-10-22 15:56:51 +03:00
Alexander Kuzmenkov
9c1f8109c7
Merge pull request #7402 from Enmk/odbc_bridge_nullable_fix
...
Fixed NULL-values in nullable columns through ODBC-bridge
2019-10-21 19:09:27 +03:00
alesapin
ff7850cfbd
Remove strange code in favor of less strange code
2019-10-21 17:59:35 +03:00
Vasily Nemkov
e080324fd0
Fixed NULL-values in nullable columns through ODBC-bridge
2019-10-21 12:13:33 +03:00
alesapin
35e66d6696
Merge with master
2019-10-21 11:46:11 +03:00
millb
f64f6658ce
Merge branch 'master' into url_engine_problem
2019-10-21 11:44:31 +03:00
alesapin
cdc195727e
Fix some races from lazy load and add ugly interface to loader (need to be refactored)
2019-10-18 19:04:09 +03:00
tavplubix
0046b9f137
Wait for jobs to finish on exception (fixes rare segfaults) ( #7350 )
2019-10-17 17:41:27 +03:00
alesapin
155731a676
Merge branch 'master' into dictionaries_ddl_interpreter
2019-10-14 11:49:18 +03:00
Vitaly Baranov
18ccb4d64d
Move backQuote() and quoteString() to a separate file, use StringRefs.
2019-10-11 00:18:52 +03:00
Vitaly Baranov
12d1d87d64
Move authentication code to a separate class.
2019-10-11 00:18:52 +03:00
alesapin
2a5713e6e4
Compilable code
2019-10-10 23:47:47 +03:00
millb
350f0b8a1c
Merge remote-tracking branch 'origin/url_engine_problem' into url_engine_problem
2019-10-10 16:47:17 +03:00