Nikolai Kochetov
c5d9379df0
Add TotalsHavingStep.
2020-06-17 19:54:51 +03:00
alesapin
dffdece350
getColumns in StorageInMemoryMetadta (only compilable)
2020-06-17 19:39:58 +03:00
maxim-babenko
c3dbf7d6bf
Fix PODArrayBase::push_back_raw_many
...
1) capacity check must be ready for overflow during memcpy
2) reserve must be called with the new size, not just delta
2020-06-17 19:38:23 +03:00
Nikolai Kochetov
ce7c8782e2
Update PartialSortingTransform.cpp
2020-06-17 19:13:44 +03:00
Nikolai Kochetov
1ad4f2c0fd
Add CreatingSets step.
2020-06-17 18:50:21 +03:00
alesapin
ef8781cce7
Better getVirtuals method
2020-06-17 17:37:21 +03:00
alesapin
33c27de54d
Check methods in metadata
2020-06-17 17:32:25 +03:00
Nikolai Kochetov
f279df6015
Added AggregatingStep.
2020-06-17 17:21:48 +03:00
alesapin
31abbe5dbd
Select query in metadata
2020-06-17 17:06:22 +03:00
alesapin
eaaef83742
Settings changes in StorageInMemoryMetadata
2020-06-17 16:46:01 +03:00
alesapin
ed8f3b2fc4
TTL in storage in memory metadata
2020-06-17 16:39:26 +03:00
Nikolai Kochetov
582ea24469
Added AddingDelayedStreamStep
2020-06-17 16:38:17 +03:00
Vitaly Baranov
7011401cd4
Merge pull request #11670 from vitlibar/rbac-improve-parser-multiple-entities
...
RBAC: improve syntax
2020-06-17 16:26:02 +03:00
Alexander Tokmakov
3938b051c2
fix type duduction in values format
2020-06-17 16:21:06 +03:00
Alexander Tokmakov
eebfc9d2da
fix build with clang-9
2020-06-17 16:19:15 +03:00
alesapin
7064a366e2
Missed change for primary key
2020-06-17 15:40:27 +03:00
alesapin
1afdebeebd
Primary key in storage metadata
2020-06-17 15:39:20 +03:00
alesapin
1da393b218
Sampling key in StorageInMemoryMetadata
2020-06-17 15:07:09 +03:00
Nikolai Kochetov
8c78ae0cd9
Fix style.
2020-06-17 15:03:33 +03:00
alesapin
eca6e9087e
Fix race condition
2020-06-17 14:52:19 +03:00
Nikolai Kochetov
6c477d06ad
Review fixes.
2020-06-17 14:43:55 +03:00
alexey-milovidov
f55fb33731
Merge pull request #11726 from ClickHouse/remove-old-tests
...
Remove old non-automated tests (examples)
2020-06-17 14:25:20 +03:00
alesapin
ba04d02f1e
Compilable sorting key in metadata
2020-06-17 14:05:11 +03:00
Nikita Mikhaylov
d2be6c036b
Merge pull request #11602 from ClickHouse/fix-buffer-sample
...
Fix buffer sample
2020-06-17 14:44:48 +04:00
Nikita Mikhaylov
ff0262626a
Merge pull request #11645 from azat/load-balancing-round-robin
...
Add round_robin load_balancing
2020-06-17 14:34:59 +04:00
alesapin
ab61abccc1
Partition key in StorageInMemoryMetadata
2020-06-17 13:34:23 +03:00
Nikita Mikhaylov
9b88065e77
add small comment
2020-06-17 13:33:35 +03:00
alesapin
62f2c17a66
Secondary indices in StorageInMemoryMetadata
2020-06-17 12:38:47 +03:00
xPoSx
2d8110ce45
Eliminate min/max/any aggregators of GROUP BY keys in SELECT section ( #11667 )
2020-06-17 12:32:43 +03:00
Nikolai Kochetov
0829d1d16d
Fix ya.make
2020-06-17 12:16:01 +03:00
Nikita Mikhaylov
edec79cf69
Merge pull request #11703 from nikitamikhaylov/merging-alter-query
...
Merging #11508
2020-06-17 12:47:34 +04:00
Nikita Mikhaylov
edff6eac6e
comment
2020-06-17 11:44:52 +03:00
alesapin
2fac3290f0
Merge branch 'master' into atomic_metadata5
2020-06-17 11:14:03 +03:00
Alexey Milovidov
3c023fe8b8
Remove old non-automated tests
2020-06-17 10:45:51 +03:00
Nikita Mikhaylov
ab04a6bb62
Merge pull request #11615 from azat/SYSTEM-FLUSH-LOGS-force-table-creation-v2
...
Force table creation on SYSTEM FLUSH LOGS (v2)
2020-06-17 11:09:19 +04:00
alexey-milovidov
e07d02015c
Merge pull request #11661 from ClickHouse/return-not-nullable-from-count-distinct-2
...
Return non-Nullable results from COUNT(DISTINCT), more complete.
2020-06-17 09:25:45 +03:00
alexey-milovidov
598fd75caf
Merge pull request #11639 from ClickHouse/remove-leader-election-2
...
Remove leader election, step 2: allow multiple leaders
2020-06-17 09:25:23 +03:00
alexey-milovidov
6e61f708d7
Merge pull request #11690 from ClickHouse/odbc-bridge-timeouts
...
Pass proper timeouts when communicating with XDBC bridge.
2020-06-17 03:18:29 +03:00
Alexey Milovidov
e720d78f23
Fix tests
2020-06-17 03:08:01 +03:00
Alexey Milovidov
a655765040
Merge branch 'master' into return-not-nullable-from-count-distinct-2
2020-06-17 01:15:57 +03:00
Alexander Kuzmenkov
9cab822718
Merge pull request #11683 from ClickHouse/aku/merge-minmap-11603
...
Merge minMap, maxMap (#11603 )
2020-06-17 00:02:33 +03:00
Artem Zuikov
857d84bf7c
Buffer left blocks optimisation for MergeJoin ( #10601 )
2020-06-16 23:13:18 +03:00
alexey-milovidov
f387752cf1
Merge pull request #11702 from ClickHouse/fix-mv-header
...
Fix mv header
2020-06-16 22:43:38 +03:00
Alexey Milovidov
0a6054eece
Merge branch 'master' into return-not-nullable-from-count-distinct-2
2020-06-16 22:31:33 +03:00
alexey-milovidov
ad53ef2c14
Merge pull request #11686 from ClickHouse/proper-query-formatting-in-log
...
Don't break multiline queries when they are printed in server log
2020-06-16 22:17:30 +03:00
Alexey Milovidov
6c93016c91
Add suggestion from @alesap
2020-06-16 22:16:01 +03:00
Alexey Milovidov
b7ec5f94f2
Merge branch 'master' into odbc-bridge-timeouts
2020-06-16 22:14:43 +03:00
alexey-milovidov
47bd8df9de
Merge pull request #11692 from ClickHouse/fix-flaky-test-incremental-streaming
...
Fix flaky test 01064_incremental_streaming_from_2_src_with_feedback
2020-06-16 22:12:46 +03:00
alexey-milovidov
6f2d9999be
Merge pull request #11693 from ClickHouse/fix-flaky-unit-tests
...
More robust unit tests if ZooKeeper is unavailable for some time.
2020-06-16 22:12:30 +03:00
Nikolai Kochetov
fdacc9f90e
Add MergingAggregatedStep.
2020-06-16 21:57:21 +03:00
alesapin
fa60903620
Fix race condition
2020-06-16 21:41:11 +03:00
alesapin
d214a504d7
Merge pull request #11681 from ClickHouse/fix_mutations_premature_finish
...
Fix mutations premature "finish"
2020-06-16 21:26:14 +03:00
Nikolai Kochetov
148257abb5
Add LimitStep.
2020-06-16 21:23:01 +03:00
Azat Khuzhin
8fbf93012d
Fix data race between reading/writing is_force_prepare_tables
2020-06-16 21:08:44 +03:00
Nikita Mikhaylov
fc06f99476
build and test fixes
2020-06-16 21:07:41 +03:00
alesapin
ccc2bda666
getConstraints() in StorageInMemoryMetadata (suspicious commit, but pretend to work)
2020-06-16 19:55:04 +03:00
Nikolai Kochetov
5bb1d5cc43
Add LimitByStep.
2020-06-16 19:49:49 +03:00
Artem Zuikov
a3d6e047fe
Fix lambdas with multiple_joins_rewriter v2 ( #11587 )
2020-06-16 19:32:32 +03:00
Nikolai Kochetov
603bcdde2d
Add DistinctStep.
2020-06-16 19:13:07 +03:00
alesapin
1ddeb3d149
Buildable getSampleBlock in StorageInMemoryMetadata
2020-06-16 18:51:29 +03:00
Nikolai Kochetov
cfe87a77ea
Add MergingSortedStep.
2020-06-16 18:49:09 +03:00
Nikolai Kochetov
08e9ce8661
Add MergingSortedStep.
2020-06-16 18:47:40 +03:00
Nikolai Kochetov
a0a1445da9
Fix build.
2020-06-16 18:10:40 +03:00
Nikolai Kochetov
f563193967
Add MergeSortingStep.
2020-06-16 18:08:01 +03:00
Nikolai Kochetov
815ac03892
Add PartialSortingStep.
2020-06-16 17:45:52 +03:00
alesapin
71f99a274d
Compileable getSampleBlockWithColumns in StorageInMemoryMetadata
2020-06-16 17:25:08 +03:00
Nikolai Kochetov
ab452e9391
Added source steps.
2020-06-16 17:14:14 +03:00
Nikolai Kochetov
4407bd7daa
Added source steps.
2020-06-16 17:11:19 +03:00
Ivan Blinkov
7e2bb1fd83
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-16 16:02:55 +03:00
alesapin
08b9aa6b2e
getSampleBlockWithVirtuals in StorageInMemoryMetadata
2020-06-16 15:58:05 +03:00
alesapin
53cb5210de
Move getSampleBlockNonMaterialized to StorageInMemoryMetadata
2020-06-16 15:48:10 +03:00
alesapin
0bcd22008a
Get column dependencies in StorageInMemoryMetadata
2020-06-16 15:19:21 +03:00
alesapin
0f286ac133
Copy some methods to metdata
2020-06-16 15:03:27 +03:00
Nikolai Kochetov
be8029e54f
Expression and Filter steps.
2020-06-16 15:02:10 +03:00
alesapin
eae901f58d
Merge branch 'master' into atomic_metadata5
2020-06-16 14:44:45 +03:00
alesapin
0a33ccb77b
Fix remove method
2020-06-16 14:12:52 +03:00
alesapin
d1052f2dfe
Better logic
2020-06-16 13:50:47 +03:00
Alexander Kuzmenkov
be008cd186
remove some code
2020-06-16 13:44:23 +03:00
alesapin
d5b76b2fe1
Fix parts count in mutations
2020-06-16 13:34:59 +03:00
alesapin
0cb14c836c
Merge pull request #11691 from ClickHouse/fix-race-condition-system-sync-replicas
...
Fix race condition in SYSTEM SYNC REPLICA
2020-06-16 13:29:18 +03:00
alesapin
362aaf1385
Merge pull request #11516 from ClickHouse/consistent_metadata4
...
Storage metadata as a single struct.
2020-06-16 13:28:22 +03:00
Nikolai Kochetov
e28552ec71
Fix build.
2020-06-16 12:53:59 +03:00
Nikolai Kochetov
1bb72205bd
Expression and Filter steps.
2020-06-16 12:42:25 +03:00
alesapin
f6f3605258
Merge pull request #11695 from ClickHouse/avoid-attempt-to-fetch-when-fetches-are-cancelled
...
Avoid connection to replica when fetches are cancelled
2020-06-16 12:30:58 +03:00
xPoSx
9fc37e1f75
Remove functions of other keys in GROUP BY section ( #10051 )
2020-06-16 12:14:25 +03:00
Vitaly Baranov
c5229301fc
Merge pull request #11671 from vitlibar/fix-minor-bugs-in-rbac
...
Fix minor bugs in RBAC
2020-06-16 12:09:54 +03:00
frank
e26e873b0d
fix for style check.
...
(cherry picked from commit 0be7b09490
)
2020-06-16 11:54:01 +03:00
franklee
afa666792b
typo
...
(cherry picked from commit 76c75c947e
)
2020-06-16 11:53:52 +03:00
franklee
264e44ecef
support distributed DDLs on cross replication clusters.
...
(cherry picked from commit fd09994d91
)
2020-06-16 11:53:27 +03:00
alesapin
605c904fc6
Add method for compatibility
2020-06-16 11:39:12 +03:00
Nikolai Kochetov
66c0ef2610
Do not materialize header for merge tables.
2020-06-16 11:08:32 +03:00
Nikolai Kochetov
61070a03cd
Fix build.
2020-06-16 10:56:22 +03:00
Bharat Nallan
334c5abe9b
remove extra vertical space
2020-06-15 22:04:30 -07:00
Bharat Nallan
c43bd228ab
make max global thread pool setting configurable
...
This PR adds a server level config for overriding the default max number
of threads in global thread pool that is currently allowed (10,000).
This might be useful in scenarios where there are a large number of
distributed queries that are executing concurrently and where the
default number of max threads might not be necessarily be sufficient.
2020-06-15 22:04:30 -07:00
alexey-milovidov
82b27ab618
Merge pull request #11689 from CurtizJ/fix-with-ties
...
Fix 'LIMIT WITH TIES' with aliases
2020-06-16 06:04:27 +03:00
Alexey Milovidov
125b007360
Merge branch 'master' into remove-leader-election-2
2020-06-16 05:56:29 +03:00
Anton Popov
03058c3c25
fix 'ORDER BY WITH FILL' over const columns
2020-06-16 05:56:16 +03:00
Alexey Milovidov
22a92faab6
Avoid connection to replica when fetches are cancelled
2020-06-16 05:14:53 +03:00
alexey-milovidov
ceb8775bc1
Merge pull request #11685 from ClickHouse/remove-duplicate-line
...
Remove excessive statement
2020-06-16 03:28:40 +03:00
Alexey Milovidov
85a7676bf4
Fix flaky unit tests with ZooKeeper.
2020-06-16 02:32:30 +03:00
Alexey Milovidov
d08736f708
Added a comment
2020-06-16 02:27:22 +03:00
Alexey Milovidov
53d985909e
Fix race condition in SYSTEM SYNC REPLICA
2020-06-16 01:54:19 +03:00
Alexey Milovidov
cf0bd501e5
Remove harmful default values from code
2020-06-16 01:36:12 +03:00
Alexey Milovidov
186d336e31
Use proper timeouts when communicating with xdbc-bridge
2020-06-16 01:35:15 +03:00
Anton Popov
eabbabed04
fix 'LIMIT WITH TIES' with aliases
2020-06-16 01:24:00 +03:00
Alexey Milovidov
1e73a56a77
Whitespace
2020-06-16 01:23:56 +03:00
Alexey Milovidov
bc58e22c5b
Whitespace
2020-06-16 01:23:13 +03:00
Nikolai Kochetov
03e0a5ddbc
Merge branch 'master' into query-plan
2020-06-15 23:38:35 +03:00
Nikolai Kochetov
da11190677
Fix tests.
2020-06-15 23:20:45 +03:00
Alexey Milovidov
511fa106af
Better comment
2020-06-15 23:05:21 +03:00
Alexey Milovidov
1976b10ee0
Proper query formatting in logs #3853
2020-06-15 23:01:58 +03:00
Nikolai Kochetov
dbef88e073
Fix tests.
2020-06-15 22:33:24 +03:00
Alexey Milovidov
d10109dc38
Remove excessive statement #11131
2020-06-15 22:18:33 +03:00
alesapin
36ba0192df
Metadata in read and write methods of IStorage
2020-06-15 22:08:58 +03:00
Vitaly Baranov
a40885fa84
Add new command SHOW ACCESS.
2020-06-15 22:07:47 +03:00
Vitaly Baranov
9fe47df2e8
Support multiple users/roles in SHOW CREATE USER(ROLE, etc.) and SHOW GRANTS FOR commands.
...
Support syntax "SHOW CREATE USER ALL" and "SHOW GRANTS FOR ALL".
2020-06-15 22:07:47 +03:00
Vitaly Baranov
6146766465
Use function ParserList::parseUtil() to parse lists more accurately.
2020-06-15 22:07:47 +03:00
Vitaly Baranov
15132d47c9
Slightly improve syntax of CREATE POLICY.
...
Also rename column source=>storage in table system.row_policies.
2020-06-15 22:07:42 +03:00
Alexander Kuzmenkov
7cc54fd4f1
renames + perf test
2020-06-15 21:53:54 +03:00
Nikolai Kochetov
012fb819db
Fix build.
2020-06-15 21:49:41 +03:00
Nikolai Kochetov
68f8372c12
Fix build.
2020-06-15 21:41:47 +03:00
Alexander Kuzmenkov
82b5ada130
Merge pull request #11650 from ksvladimir/master
...
Allow using groupArrayArray and groupUniqArrayArray as SimpleAggregateFunction
2020-06-15 21:29:57 +03:00
alesapin
b47a7327fd
All set methods in metadata
2020-06-15 21:08:05 +03:00
alesapin
33a74a3ea0
TTL methods in StorageInMemoryMetadata
2020-06-15 20:50:53 +03:00
Nikolai Kochetov
b456a3cc77
Fix tests.
2020-06-15 20:48:04 +03:00
tavplubix
86e2cfe999
Merge pull request #11628 from zhang2014/feature/ISSUES-7572
...
ISSUES-7572 support config default http handler
2020-06-15 20:37:04 +03:00
alesapin
e667eb57b2
Working set*Keys methods
2020-06-15 20:24:49 +03:00
alesapin
5fc41c7ecc
Move set*Key methods to StorageInMemoryMetadata
2020-06-15 20:17:06 +03:00
Vitaly Baranov
4bd00b02e2
Improve syntax of CREATE QUOTA. Now resource types and key types could be written with underscores.
...
Also rename columns key_type=>keys and source=>storage in table system.quotas.
2020-06-15 20:10:34 +03:00
Vitaly Baranov
7d1951a79b
Improve messages for errors in access storages.
2020-06-15 20:10:34 +03:00
Vitaly Baranov
92b9f4a88d
Rename ExtendedRoleSet => RolesOrUsersSet.
2020-06-15 20:10:34 +03:00
Vitaly Baranov
9f31184d76
Support for multiple names in one CREATE/ALTER command.
2020-06-15 20:10:28 +03:00
alesapin
aa30649ce5
Working setColumns, setConstraints, setIndices
2020-06-15 20:10:14 +03:00
alesapin
af2fe2ba55
Compilable setColumns, setConstraints, setIndices
2020-06-15 19:55:33 +03:00
Alexey Milovidov
a5e9d793b0
Merge branch 'master' into avoid-trailing-whitespaces-in-some-cases
2020-06-15 19:48:07 +03:00
Alexander Kuzmenkov
0743e8c15d
Merge remote-tracking branch 'origin/master' into minmap
2020-06-15 19:39:57 +03:00
Alexander Kuzmenkov
e460d7c2bd
Merge pull request #11638 from azat/skip-idx-bloom-filter-fix
...
Fix bloom filters for String (data skipping indices)
2020-06-15 18:41:04 +03:00
Nikolai Kochetov
5436ef38bf
Fix MergingSortedAlgorithm.
2020-06-15 18:21:10 +03:00
Nikolai Kochetov
b725df6366
Added ReadFromStorageStep.
2020-06-15 18:17:44 +03:00
alesapin
8f66c1b22c
Merge with master
2020-06-15 17:31:37 +03:00
Nikolai Kochetov
b5ecef6adf
Fix tests.
2020-06-15 16:56:38 +03:00
alesapin
8945d0073a
Fix misunderstanding bug in mutations finalization
2020-06-15 16:37:40 +03:00
Vitaly Baranov
c7140724a8
Fix that ALTER USER RENAME could change allowed hosts.
2020-06-15 16:34:16 +03:00
Artem Zuikov
24059efad5
Change push down logic in VIEW ( #11513 )
2020-06-15 15:36:10 +03:00
Mikhail Malafeev
10566e2b43
Remove duplicate ORDER BY and DISTINCT from subqueries ( #10067 )
2020-06-15 15:03:01 +03:00
Alexander Tokmakov
def0158638
configure query handler as default
2020-06-15 14:33:44 +03:00
Nikolai Kochetov
ccf2ceb876
Fix pipeline stuck for parallel final.
2020-06-15 14:02:47 +03:00
alesapin
2c9ce0f3fa
Bump CI
2020-06-15 13:14:36 +03:00
tavplubix
20b8e1e9ec
Merge pull request #11057 from Potya/null_data_mods
...
Null data mods
2020-06-15 13:04:51 +03:00
alesapin
bc9a3c0458
Merge branch 'master' into consistent_metadata4
2020-06-15 11:20:30 +03:00
alesapin
c20ce687cf
bump ci
2020-06-15 11:12:01 +03:00
Alexey Milovidov
94d55abfd1
Update tests
2020-06-15 07:40:03 +03:00
Alexey Milovidov
e2607f005c
Fix error with ALTER CONSTRAINT formatting; added a test
2020-06-15 07:36:20 +03:00
Alexey Milovidov
e9eb722d4a
Better formatting of CREATE queries
2020-06-15 07:27:33 +03:00
Alexey Milovidov
1c5c2f8c69
Fix formatting of CREATE DICTIONARY
2020-06-15 07:08:20 +03:00
Alexey Milovidov
fdc8f7ad14
Merge branch 'master' into avoid-trailing-whitespaces-in-some-cases
2020-06-15 06:52:14 +03:00
alexey-milovidov
fd6115cccf
Merge pull request #11648 from ClickHouse/simplify-code-functions-comparison-3
...
Allow comparison with String in index analysis; simplify code.
2020-06-15 05:47:03 +03:00
Alexey Milovidov
1ab599b0a0
Remove "current_password" but keep it for Arcadians
2020-06-15 05:17:08 +03:00
Alexey Milovidov
d2c66f9688
Added comments
2020-06-15 05:14:59 +03:00
Alexey Milovidov
bbe5f4c909
Revert "Remove "current_password" because it is harmful"
...
This reverts commit 66ccb2f6b1
.
2020-06-15 05:13:41 +03:00
Alexey Milovidov
5866401f60
Less noise in cleanup thread
2020-06-15 05:12:06 +03:00
Alexey Milovidov
66ccb2f6b1
Remove "current_password" because it is harmful
2020-06-15 04:12:01 +03:00
Alexey Milovidov
689b6901f8
Fix typo
2020-06-15 04:04:42 +03:00
Alexey Milovidov
1c438a133e
Leader election both backward and forward compatible
2020-06-15 03:59:12 +03:00
alexey-milovidov
550838adbb
Merge pull request #11647 from ClickHouse/simplify-code-functions-comparison-2
...
Allow comparison of numbers with constant string in IN and VALUES
2020-06-15 03:33:45 +03:00
Alexey Milovidov
b596831342
Merge branch 'master' into remove-leader-election-2
2020-06-15 03:16:41 +03:00
alexey-milovidov
814265b66e
Merge pull request #11665 from ClickHouse/clear-password-from-command-line
...
Clear password from command line
2020-06-15 02:17:21 +03:00
Vitaly Baranov
3ffcb8e790
Fix casting values of settings while reading profiles from users.xml.
2020-06-15 01:44:25 +03:00
Vitaly Baranov
ca2fb59321
Fix calculating full names of row policies.
2020-06-15 01:44:25 +03:00
Vitaly Baranov
ceaaf67d3f
Fix parsing CREATE SETTINGS PROFILE with WRITABLE keyword.
2020-06-15 01:44:25 +03:00
Alexey Milovidov
6467302ad3
Fix gcc build
2020-06-15 01:29:22 +03:00
Alexey Milovidov
303d1ebdaf
Fix error; more tests
2020-06-15 01:17:06 +03:00
Alexey Milovidov
c4f18d2896
Fix tests
2020-06-15 00:39:22 +03:00
Alexander Tokmakov
045f804879
Merge branch 'master' into multiword_data_type
2020-06-15 00:35:17 +03:00
Alexey Milovidov
07ba7ffea5
Clear password from command line #11624
2020-06-14 22:23:05 +03:00
Alexey Milovidov
3663e2a47e
Fix syntax hilite in CREATE USER query
2020-06-14 22:11:32 +03:00
Alexey Milovidov
8dac30ae95
Split file for better build times
2020-06-14 21:42:10 +03:00
Alexey Milovidov
067cf4cc40
Fix gcc build
2020-06-14 21:31:42 +03:00
Alexey Milovidov
f6c52fe1c2
Allow comparison with String in index analysis; simplify code #11630
2020-06-14 21:31:42 +03:00
Alexey Milovidov
db0fc6c9a6
Fix tests
2020-06-14 21:24:25 +03:00
alexey-milovidov
561d4b5b01
Merge pull request #11655 from ClickHouse/position-in-system-columns
...
Added column "position" to system.columns and "column_position" to system.parts_columns
2020-06-14 21:01:41 +03:00
Alexey Milovidov
217d05443a
Remove old non-automated test
2020-06-14 20:42:11 +03:00
Alexey Milovidov
394fb64a9c
Better way of implementation
2020-06-14 20:42:11 +03:00
alexey-milovidov
d990b98b90
Merge pull request #11593 from ClickHouse/return-not-nullable-from-count-distinct
...
Return non-Nullable results from COUNT(DISTINCT)
2020-06-14 20:39:19 +03:00
Alexander Tokmakov
6a439a5eb5
fixes
2020-06-14 19:39:06 +03:00
Alexander Tokmakov
5f9739fbf9
Merge branch 'master' into fork-potya/null_data_mods
2020-06-14 18:11:55 +03:00
Winter Zhang
dc6f904f0a
Merge branch 'master' into feature/ISSUES-7572
2020-06-14 18:28:06 +08:00
alexey-milovidov
88cf3f7083
Merge pull request #11653 from ClickHouse/parse-date-time-best-effort-incompletely-parsed-value
...
Return NULL or zero when value is not parsed completely in parseDateTimeBestEffortOr* functions
2020-06-14 10:59:10 +03:00
alexey-milovidov
361cb880a3
Merge pull request #11657 from ClickHouse/dont-use-elf-if-foreign
...
Don't use debug info from ELF file if it doesn't correspond to the running binary.
2020-06-14 10:58:21 +03:00
alexey-milovidov
da3a075821
Merge pull request #11660 from bharatnc/bnc/fix-remove-unused-imports
...
remove unused imports from HTTPHandlerFactory
2020-06-14 09:43:52 +03:00
alexey-milovidov
56b8d81ef6
Merge pull request #11651 from ClickHouse/empty-parameters-url
...
Skip empty URL parameters
2020-06-14 09:00:52 +03:00
alexey-milovidov
87223b2cb7
Merge pull request #11652 from ClickHouse/allow-drop-and-rename-without-zookeeper
...
Allow to drop table if there is no metadata in ZooKeeper; allow to rename.
2020-06-14 09:00:38 +03:00
Alexey Milovidov
3958a032ac
Added a test
2020-06-14 08:15:29 +03:00
Alexey Milovidov
add7b76b83
Merge branch 'master' into return-not-nullable-from-count-distinct
2020-06-14 07:57:00 +03:00
alexey-milovidov
b9b725a39f
Merge pull request #11649 from ClickHouse/case-insensitive-regexp
...
Allow case-insensitive regexps; added a test
2020-06-14 07:55:09 +03:00
Bharat Nallan
4953b5fc84
remove unused imports from HTTPHandlerFactory
...
This removes unused imports from `src/Server/HTTPHandlerFactory.cpp`:
```bash
- #include <re2/re2.h>
- #include <common/find_symbols.h>
- #include <Poco/StringTokenizer.h>
```
2020-06-13 21:47:44 -07:00
Alexey Milovidov
44221139e9
Fix test
2020-06-14 07:35:50 +03:00
Alexey Milovidov
bba0140d8f
Fix tests
2020-06-14 07:20:52 +03:00
Alexey Milovidov
fed6843e64
Fix style
2020-06-14 07:16:52 +03:00
Alexey Milovidov
e2f7a41a1a
Fix error; clarify more results in test
2020-06-14 07:16:52 +03:00
Alexey Milovidov
4024840795
Add a test
2020-06-14 07:16:52 +03:00
Alexey Milovidov
ff3e5e1a2e
Allow implicit conversion from String in IN, VALUES and comparison #11630
2020-06-14 07:16:52 +03:00
Alexey Milovidov
eec5abde07
Fix test
2020-06-14 07:16:23 +03:00
Alexey Milovidov
4a052f60c7
Don't use debug info from ELF file if it doesn't correspond to the running binary.
2020-06-14 06:10:35 +03:00
Alexey Milovidov
d6cf62e587
Added column "position" to system.columns and "column_position" to system.parts_columns
2020-06-14 04:56:22 +03:00
Alexey Milovidov
fae12d5e42
Return NULL or zero when value is not parsed completely in parseDateTimeBestEffortOr* functions
2020-06-14 04:45:03 +03:00
Alexey Milovidov
400e9fb64f
Allow to drop table if there is no metadata in ZooKeeper; allow to rename
2020-06-14 04:23:53 +03:00
Alexey Milovidov
6c278fee61
Better exception message
2020-06-14 04:07:47 +03:00
Alexey Milovidov
970a8e3ecc
Skip empty URL parameters #10749
2020-06-14 03:56:13 +03:00
Alexey Milovidov
30f1f88118
Allow case-insensitive regexps; added a test #11101
2020-06-14 03:43:42 +03:00
Volodymyr Kuznetsov
713f8f0b22
Added groupArrayArray and groupUniqArrayArray to SimpleAggregateFunction
2020-06-13 17:21:33 -07:00
Alexey Milovidov
41afea0165
Fix style
2020-06-14 02:10:25 +03:00
Alexey Milovidov
844140467e
Simplify the code in comparison functions
2020-06-14 01:18:48 +03:00
Azat Khuzhin
0e378590fe
Add load_balancing=round_robin
2020-06-14 01:09:21 +03:00
Azat Khuzhin
c139a05370
Forward declaration in StorageDistributed
2020-06-14 01:09:21 +03:00
Alexey Milovidov
2cd82a25f5
Remove trivial count query optimization if row-level security is set #11352
2020-06-13 23:59:20 +03:00
Alexey Milovidov
e1ae9500f9
Merge branch 'master' into remove-leader-election-2
2020-06-13 23:42:32 +03:00
Azat Khuzhin
5f82cc0021
Fix description for LoadBalancing::IN_ORDER
2020-06-13 23:17:30 +03:00
alexey-milovidov
f53da4d36b
Merge pull request #11608 from ClickHouse/fix-nullable-prewhere-type
...
Fix nullable prewhere type
2020-06-13 20:29:12 +03:00
Alexey Milovidov
9901e4d528
Remove debug output #11554
2020-06-13 20:20:54 +03:00
alexey-milovidov
3fe4bea56e
Merge pull request #11632 from ClickHouse/merging-extract-all-groups
...
Minor modifications after merging #11554
2020-06-13 20:20:38 +03:00
Anton Popov
10382e50d1
Merge pull request #11635 from dimarub2000/group_by_in_order_fix
...
Group by in order fix
2020-06-13 14:21:34 +03:00
alesapin
3427da1c43
Fix incorrect usage of rows TTL
2020-06-13 13:39:25 +03:00
alesapin
18b58e8483
Revert too strict lock
2020-06-13 12:12:45 +03:00
alesapin
d636cdf4b0
Remove outdated comment
2020-06-13 11:55:03 +03:00
alesapin
31b852c46d
Remove redundant locks
2020-06-13 11:53:40 +03:00
alesapin
fcfb6d3bc2
Merge with master
2020-06-13 11:51:07 +03:00
alesapin
5d3de747cd
Merge remote-tracking branch 'origin/master' into consistent_metadata4
2020-06-13 11:50:27 +03:00
Ildus Kurbangaliev
01d903c60d
add minMap and maxMap functions
2020-06-13 08:49:00 +00:00
zhang2014
de96296e01
ISSUES-7572 fix build failure
2020-06-13 10:17:02 +08:00
Alexey Milovidov
6f0db5ef10
Fix error
2020-06-13 04:35:49 +03:00
Alexey Milovidov
21897f2abd
Instrument
2020-06-13 04:35:49 +03:00
Alexey Milovidov
6ff671b092
Improvement
2020-06-13 04:35:49 +03:00
Alexey Milovidov
cfef7ba692
Whitespace
2020-06-13 04:35:49 +03:00
Alexey Milovidov
ab00e34305
Miscellaneous
2020-06-13 04:35:49 +03:00
Alexey Milovidov
85c0706901
Step 2: allow multiple leaders
2020-06-13 04:35:49 +03:00
Alexey Milovidov
b8b55a5b99
More LeaderElection to Storage/MergeTree
2020-06-13 04:35:49 +03:00
Alexey Milovidov
52ac009754
Update versions on merge and mutation
2020-06-13 04:34:05 +03:00
Alexey Milovidov
902774c89c
Removed default value of constructor
2020-06-13 04:34:05 +03:00
Alexey Milovidov
833c8178ae
Whitespaces
2020-06-13 04:34:05 +03:00
Alexey Milovidov
6869c122a8
Step 1 towards removing leader election: check and modify version of the "log" node
2020-06-13 04:34:05 +03:00
alexey-milovidov
54b77ff967
Merge pull request #11633 from ClickHouse/avoid-errors-using-zk-api
...
Avoid errors due to implicit int<->bool conversions when using ZK API
2020-06-13 04:32:32 +03:00
Alexey Milovidov
a690851586
Fix style
2020-06-13 00:20:59 +03:00
Alexey Milovidov
8985d64237
Fix "Arcadia" build
2020-06-13 00:20:00 +03:00
Azat Khuzhin
7f52b615e0
Fix bloom filters for String (data skipping indices)
...
bloom filter was broken for the first element, if all of the following
conditions satisfied:
- they are created on INSERT (in thie case bloom filter hashing uses
offsets, in case of OPTIMIZE it does not, since it already has
granulars).
- the record is not the first in the block
- the record is the first per index_granularity (do not confuse this
with data skipping index GRANULARITY).
- type of the field for indexing is "String" (not FixedString)
Because in this case there was incorrect length and *data* for that string.
2020-06-12 22:46:40 +03:00
Alexey Milovidov
f608044690
Fix error
2020-06-12 21:19:16 +03:00
zhang2014
8d9b770da4
ISSUES-7572 fix defaults config level & add replicas_status and prometheus handler
2020-06-13 00:15:02 +08:00
Dmitry
e5897bbfb6
size_t -> ssize_t
2020-06-12 18:59:11 +03:00
alexey-milovidov
fc8da2abd3
Merge pull request #11613 from azat/system.zookeeper-path-prepend-slash
...
Prepend slash for path while querying system.zookeeper
2020-06-12 18:19:10 +03:00
Alexey Milovidov
72257061d5
Avoid errors due to implicit int<->bool conversions when using ZK API
2020-06-12 18:09:12 +03:00
Nikolai Kochetov
83155e139c
Try fix tests.
2020-06-12 17:59:14 +03:00
alesapin
0edf5ff7a2
Fix race condition
2020-06-12 17:32:47 +03:00
Alexey Milovidov
787163d0b4
Minor modifications after merging #11554
2020-06-12 17:03:00 +03:00
alexey-milovidov
13ceaa4779
Merge pull request #11554 from Enmk/extractAllGroups-Horizontal-and-Vertical
...
extractAllGroupsHorizontal and extractAllGroupsVertical
2020-06-12 16:56:14 +03:00
Ivan Blinkov
e98a91e9f7
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-12 16:53:00 +03:00
zhang2014
2c439afc01
ISSUES-7572 fix build failure
2020-06-12 19:17:34 +08:00
zhang2014
80b765542f
ISSUES-7572 support config default http handler
2020-06-12 18:04:42 +08:00
alesapin
465c4b65b7
Slightly better interfaces and comments
2020-06-12 12:37:52 +03:00
alesapin
4eb8a1cfef
Fix gcc build
2020-06-12 00:03:25 +03:00
Azat Khuzhin
103eb17107
Force table creation on SYSTEM FLUSH LOGS (v2)
...
After this patch SYSTEM FLUSH LOGS will force system.*_log table
creatoins (only for enabled tables of course).
This will avoid such hacks like:
set log_queries=1;
select 1;
system flush logs;
This is the second version of the patch, since first has a deadlock [1]
(reported by @alesapin). This version does not use separate lock and do
not issue CREATE TABLE from the query execution thread, instead it
activate flushing thread to do so, hence this should be the same as if
the table will be created during flush.
[1]: https://gist.github.com/alesapin/d915d1deaa27d49aa31223daded02be2
Fixes : #11563
Cc: @alesapin
Cc: @nikitamikhaylov
2020-06-11 23:12:23 +03:00
Alexey Milovidov
540f8532cb
Fix error
2020-06-11 22:59:15 +03:00
Azat Khuzhin
7884c8ef2c
Use lock_guard over unique_lock in SystemLog
2020-06-11 21:55:41 +03:00
Azat Khuzhin
176ebb26e0
Prepend slash to path for system.zookeeper queries
...
path should starts with '/', otherwise ZBADARGUMENTS will be thrown in
ZooKeeper::sendThread and the session will fail.
2020-06-11 20:58:53 +03:00
Nikolai Kochetov
7b8c1657a5
Fix nullable prewhere column type.
2020-06-11 19:34:36 +03:00
alesapin
a39d010f94
Merge branch 'master' into consistent_metadata4
2020-06-11 18:47:41 +03:00
alexey-milovidov
89df9915bb
Merge pull request #11592 from ClickHouse/replicated-merge-tree-create-drop-race-garbage
...
Fix race conditions in CREATE/DROP of different replicas of ReplicatedMergeTree
2020-06-11 17:11:38 +03:00
alexey-milovidov
5f073c3ef4
Update StorageReplicatedMergeTree.cpp
2020-06-11 17:11:13 +03:00
Alexander Kuzmenkov
e354bbc78c
Merge pull request #11588 from ClickHouse/aku/async-log
...
Add system.asynchronous_metric_log
2020-06-11 16:10:35 +03:00
Nikolai Kochetov
ed0826efa7
Remove extra columns from sample in StorageBuffer.
2020-06-11 15:18:45 +03:00
Ivan Blinkov
ce36f409c9
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-11 13:34:58 +03:00
alesapin
5a9a63e9a1
Revert "Force table creation on SYSTEM FLUSH LOGS"
2020-06-11 13:22:24 +03:00
Ivan Blinkov
b70ed921ea
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-11 12:22:13 +03:00
tavplubix
1777bd0273
Merge pull request #11467 from hexiaoting/showcreate
...
Add "SHOW CLUSTER(s)" queries support
2020-06-11 12:01:28 +03:00
Vasily Nemkov
db555b088d
Regenerated ya.make
2020-06-11 11:05:08 +03:00
Vasily Nemkov
50a184acac
extractAllGroupsHorizontal and extractAllGroupsVertical
...
Split tests, fixed some error messages
Fixed test and error reporting of extractGroups
2020-06-11 11:03:17 +03:00
alexey-milovidov
c7be0d6bc0
Merge pull request #11578 from ClickHouse/fix_10240
...
Fix query_id of http queries
2020-06-11 06:55:04 +03:00
alexey-milovidov
9c20afbc81
Merge pull request #11579 from ClickHouse/fix_11490
...
Fix segfault in SHOW CREATE TABLE
2020-06-11 06:54:47 +03:00
alexey-milovidov
9e688307cb
Merge pull request #11580 from ClickHouse/fix-bug-prewhere-in-subquery
...
Fix prewhere in subquery
2020-06-11 06:53:44 +03:00
Alexey Milovidov
e40ee1a173
Return non-Nullable results from COUNT(DISTINCT)
2020-06-11 06:45:12 +03:00
Alexey Milovidov
790bc4e8e0
Better code
2020-06-11 06:35:59 +03:00
Alexey Milovidov
b72a095e99
Fix race conditions in CREATE/DROP of different replicas of ReplicatedMergeTree
2020-06-11 06:24:52 +03:00
Nikita Mikhaylov
425c20eeb8
Merge pull request #11563 from azat/SYSTEM-FLUSH-LOGS-force-table-creation
...
Force table creation on SYSTEM FLUSH LOGS
2020-06-11 02:03:34 +04:00
Alexander Kuzmenkov
a6648516f4
Add files; flush more often
2020-06-11 00:16:58 +03:00
Vitaly Baranov
d6e16629ae
Merge pull request #11028 from Potya/master
...
Support numeric parameters in Number and String data types
2020-06-10 23:23:59 +03:00
alexey-milovidov
4f2ed7a5e3
Merge branch 'master' into arch-chooser
2020-06-10 22:31:19 +03:00
Alexander Kuzmenkov
e4be52f35f
Add system.asynchronous_metric_log
2020-06-10 22:17:54 +03:00
alexey-milovidov
1d1e11d887
Merge pull request #11570 from Vxider/remove_unused_code
...
Remove unused local variables
2020-06-10 22:03:23 +03:00
alexey-milovidov
123a017057
Merge pull request #11528 from azat/use_compact_format_in_distributed_parts_names-fix
...
Fix shard_num/replica_num for <node> (breaks use_compact_format_in_distributed_parts_names)
2020-06-10 22:02:51 +03:00
tavplubix
9c86c12891
Update ParserShowTablesQuery.cpp
2020-06-10 21:11:30 +03:00
alesapin
dd3cf0fe0a
Don't miss columns TTLs update
2020-06-10 21:02:45 +03:00
alesapin
c21fac11cc
Merge branch 'master' into consistent_metadata4
2020-06-10 20:20:46 +03:00
Nikita Mikhaylov
bf262a3b04
more lock_guard
2020-06-10 18:44:28 +03:00
Nikita Mikhaylov
8c19817575
lock_guard
2020-06-10 18:30:50 +03:00
Ivan Blinkov
0316464ed4
fix
2020-06-10 18:30:13 +03:00
Nikolai Kochetov
d4c8adbaff
Fix sanitizeBlock
2020-06-10 18:06:37 +03:00
Ivan Blinkov
60b40f0403
Lost part of refactoring
2020-06-10 17:51:25 +03:00
Alexander Tokmakov
08073903ed
fix query_id of http queries
2020-06-10 17:24:42 +03:00
Ivan Blinkov
6191d33bd9
Do not cache frames inside StackTrace
2020-06-10 16:30:12 +03:00
Nikita Mikhaylov
9df693ced5
Merge pull request #11561 from Jokser/s3-http-client-memory-optimization
...
Avoid copying whole response stream into memory in S3 HTTP client.
2020-06-10 16:53:33 +04:00
Alexander Tokmakov
9166ddea41
fix segfault in show create table
2020-06-10 15:53:12 +03:00
alesapin
24db834046
Style
2020-06-10 14:27:16 +03:00
alesapin
8be957ecb5
Better checks around metadata
2020-06-10 14:16:31 +03:00
Ivan Blinkov
90ee4d52f4
merge master
2020-06-10 13:18:41 +03:00
Vxider
7078355449
remove unused local variables
2020-06-10 18:06:24 +08:00
alesapin
ec933d9d03
Better naming
2020-06-10 12:09:51 +03:00
tavplubix
a93ae46ac1
Merge pull request #11079 from ClickHouse/merging_external_source_cassandra
...
Merging #4978
2020-06-10 10:39:18 +03:00
alesapin
75977bd939
Gcc fixed
2020-06-10 00:22:01 +03:00
alesapin
4f398b5dea
Merge remote-tracking branch 'origin/master' into consistent_metadata4
2020-06-09 23:53:38 +03:00
alexey-milovidov
8e05558a5f
Merge pull request #11540 from ClickHouse/fix-direct-io
...
Fix direct IO with PREWHERE
2020-06-09 23:53:09 +03:00
Azat Khuzhin
8a78cffe5c
Force table creation on SYSTEM FLUSH LOGS
2020-06-09 21:11:08 +03:00
alesapin
4c77ba664a
Better assignment
2020-06-09 20:42:04 +03:00
alesapin
d2fcf5aea5
Fixes for gcc
2020-06-09 20:28:29 +03:00
alesapin
936cc9d573
Update key
2020-06-09 20:22:03 +03:00
alesapin
4c2e0561f5
Fix primary key update
2020-06-09 20:21:38 +03:00
Alexander Tokmakov
6bb68329f8
Merge branch 'master' into merging_external_source_cassandra
2020-06-09 19:51:14 +03:00
alesapin
6f673b0981
Fix comments bug
2020-06-09 19:33:28 +03:00
Nikolai Kochetov
595fc9eff6
Merge pull request #11440 from ClickHouse/add-remote-source
...
Add remote source
2020-06-09 19:27:28 +03:00
Nikolai Kochetov
5cc2f318c9
Merge pull request #11495 from vzakaznikov/live_view_support_for_prewhere
...
Adding support for PREWHERE in live view tables.
2020-06-09 19:09:17 +03:00
Ivan Blinkov
6f7064928f
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-09 19:07:57 +03:00
alesapin
f7a397242f
Merge branch 'master' into consistent_metadata4
2020-06-09 18:59:59 +03:00
Pavel Kovalenko
f623ef635b
Avoid copying whole response stream into memory in S3 HTTP client.
2020-06-09 18:26:51 +03:00
alesapin
a6feb81af1
Fix under msan
2020-06-09 18:11:11 +03:00
alesapin
981462db04
Remove dump flag from ReadBufferAIO
2020-06-09 18:01:34 +03:00
Alexander Kuzmenkov
dd41f6a574
Merge pull request #11527 from azat/dist-insert-local-fix
...
Fix async INSERT into Distributed for prefer_localhost_replica=0 and w/o internal_replication
2020-06-09 15:21:05 +03:00
Ivan
47ad338cb2
Refactor CMake build files ( #11390 )
...
* Get rid of lib_name.cmake
* Refactor Boost and HyperScan libraries
* Refactor lz4
* Fix build with xxHash
2020-06-09 13:54:49 +03:00
Ivan Blinkov
5b3fef526e
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sentry
2020-06-09 11:51:29 +03:00
alexey-milovidov
44b20eee96
Revert "S3 HTTP client - Avoid copying response stream into memory"
2020-06-09 10:23:35 +03:00
Ilya Yatsishin
822c19ddad
Merge pull request #11537 from ClickHouse/usability-exception-message-parse-columns-declaration-list
...
Better exception message when cannot parse columns declaration list
2020-06-09 09:55:40 +03:00
hexiaoting
75075a7b2b
Add DISTINCT keyword when show clusters
2020-06-09 10:39:37 +08:00
alesapin
223f45685f
Review fixes
2020-06-09 05:03:22 +03:00
Pavel Kovalenko
c3d0b35195
Fix includes in S3Common.cpp
2020-06-09 05:03:22 +03:00
Pavel Kovalenko
74ea867b1d
Fix includes in S3Common.cpp
2020-06-09 05:03:22 +03:00
Pavel Kovalenko
8b8beb26d3
S3 Poco HTTP Client (do not copy response stream body into memory).
2020-06-09 05:03:22 +03:00
Alexey Milovidov
decac918a2
Fix error
2020-06-09 05:03:22 +03:00
alesapin
de59629b38
Fix benign race condition during shutdown
2020-06-09 04:48:30 +03:00
Alexey Milovidov
63f2d92eff
Better exception message when cannot parse columns declaration list #10403
2020-06-09 01:49:19 +03:00
Alexey Milovidov
ef7b054443
Speed up merging in AggregatingMergeTree
2020-06-09 00:53:32 +03:00
Azat Khuzhin
c35f5e9271
Fix shard_num/replica_num for <node> (breaks use_compact_format_in_distributed_parts_names)
...
In system.clusters it was 1/1 while in address into it was 0/0
2020-06-08 22:30:13 +03:00
Azat Khuzhin
d2383f0f5d
Fix async INSERT into Distributed for prefer_localhost_replica=0 and w/o internal_replication
2020-06-08 21:58:56 +03:00
alesapin
0d375e4522
Fix constraints
2020-06-08 21:49:54 +03:00
alesapin
a5a9048109
At least fixed gcc-9 build
2020-06-08 21:23:26 +03:00
alesapin
7b63a88120
Remove redundant error code
2020-06-08 18:19:41 +03:00
alesapin
d625162fce
Better comment
2020-06-08 17:23:32 +03:00
alesapin
37a1d128c9
Better
2020-06-08 17:22:11 +03:00
alesapin
a30b72a128
Less debug
2020-06-08 17:21:12 +03:00
alesapin
2354939994
Remove log debug
2020-06-08 17:19:20 +03:00
alesapin
638cd50ce4
Fix several bugs
2020-06-08 17:18:38 +03:00
MovElb
ef5d03a273
fix build
2020-06-08 16:49:10 +03:00
alesapin
2226f79f16
Fix some bugs
2020-06-08 15:57:25 +03:00
Alexey Milovidov
138f3253ba
Fix gcc build
2020-06-08 15:33:00 +03:00