Commit Graph

2721 Commits

Author SHA1 Message Date
Sergey V. Galtsev
81eeaec7fe Cleanup test. 2018-12-20 00:12:06 +03:00
Sergey V. Galtsev
acb8cf1849 Fix test. 2018-12-19 23:29:52 +03:00
Alexey Milovidov
2f9ead4548 Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-19 19:18:56 +03:00
Alexey Milovidov
92499c725d Fixed test #3811 2018-12-19 18:27:57 +03:00
Ivan Lezhankin
4c3af43ed3 Add test. 2018-12-19 17:36:55 +03:00
Ivan Lezhankin
b9440fe99d Another minor refactoring. 2018-12-19 15:38:13 +03:00
Ivan Blinkov
0352c5a57c Introduce DATE_ADD/DATE_SUB/TIMESTAMP_ADD/TIMESTAMP_SUB #3705 2018-12-19 14:37:14 +03:00
Ivan Blinkov
f88b497555 Introduce common parser for interval kind names and use it for DATE_DIFF, EXTRACT and INTERVAL (allows to use same set of aliases in them) 2018-12-19 13:27:07 +03:00
Alexey Milovidov
36836faf62 Full support for Decimal #3721 2018-12-19 05:43:09 +03:00
Alexey Milovidov
689de0289f Added performance test #3721 2018-12-19 05:37:20 +03:00
Alexey Milovidov
9c23556cb0 Basic implementation for Decimal #3721 2018-12-19 05:11:31 +03:00
Alexey Milovidov
4a6c25e65d Merging #3721; Added a test 2018-12-19 04:30:32 +03:00
alexey-milovidov
92bb4471df
Merge pull request #3865 from abyss7/issue-3590
ISSUE-3590: Forbid using aggregate functions inside scalar subqueries
2018-12-19 03:19:45 +03:00
Alexey Milovidov
6a779661c8 Merge branch 'java-hash' of https://github.com/shangshujie365/ClickHouse into shangshujie365-java-hash 2018-12-18 23:04:32 +03:00
Ivan Lezhankin
617082f444 ISSUE-3590: Forbid using aggregate functions inside scalar subqueries 2018-12-18 21:43:06 +03:00
Ivan Blinkov
a378b919af Add a bunch of aliases to DATE_DIFF interval names 2018-12-18 18:28:13 +03:00
Ivan Blinkov
5abfcfcd48 Support proper syntax for dateDiff 2018-12-18 17:40:30 +03:00
Ivan Blinkov
362948e891 Introduce quarter interval kind as 3 months (in preparation for #3705) 2018-12-18 16:16:48 +03:00
alexey-milovidov
3efb01b3f8
Merge pull request #3857 from yandex/fix_odbc_bridge
Do not log from odbc-bridge when there is no console
2018-12-18 03:26:46 +03:00
Ivan Blinkov
93d4303922 minor trim test improvements 2018-12-17 23:20:25 +03:00
alesapin
bb1760c468 Remove idiotic if 2018-12-17 23:11:19 +03:00
Ivan Blinkov
b7566a8d4d Add manual implementation of trim base case (without character override) 2018-12-17 23:07:31 +03:00
Ivan Lezhankin
8c8dc333e5 Fix unavailable shard's host:port for testing. 2018-12-17 21:06:50 +03:00
Ivan Lezhankin
1a539b3a6d Merge remote-tracking branch 'upstream/master' into issue-3592 2018-12-17 19:30:20 +03:00
Ivan Lezhankin
6df757c6f7 Refactor constant folding and make it reusable for primary_key_expr 2018-12-17 17:59:01 +03:00
Samuel Chou
c465bd8d2b Fix rollup_with_having test 2018-12-16 23:55:04 -08:00
Samuel Chou
fcde47b45e Ensure ROLLUP and CUBE respect HAVING (no change to TOTALS) 2018-12-14 22:27:40 -08:00
Alexey Milovidov
af31ff24b9 Better code; added a test #3835 2018-12-14 23:21:47 +03:00
alexey-milovidov
3a2c85a06c
Merge pull request #3717 from amosbird/arrayjoin
Support unaligned array join.
2018-12-14 21:12:24 +03:00
Ivan Blinkov
9dca1e3ca2 Test for left/right with cut size larger than input 2018-12-14 14:45:45 +03:00
Ivan Blinkov
ebc0a165f4 Add perf test for right function 2018-12-14 12:32:24 +03:00
Ivan Blinkov
7b4b768195 Some perf tests for trim functions 2018-12-14 12:20:22 +03:00
Ivan Blinkov
180311b42b Introduce regexpQuoteMeta function to properly handle regexp special chars in TRIM #3714 2018-12-13 15:58:00 +03:00
Ivan Blinkov
034265f044 Introduce TRIM/LTRIM/RTRIM functions #3714 2018-12-13 14:50:37 +03:00
alexey-milovidov
7898caed19
Merge pull request #3800 from edonin/master
Better management of DateTime partitionning #3786
2018-12-13 14:05:19 +03:00
Ivan Blinkov
3209ac84d0 Rewrite LEFT and RIGHT functions to corresponding SUBSTRING calls #3712 2018-12-13 12:34:12 +03:00
Emmanuel Donin de Rosière
61adf58ac3 Better management of DateTime partitionning yandex#3786
issue with reference file for test
it is due to partition naming that seems to have changed recently.
2018-12-13 07:08:56 +01:00
Emmanuel Donin de Rosière
87791a2484 Better management of DateTime partitionning yandex#3786
Stills issue on tests reference
2018-12-12 21:36:13 +01:00
alexey-milovidov
611437c4e3
Update 00802_daylight_saving_time_shift_backwards_at_midnight.sql 2018-12-12 22:04:24 +03:00
Emmanuel Donin de Rosière
ed57179f17 Better management of DateTime partitionning yandex#3786
issue with reference file for tests
2018-12-12 19:18:21 +01:00
Emmanuel Donin de Rosière
6cf4bdedf9 Better management of DateTime partitionning yandex#3786
Adding test queries
2018-12-12 17:36:54 +01:00
Amos Bird
86f462acff Support unaligned array join
For left ARRAY JOIN, expand to the greatest size. If all sizes are zero,
resize to one which is the same as the old behavior, i.e. emptyArrayToSingle

For non-left ARRAY JOIN, expand to the greatest size but keep empty if all sizes are zero.
2018-12-12 22:08:28 +08:00
Alexey Milovidov
d02d79118c Added comment #3819 2018-12-12 16:32:14 +03:00
Alexey Milovidov
b250a95c48 Added test #3220 2018-12-12 16:29:58 +03:00
shangshujie
5de9577ecd add test function 2018-12-11 18:29:59 +08:00
alexey-milovidov
7af621f6f7
Merge pull request #3728 from amosbird/join
Versatile StorageJoin
2018-12-10 23:16:53 +03:00
alexey-milovidov
a083e6bc64
Merge pull request #3799 from yandex/low-cardinality-join
Low cardinality join
2018-12-10 21:46:42 +03:00
Alexey Milovidov
76167f382a Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-10 21:19:46 +03:00
Alexey Milovidov
22aa593d6b Fixed global variable buffer read overflow [#CLICKHOUSE-4191] 2018-12-10 21:19:37 +03:00
alesapin
77c884b7ff Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-10 19:07:47 +03:00
alesapin
0612910277 Remove redundant container 2018-12-10 19:07:31 +03:00
Alexey Milovidov
aec8c149dc Fixed test [#CLICKHOUSE-4191] 2018-12-10 18:59:56 +03:00
alexey-milovidov
5152e2b8fa
Merge pull request #2658 from yandex/issue-3578
CLICKHOUSE-3578 apply column defaults for semistructured input formats
2018-12-10 18:56:22 +03:00
alexey-milovidov
ce2f3fca50
Merge pull request #3804 from yandex/missing-sql-compatibility-functions
Support SUBSTRING(expr FROM start FOR length)
2018-12-10 18:41:03 +03:00
Ivan Blinkov
6a90abc543 Support SUBSTRING(expr FROM start FOR length) 2018-12-10 15:54:02 +03:00
Nikolai Kochetov
723932930d Added test with low cardinality join. 2018-12-10 14:21:29 +03:00
alesapin
0466f6beaf Merge branch 'master' of github.com:yandex/ClickHouse 2018-12-10 12:41:10 +03:00
alesapin
0901694b15 Update integration tests image 2018-12-10 12:40:57 +03:00
Sergey V. Galtsev
52d18ee7c6 Merge branch 'master' of https://github.com/yandex/clickhouse into match-process-euid-against-data-owner 2018-12-09 22:46:24 +03:00
alexey-milovidov
0fdb3b9628
Merge branch 'master' into issue-3578 2018-12-07 23:53:34 +03:00
Alexey Milovidov
ab8ac40682 Fixed test (added normal case that was missed) [#CLICKHOUSE-2] 2018-12-07 23:13:44 +03:00
Sergey V. Galtsev
51b6dd67b0 Match the process' effective user id against the data owner at the server startup. 2018-12-07 17:56:59 +03:00
alesapin
21f8a86635 Merge branch 'chenxing-xc-master' 2018-12-07 17:13:11 +03:00
alesapin
dbefb66691 Add kill docker by Ctrl+C, abs path and improve readme 2018-12-07 17:08:25 +03:00
alesapin
80b49e4c0a Add integration test, put dependent libs to contrib, slightly refine
code.
2018-12-07 14:41:24 +03:00
alexey-milovidov
68b5f02b10
Merge pull request #3683 from nicelulu/update_23
Compatible with LowCardinality type data write
2018-12-07 07:17:07 +03:00
alexey-milovidov
d6915bf61d
Merge pull request #3762 from yandex/fix-something-with-columns-alias-and-prewhere
Fix source columns list for prewhere alias actions.
2018-12-07 07:09:14 +03:00
alexey-milovidov
990c7dea03
Merge pull request #3772 from yandex/mutations-default-database
Add the default database to tables in a mutation query
2018-12-07 07:06:20 +03:00
Alexey Zatelepin
df76b1c23a add examples that require rewrite of SELECT expr list to test [#CLICKHOUSE-3145] 2018-12-06 21:55:28 +03:00
Alexey Zatelepin
8d2cf2dbd1 add failing test #3597 2018-12-06 21:54:33 +03:00
Ivan Blinkov
21c76a3d63 Make if function name case-insensive #3704 2018-12-06 17:40:32 +03:00
Ivan Blinkov
afcd6f9f09 Make substring function name case-insensitive + add two aliases #3704 2018-12-06 17:30:10 +03:00
Ivan Blinkov
ed04453122 Add locate -> position alias #3713 2018-12-06 16:36:23 +03:00
Ivan Blinkov
4ebbe3502d Add replace -> replaceAll alias #3713 2018-12-06 16:23:45 +03:00
Ivan Blinkov
e110d0789f Add lcase/ucase + make lower/upper case-insensitive #3715 2018-12-05 19:59:35 +03:00
Nikolai Kochetov
c72152d7fc Added test. 2018-12-05 19:41:19 +03:00
Ivan Lezhankin
887e1089f1 Merge branch 'master' into kanterov_skip_unused_shards 2018-12-05 18:17:04 +03:00
chertus
3db00b7b98 Merge branch 'master' into issue-3578 2018-12-05 14:43:14 +03:00
root
6da945b2a7 fix integration test_insert_into_distributed allow_experimental_low_cardinality_type 2018-12-04 15:11:39 +08:00
root
192092c2bd fix test 00800_low_cardinality_distributed_insert.sql cluster 2018-12-04 11:21:42 +08:00
alesapin
170f90ffe7
Update README.md 2018-12-03 19:08:26 +03:00
root
02125f29c0 fix test_inserts_low_cardinality 2018-12-03 21:22:29 +08:00
root
8c9e9649fb Add test and code comment. 2018-12-03 21:11:26 +08:00
alexey-milovidov
cec49357da
Merge pull request #3581 from yandex/alter-order-by
ALTER MODIFY ORDER BY
2018-12-03 07:15:07 +03:00
alexey-milovidov
02636b3388
Merge pull request #3729 from amosbird/dryrun
Function execution with dry runs
2018-12-02 22:45:07 +03:00
alexey-milovidov
48b30edcf5
Merge branch 'master' into alter-order-by 2018-12-02 21:06:38 +03:00
Amos Bird
3cc0829cc1 Function execution with dry runs
This commit prevents stateful functions like rowNumberInAllBlocks from being modified in getHeader() calls.
2018-12-02 19:02:04 +08:00
Amos Bird
65b654a1b6 Versatile StorageJoin
This commit does the following:

1. StorageJoin with simple keys now supports reading
2. StorageJoin can be created with Join settings applied. Syntax is
similar to MergeTree and Kafka
3. Left Any StorageJoin with one simple key can be used as a
dictionary-like structure by function joinGet.

Examples are listed in the related test file.
2018-12-02 16:49:39 +08:00
Alexey Milovidov
c9b8cd0626 Fixed errors and improved PR #3724 2018-12-02 03:47:34 +03:00
alexey-milovidov
c5dac3d496
Merge pull request #3724 from ClickHouse-Ninja/master
timeSlots: add optional parameter 'Size'
2018-12-02 03:34:52 +03:00
Kirill Shvakov
566644b171 timeSlots: add optional parameter 'Size' 2018-12-01 10:01:20 +02:00
Alexey Milovidov
b7d9910bd3 Merge branch 'master' into dont-allocate-too-much-memory-to-parse-query 2018-12-01 04:54:01 +03:00
alexey-milovidov
32b0b61d25
Merge pull request #3699 from amosbird/master
NonJoinedStream[ALL] bypasses max_block_size
2018-12-01 01:48:48 +03:00
Alexey Milovidov
621e622f79 Added test [#CLICKHOUSE-4169] 2018-11-30 18:41:24 +03:00
Alexey Zatelepin
2d71338b78 examine structure of the destination table of Buffer storage under lock 2018-11-30 18:34:24 +03:00
Amos Bird
d092d35fa9 NonJoinedStream[ALL] bypasses max_block_size 2018-11-30 22:59:17 +08:00
Daniel Dao
eb91b19a99
Fix buffer overflow for EmptyImpl with FixedString
Signed-off-by: Daniel Dao <dqminh89@gmail.com>
2018-11-30 02:17:01 +00:00
Nikolai Kochetov
95e4297601 Fix tests. 2018-11-29 11:19:14 +03:00
alexey-milovidov
9cc36d3d3c
Merge pull request #3692 from yandex/fix-create-table-engine-parsing
Fix CREATE TABLE engine parsing
2018-11-29 00:22:20 +03:00
Alexey Milovidov
b92bcb3385 Added test #3694 2018-11-28 22:12:19 +03:00