VDimir
7adad4251f
Remove AggregateFunctionCountNotNullVariadic
2019-10-13 18:42:39 +00:00
VDimir
99f531c58f
Fix spelling require -> requires
2019-10-13 18:37:01 +00:00
VDimir
0230aca903
Remove tests with count accepting 2 args
2019-10-12 15:44:14 +00:00
VDimir
853322503f
Allow count function arity at most one
2019-10-12 15:15:16 +00:00
alesapin
aeb7504570
Merge pull request #7277 from ClickHouse/client-params-for-tests
...
Client parameters for clickhouse-test
2019-10-11 22:33:32 +03:00
Nikolai Kochetov
e5c8a62142
Fix tests.
2019-10-11 20:24:18 +03:00
Nikolai Kochetov
bf794a8260
Fix tests.
2019-10-11 18:59:27 +03:00
Vitaly Baranov
8c24d5e66a
Merge pull request #7235 from vitlibar/RBAC-1
...
RBAC-1
2019-10-11 17:16:32 +03:00
Nikolai Kochetov
10366f79ae
Update url params in shell_config and tests.]
2019-10-11 16:34:26 +03:00
Nikolai Kochetov
2ecf7abf6c
Update url params in shell_config.
2019-10-11 15:08:11 +03:00
Nikolai Kochetov
48bfcab428
Add ability to specify arguments to client in functional tests.
2019-10-11 13:30:32 +03:00
Vitaly Baranov
9e3815ccef
Fix ubsan issue.
2019-10-11 12:53:10 +03:00
Vitaly Baranov
060257c8c5
Remove Authentication::setType() function and fix comments.
2019-10-11 00:48:36 +03:00
Nikolai Kochetov
9a89ee8eab
Merge pull request #7264 from ClickHouse/disable-memory-tracker-for-stack-trace
...
Disable memory tracker for exception stack.
2019-10-11 00:45:36 +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
9f6d9d6130
Move the code which checks client host to a separate class.
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
Nikolai Kochetov
a15d8f36d5
Merge pull request #7270 from azat/uniqCombined-memory-usage-tests-fixes
...
uniqCombined memory usage tests fixes
2019-10-10 23:53:55 +03:00
Nikolai Kochetov
0ce86e1f8f
Disable memory tracker for exception stack.
2019-10-10 21:55:16 +03:00
Azat Khuzhin
e25bdc8d25
tests/00212_shard_aggregate_function_uniq: adjust values for uniqCombined(12)(String)
...
In e373862c83
the maxium size for HashTable in
CombinedCardinalityEstimator had been reduced for power of 2 for String
(since otherwise the size of the hashtable becames bigger then the
sizeof HLL).
Refs: https://github.com/ClickHouse/ClickHouse/pull/7236#issuecomment-540496270
Fixes: e373862c83
("Do not use more then 98K of memory for uniqCombined*")
2019-10-10 21:47:51 +03:00
Azat Khuzhin
eb7d4797e3
tests/00212_shard_aggregate_function_uniq: break into sections
2019-10-10 21:47:51 +03:00
Azat Khuzhin
495d1de46f
clickhouse-test: introduce -U/--unified option (pass to diff(1))
2019-10-10 21:47:51 +03:00
alexey-milovidov
9c1c596146
Merge pull request #7252 from ClickHouse/fix-bad-code-in-transform-query-for-external-database
...
Fix bad code in transforming query for external database.
2019-10-10 21:10:36 +03:00
Nikolai Kochetov
f011c1020e
Disable memory tracker for exception stack.
2019-10-10 20:37:34 +03:00
Nikolai Kochetov
742b948156
Disable memory tracker for exception stack.
2019-10-10 19:30:33 +03:00
Alexander Kazakov
03c7b7ff8d
Prevent from using non-deterministic functions in mutations of replicated tables ( #7247 )
...
* Added isDeterministic() to IFunctionBuilder i-face
* A test for non-deterministic mutations
* In MutationsInterpreter::validate() ensure deterministic functions
* Adjusted nondeterministic mutation tests
* Moved around some code in MutationsInterpreter::validate()
* Dropped unnecessary check in findFirstNonDeterministicFuncName()
* Corrections to IFunction{Base,Builder} interface
2019-10-10 17:38:08 +03:00
alesapin
51c8188903
Merge pull request #7253 from ClickHouse/dictionaries_ddl_parser
...
Refactor parser create query
2019-10-10 11:34:21 +03:00
alesapin
777ba2e47e
Remove some code
2019-10-10 00:31:29 +03:00
Alexey Milovidov
3fbac60328
Added a test
2019-10-09 23:16:17 +03:00
Alexey Milovidov
e65b57369e
transformQueryForExternalDatabase: fixed constant folding for Date and DateTime
2019-10-09 23:13:34 +03:00
alesapin
fae3f85a0f
Refactor parser create query
2019-10-09 23:09:10 +03:00
Alexey Milovidov
b302fec362
Fixed bad code in transformQueryForExternalDatabase
2019-10-09 22:58:50 +03:00
alexey-milovidov
689411abe0
Merge pull request #7222 from azat/uniqCombined64
...
[RFC] Introduce uniqCombined64() to get sane results for cardinality > UINT_MAX
2019-10-09 20:29:56 +03:00
alexey-milovidov
6cd3e9a458
Update AggregateFunctionUniqCombined.h
2019-10-09 20:26:01 +03:00
alexey-milovidov
81a9c81ba7
Merge pull request #7236 from azat/uniqCombined-memory-usage
...
Do not use more then 98K of memory for uniqCombined*
2019-10-09 20:19:30 +03:00
alexey-milovidov
e3861e0e88
Merge pull request #7242 from azat/sparse_hashed-name
...
Return SparseHashed name (system.dictionaries:type) for the sparse_hashed layout
2019-10-09 20:12:24 +03:00
alexey-milovidov
01e08a23c2
Merge pull request #7240 from ClickHouse/function-get-macro
...
Added function `getMacro`
2019-10-09 15:28:54 +03:00
Alexander Kuzmenkov
1965c612ab
Fix sorting in clickhouse-test.
2019-10-09 14:56:51 +03:00
Alexander Kuzmenkov
89ebd4885f
Fix test filtering in clickhouse-test.
2019-10-09 13:51:59 +03:00
alesapin
ef0b2f5936
Merge pull request #7209 from ClickHouse/dictionaries_ddl_parser
...
Dictionaries ddl parser
2019-10-09 12:51:08 +03:00
Azat Khuzhin
0ff823b574
Return SparseHashed name (system.dictionaries:type) for the sparse_hashed layout
...
Due to tons of rebasing this bit had been forgotten.
Refs: 420089c301
("Add new dictionary layout (sparse_hashed) that is more memory efficient")
2019-10-09 11:11:41 +03:00
alexey-milovidov
9b2e025918
Merge pull request #7234 from ClickHouse/aku/null-field-serialization
...
Serialize Null Fields correctly in DataTypeNullable.
2019-10-09 04:30:37 +03:00
Alexey Milovidov
6d2a79e832
Added a test
2019-10-09 04:18:12 +03:00
Alexey Milovidov
552e4b4be2
Added example config with macros for tests
2019-10-09 04:16:34 +03:00
Alexey Milovidov
a19f6513ce
Added example config with macros
2019-10-09 04:15:23 +03:00
Alexey Milovidov
9f8d562543
Add function "getMacro" #7239
2019-10-09 04:14:57 +03:00
Azat Khuzhin
e373862c83
Do not use more then 98K of memory for uniqCombined*
...
uniqCombined() uses hashtable for medium cardinality, and since
HashTable resize by the power of 2 (well actually HashTableGrower grows
double by the power of 2, hence HashTableGrower::increaseSize() should
be overwritten to change this), with 1<<13 (default for uniqCombined)
and UInt64 HashValueType, the HashTable will takes:
getBufferSizeInBytes() == 131072
While it should be not greater then sizeof(HLL) ~= 98K, so reduce the
maximum cardinality for hashtable to 1<<12 with UInt64 HashValueType and
to 1<13 with UInt32, overwrite HashTableGrower::increaseSize() and cover
this using max_memory_usage.
Refs: https://github.com/ClickHouse/ClickHouse/pull/7221#issuecomment-539672742
v2: cover uniqCombined() with non-default K
2019-10-09 02:39:23 +03:00
alexey-milovidov
4c1f0177b6
Merge pull request #7109 from infinivision/aggBitmapAnd
...
added groupBitmapAnd, groupBitmapOr, groupBitmapXor
2019-10-08 22:51:46 +03:00
alexey-milovidov
5c2d478543
Merge pull request #7212 from ClickHouse/aku/field-includes
...
Include Field.h and FieldVisitor.h into fewer files.
2019-10-08 22:40:30 +03:00
alesapin
5296be18f3
Fix desc table query
2019-10-08 22:39:20 +03:00