Commit Graph

2604 Commits

Author SHA1 Message Date
alexey-milovidov
b1279c1323
Merge pull request #4743 from azat-archive/clickhouse-client-tty
clickhouse-client: fix --help without tty
2019-03-23 05:54:05 +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
chertus
0cc90cf2db rename insert_sample_with_metadata setting 2019-03-22 19:15:44 +03:00
chertus
abf13ba0c1 test for insert_json_with_defaults + Nested 2019-03-22 18:39:01 +03:00
chertus
6e2d23444f add test for json defaults over http 2019-03-22 17:24:28 +03:00
alexey-milovidov
2b33e9b7d5
Merge pull request #4499 from nikvas0/nikvas0/bloom_filter_index
Bloom filter indices
2019-03-21 01:29:05 +03:00
proller
f697df2079
Tests: fix call .sh from .sh (#4732) 2019-03-20 23:04:49 +03:00
Nikita Vasilev
c10f10cc0b Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index 2019-03-20 19:39:18 +03:00
Nikita Vasilev
09b9fe9491 _v1 2019-03-20 17:52:05 +03:00
chertus
882f36f251 mark some tests as long 2019-03-18 18:40:53 +03:00
proller
78e0b1af5e
Fix compression level detection when network_compression_method in lowercase (#4706) 2019-03-18 17:59:07 +03:00
chertus
f67327ba1c rename test (need zookeeper) 2019-03-18 15:09:55 +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-milovidov
ae2d974dda
Merge pull request #4708 from kvap/distributed-limit-by
Make the query planner respect LIMIT BY in remote queries
2019-03-16 20:54:06 +03:00
Alexey Zatelepin
7a033f5469 fix columns order in test references [#CLICKHOUSE-3101] 2019-03-16 17:56:59 +03:00
Alexey Zatelepin
6505ff1098 add test [#CLICKHOUSE-3101] 2019-03-15 19:37:52 +03:00
Constantin S. Pan
df6860d5e0 Make the query planner respect LIMIT BY in remote queries 2019-03-15 15:26:21 +00:00
Alexey Milovidov
a459b2c298 Fixed insufficient type checking in hasAll, hasAny functions 2019-03-15 02:10:51 +03:00
proller
7d409c5294 Tests: dont use table test.visits 2019-03-14 21:04:55 +03:00
alesapin
e8dfa122a3
Merge pull request #4693 from abyss7/fix-00917_multiple_joins_denny_crane
Disable part with predicate optimization for now
2019-03-14 19:35:04 +03:00
chertus
76d118f310 test for asterisk_left_columns_only 2019-03-14 18:00:42 +03:00
Ivan Lezhankin
3281e91d07 Disable part with predicate optimization for now 2019-03-14 17:59:45 +03:00
alexey-milovidov
bdc7614c77
Merge pull request #4684 from amosbird/fixempty2
Refinement
2019-03-14 06:12:39 +03:00
Alexey Milovidov
3e8d9ec450 Added a test for multiple JOINs from Denny Crane #4571 2019-03-14 05:53:15 +03:00
Amos Bird
b405c7456f Refinement 2019-03-14 09:44:15 +08:00
Alexey Milovidov
1454479713 Merge branch 'master' of github.com:yandex/ClickHouse 2019-03-14 04:11:48 +03:00
Alexey Milovidov
84420eefef Fixed test #4654. 2019-03-14 04:11:07 +03:00
alexey-milovidov
f398fb3691
Merge pull request #4661 from 4ertus2/joins
Multiple COMMA/CROSS JOINS
2019-03-14 03:10:52 +03:00
alexey-milovidov
f76a9ba4c0
Merge pull request #4654 from bgranvea/create_or_replace_view
support for CREATE OR REPLACE VIEW
2019-03-14 02:32:31 +03:00
Alexey Milovidov
2043304d35 Added a test for JOIN with duplicate columns 2019-03-12 19:52:16 +03:00
chertus
b76e3ad1c4 fix tests 2019-03-12 16:17:17 +03:00
chertus
114e55c956 multiple COMMA/CROSS JOIN 2019-03-12 14:06:54 +03:00
bgranvea
2029f71869 support for CREATE OR REPLACE VIEW 2019-03-11 17:50:31 +01:00
chertus
04f5584d72 move JOIn convertions to InterpreterSelectQuery 2019-03-11 15:20:55 +03:00
Nikita Vasilev
d171330599 Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index 2019-03-11 13:06:09 +03:00
alexey-milovidov
617a0a8938
Merge pull request #4592 from yandex/fix-concurrent-alters2
Fix a race condition during concurrent ALTER COLUMN queries
2019-03-10 19:11:49 +03:00
Alexey Milovidov
b81f73bb13 Added a test [#CLICKHOUSE-1704] 2019-03-10 06:13:19 +03:00
alexey-milovidov
357e17959e
Merge pull request #4602 from danlark1/master
Rename trigramDistance to ngramDistance, add more functions with CaseInsensitive and UTF, update docs, more job done in perf, added some perf tests for string search that I would like to see
2019-03-09 21:19:59 +03:00
alexey-milovidov
628ed349c3
Merge pull request #4627 from filimonov/issue4284
Fix broken progress in 19.3. Introduce total_rows for table function numbers().
2019-03-09 01:08:45 +03:00
alexey-milovidov
b9db35b843
Merge pull request #4603 from yandex/fix-function-replicate
Fix segfault in function "replicate"
2019-03-09 01:05:52 +03:00
Mikhail Filimonov
5f626dc99e Fix broken progress in 19.3 (regression in 92769a2460)
Introduce total_rows for table function `numbers()`.

fixes https://github.com/yandex/ClickHouse/issues/4429
resolves https://github.com/yandex/ClickHouse/issues/4284
2019-03-08 15:36:40 +01:00
Alexey Milovidov
1eb4c58bc0 Added a test #3779 2019-03-08 16:21:27 +03:00
Alexey Zatelepin
f7217d99dd move test script that caused a crash from bugs/ to tests 2019-03-07 21:16:36 +03:00
Nikita Vasilev
fcb82ba901 Merge remote-tracking branch 'upstream/master' into nikvas0/bloom_filter_index 2019-03-07 16:55:38 +03:00
alesapin
4532b4be94 Fix kill query test once again 2019-03-07 16:42:58 +03:00
Alexey Zatelepin
4caf4472cc make test more stable 2019-03-07 15:59:37 +03:00
Alexey Milovidov
3389cd1735 Merge branch 'master' into fix-function-replicate 2019-03-07 14:56:43 +03:00
proller
86d9876221 Merge remote-tracking branch 'upstream/master' into fix23 2019-03-06 22:58:47 +03:00
alexey-milovidov
df50dac691
Merge pull request #4601 from yandex/array-enumerate-ranked-dig-through-code
Code cleanups for `arrayEnumerateRanked`
2019-03-06 22:37:10 +03:00
proller
18e53999be Merge remote-tracking branch 'upstream/master' into fix23 2019-03-06 22:19:30 +03:00