Alexander Kuzmenkov
a77415781f
reserve the result columns in advance
2021-02-11 19:48:27 +03:00
Alexander Kuzmenkov
62b3bf7b57
some tests and speedup
2021-02-11 19:20:57 +03:00
Maksim Kita
369dc613c4
Decimal binary operation constants fix
2021-02-11 19:05:17 +03:00
Alexander Kuzmenkov
a2943fd196
cleanpu
2021-02-11 18:47:52 +03:00
Alexander Kuzmenkov
d8f9a8d3cd
first_value and last_value
2021-02-11 18:41:54 +03:00
Ivan
0854dccfde
Fix ANTLR parser tests
2021-02-11 18:21:21 +03:00
Alexander Kuzmenkov
ecbcf47f28
lag/lead stubs + cleanup
2021-02-11 18:07:42 +03:00
Alexander Kuzmenkov
772073a0db
Update WindowTransform.cpp
2021-02-11 17:01:09 +03:00
alexey-milovidov
263d751d64
Merge pull request #20169 from ClickHouse/no-excessive-squash-memory
...
Disable excessive squashing of blocks for StorageMemory #13052
2021-02-11 16:38:24 +03:00
Alexander Kuzmenkov
525400bc41
window function rank() and friends
2021-02-11 16:29:30 +03:00
alesapin
447fcfa1c9
Fix build
2021-02-11 15:12:01 +03:00
alesapin
3253638969
Fix backoff for failed background tasks in replicated merge tree
2021-02-11 14:46:18 +03:00
alesapin
99a471e047
Add ability to start as follower
2021-02-11 13:25:10 +03:00
alesapin
0acd018361
Fix typo
2021-02-11 12:58:02 +03:00
alesapin
74630acff5
More debug in test
2021-02-11 12:49:49 +03:00
tavplubix
17af32a59b
Merge pull request #20215 from azat/dist-lockless-SYSTEM-FLUSH-DISTRIBUTED
...
Lockless SYSTEM FLUSH DISTRIBUTED
2021-02-11 12:30:46 +03:00
alesapin
b49b7f859d
Simplify startup with fixed config
2021-02-11 12:17:57 +03:00
Alexander Kuzmenkov
363007b964
fixes
2021-02-11 11:39:39 +03:00
alesapin
d88f7bc0c8
Merge pull request #20224 from ClickHouse/fix_config_reloader_destruction
...
Fix access control manager destruction order
2021-02-11 11:18:00 +03:00
alesapin
56453256b7
Merge pull request #20300 from ClickHouse/restrict_to_drop_version_column
...
Don't allow to drop or rename version column
2021-02-11 11:04:00 +03:00
alesapin
121c5c9605
Merge pull request #20279 from ClickHouse/relax_check_in_data_writer
...
Relax check in data writer for non adaptive tables
2021-02-11 10:57:07 +03:00
alesapin
c2bb2c2902
Merge pull request #20097 from ClickHouse/remove-adding-missed-step
...
Build actions dag to evaluate missing defaults.
2021-02-11 10:51:21 +03:00
Alexander Kuzmenkov
467ff74814
Merge remote-tracking branch 'origin/master' into HEAD
2021-02-11 10:42:39 +03:00
Alexander Kuzmenkov
38678ff484
Merge remote-tracking branch 'origin/master' into HEAD
2021-02-11 10:40:05 +03:00
Alexander Kuzmenkov
2571dac984
Merge pull request #20111 from ClickHouse/aku/window-prototype
...
RANGE OFFSET window frame
2021-02-11 10:39:21 +03:00
Vladimir Ch
73a0e2961b
Merge pull request #20175 from amosbird/countrewrite
2021-02-11 09:38:12 +03:00
Alexey Milovidov
dbb41ce4e2
Remove debug output
2021-02-11 02:55:52 +03:00
Alexey Milovidov
f442b30f30
Fix test
2021-02-11 01:23:27 +03:00
alexey-milovidov
e33477a16e
Merge pull request #20282 from ClickHouse/dont_allow_ttl_for_old_syntax
...
Don't allow TTL in old syntax
2021-02-11 00:46:30 +03:00
Azat Khuzhin
6b82e8ad19
Mark ignore() as not suitable for constant folding
2021-02-11 00:39:03 +03:00
Azat Khuzhin
53ea58810e
Do not allow constant folding of explicitly forbidden functions
2021-02-11 00:38:47 +03:00
Alexey Milovidov
d3dba0e52a
Merge branch 'master' into no-excessive-squash-memory
2021-02-10 23:45:12 +03:00
Azat Khuzhin
809fa7e4cc
Sync SYSTEM FLUSH DISTRIBUTED with TRUNCATE
2021-02-10 23:10:37 +03:00
Anton Popov
365e2fb746
Merge pull request #20231 from fuwhu/refine-loadDataParts-code
...
refine code in MergeTreeData::loadDataParts to avoid parsing WAL file as data part
2021-02-10 22:42:31 +03:00
alesapin
6f837b41e3
Update inplaceBlockConversions.h
2021-02-10 22:32:34 +03:00
Azat Khuzhin
5001b19613
Accept arbitrary numeric types for numbers() arguments (for scientific notation)
...
This is to make the syntax simpler, i.e. avoid explicit cast to UInt64
if you want to use scientific notation (i.e. 1e9 over 1 000 000 000).
v2: use plain evaluateConstantExpression() over
evaluateConstantExpressionOrIdentifierAsLiteral() since identifier will
not work anyway
2021-02-10 22:32:32 +03:00
alesapin
891fce3275
Don't allow to drop or rename version column
2021-02-10 22:23:48 +03:00
Alexander Kuzmenkov
695e3a797a
some optimizations
2021-02-10 21:55:11 +03:00
Azat Khuzhin
935870b2c2
Add separate config directive for Buffer profile
...
If you push data via Buffer engine then all your queries will be done
from one user, however this is not always desired behavior, since this
will not allow to limit queries with max_concurrent_queries_for_user and
similar.
2021-02-10 21:40:26 +03:00
Alexey Milovidov
30b2554fa3
Fix error
2021-02-10 20:48:39 +03:00
Anton Popov
ece7e87cfb
Merge pull request #20079 from ClickHouse/vdimir/fix-join-used-flag
...
Split use flags and RowRef in HashJoin
2021-02-10 20:34:22 +03:00
Maksim Kita
86ff45c50e
Aggregate function deltaSum use restrict keyword
2021-02-10 19:19:48 +03:00
Nikita Mikhailov
47f62e899b
style
2021-02-10 17:52:28 +03:00
Nikita Mikhailov
6c9f5e4991
try
2021-02-10 17:16:27 +03:00
Alexander Kuzmenkov
e557d60cdb
fixes for sort order
2021-02-10 16:27:22 +03:00
alesapin
b4d53886a3
Add sync request/response
2021-02-10 16:01:05 +03:00
Nikolai Kochetov
af214e794f
Review fixes.
2021-02-10 15:45:39 +03:00
Alexander Kuzmenkov
d5b0f30732
cache the block size in the block itself for some speedup
2021-02-10 15:44:07 +03:00
Alexander Kuzmenkov
b57b3244f5
reuse sort order
2021-02-10 15:44:07 +03:00
Alexander Kuzmenkov
a67a54e2a5
cleanup
2021-02-10 15:44:07 +03:00
alesapin
a63d73db58
Don't allow TTL in old syntax
2021-02-10 15:09:12 +03:00
alesapin
e07bdad5c0
Fix test build
2021-02-10 14:44:21 +03:00
alesapin
420f2958e2
Merge pull request #19991 from ClickHouse/constant-propagation-fix
...
Do not use inputs which values are known constants in ActionsDAG.
2021-02-10 14:13:52 +03:00
alesapin
21faea1f68
Relax check in data writer for non adaptive tables
2021-02-10 13:43:31 +03:00
Maksim Kita
85396fc82e
Merge pull request #20057 from rf/rf/add-deltasum
...
Add `deltaSum` aggregate function, docs & test
2021-02-10 13:28:48 +03:00
alesapin
0d179e021b
Add sync cmd
2021-02-10 13:15:42 +03:00
alesapin
57d8d81d59
Fix style
2021-02-10 13:02:09 +03:00
alesapin
9179fc8d96
Merge pull request #20226 from ClickHouse/fix_race_in_system_parts
...
Fix benign race in system.parts
2021-02-10 12:45:51 +03:00
alesapin
c95140d906
Better startup and non-verbose logging by default
2021-02-10 12:28:53 +03:00
Nikolai Kochetov
253c72afc4
Merge pull request #20251 from ClickHouse/fix-20242
...
Fix not closed ports in DelayedPortsProcessor
2021-02-10 12:28:28 +03:00
vdimir
d9afee55ba
Add RewriteCountVariantsVisitor.cpp to ya.make
2021-02-10 12:48:41 +08:00
Amos Bird
fc6c57f8e0
Fix
2021-02-10 12:48:41 +08:00
Amos Bird
565a148da9
Normalize count() variants
2021-02-10 12:48:41 +08:00
Amos Bird
afb5846a24
refactor
2021-02-10 11:22:24 +08:00
HuFuwang
4ac8860cea
refine code in MergeTreeData::loadDataParts to avoid parsing WAL file as data part.
2021-02-10 10:13:43 +08:00
alexey-milovidov
4ff3a28a9f
Merge pull request #20211 from amosbird/fixcte2
...
Fix CTE in INSERT-SELECT
2021-02-10 02:12:05 +03:00
alexey-milovidov
21b1a3fc6d
Merge pull request #20246 from ucasFL/avg-optimize
...
fix a problem in ArithmeticOperationsInAgrFuncOptimize
2021-02-10 02:10:15 +03:00
alexey-milovidov
ec9808bf63
Merge pull request #20228 from ClickHouse/add_some_final_specifiers
...
Add final to some classes
2021-02-09 23:37:47 +03:00
Russ Frank
6b80ae6c4f
style fixes
2021-02-09 15:01:57 -05:00
Nikolai Kochetov
8ba9576ed9
Added comment.
2021-02-09 22:52:48 +03:00
Nikolai Kochetov
27d607a955
Respect header in addMissingDefaults
2021-02-09 22:48:34 +03:00
alesapin
51c221f993
Fix outdated session kill
2021-02-09 21:29:06 +03:00
Vladimir Ch
a8acaafd56
Merge pull request #20223 from vdimir/fix-array-join-missing-arg
...
Handle syntax error for ARRAY JOIN with no args
2021-02-09 20:13:09 +03:00
alesapin
9d414d215e
Merge branch 'master' into in_memory_raft
2021-02-09 20:00:50 +03:00
Alexander Kuzmenkov
a2a0d385c5
style
2021-02-09 19:50:39 +03:00
Nikolai Kochetov
db09d5a990
Fix not closed ports in DelayedPortsProcessor
2021-02-09 19:35:46 +03:00
Vitaly Baranov
9de7a0a779
Add comment
2021-02-09 18:55:36 +03:00
alesapin
c78f3ba204
Missed file
2021-02-09 18:39:15 +03:00
Alexander Kuzmenkov
8212976dc0
add boundary order check
2021-02-09 18:36:08 +03:00
Maksim Kita
a2560cecf4
Merge branch 'master' into fuse
2021-02-09 18:30:18 +03:00
alesapin
b130fbfd78
Add coordination settings
2021-02-09 17:47:18 +03:00
Alexander Kuzmenkov
c18749a704
fix a bug and add some tests
2021-02-09 17:44:04 +03:00
feng lv
5e0095c70b
fix a problem in ArithmeticOperationsInAgrFuncOptimize
2021-02-09 14:17:48 +00:00
alexey-milovidov
faf28eeff3
Merge pull request #20183 from ucasFL/avg-optimize
...
rewrite avg for algebraic optimization
2021-02-09 16:36:13 +03:00
alesapin
9667bdcbd2
Merge branch 'master' into in_memory_raft
2021-02-09 16:06:31 +03:00
Alexander Kuzmenkov
6e40b9fb6c
fix for the DESC frame
2021-02-09 14:56:58 +03:00
Alexander Kuzmenkov
fe8b414a69
cleanup
2021-02-09 14:56:58 +03:00
tavplubix
86530e603c
Merge pull request #20027 from bharatnc/ncb/event_time_micro_part_log
...
add event_time_microseconds field to system.part_log table
2021-02-09 14:46:40 +03:00
Alexander Tokmakov
4859657c42
fix int field to decimal conversion
2021-02-09 13:21:54 +03:00
hexiaoting
28b981a76b
Fix style error and test cases error
2021-02-09 18:08:55 +08:00
alesapin
cb1194d37a
Add final to some classes
2021-02-09 12:05:54 +03:00
alesapin
8da9f150de
Fix race in system.parts
2021-02-09 11:51:17 +03:00
Nikolai Kochetov
798ffdc719
Fix build.
2021-02-09 11:37:55 +03:00
Nikolai Kochetov
229acbad5d
Merge pull request #20077 from ClickHouse/remove-adding-const-column-transform
...
Remove AddingConstColumn step and transform.
2021-02-09 11:28:44 +03:00
alesapin
accf48a21b
Merge pull request #20212 from nvartolomei/codespace-4851
...
Remove dead code
2021-02-09 11:27:27 +03:00
alesapin
15ce3dc112
Fix access control manager destruction order
2021-02-09 11:24:39 +03:00
vdimir
241769ee7c
Handle syntax error for ARRAY JOIN with no args
2021-02-09 11:21:26 +03:00
Russ Frank
2cde36a155
dont allow col type to be decimal
2021-02-08 22:53:45 -05:00
Russ Frank
b297e0ef36
feedback: use references, dont support decimal, rearrange struct members
2021-02-08 22:51:03 -05:00
Amos Bird
8911a038a0
Another fix
2021-02-09 11:46:06 +08:00
Russ Frank
746dc1ddae
Merge remote-tracking branch 'origin/master' into rf/add-deltasum
2021-02-08 15:35:16 -05:00
alexey-milovidov
38c7ad3c38
Merge pull request #20204 from amosbird/fixubs
...
Fix ubsan error
2021-02-08 23:19:16 +03:00
alesapin
b8baf3a443
Fix some warnings
2021-02-08 22:40:44 +03:00
tavplubix
ac477d9850
Merge pull request #19771 from ClickHouse/thread_state_improvements
...
Minor code improvements around ThreadStatus
2021-02-08 22:34:55 +03:00
Nikolai Kochetov
e0a806c180
Delete filterPushDown.cpp
2021-02-08 22:10:27 +03:00
Azat Khuzhin
ce91c257b2
Lockless SYSTEM FLUSH DISTRIBUTED
...
Right now SYSTEM FLUSH DISTRIBUTED will block:
- INSERT into this Distributed table (requireDirectoryMonitor())
- SELECT * FROM system.distribution_queue
2021-02-08 22:07:30 +03:00
Maksim Kita
ebf5868652
Merge pull request #20164 from kitaisreal/cache-dictionaries-lru-cache
...
Added LRUHashMap
2021-02-08 21:00:27 +03:00
Nicolae Vartolomei
c336cac306
Remove dead code
2021-02-08 17:36:58 +00:00
Nicolae Vartolomei
a8f37e7704
Remove dead code
2021-02-08 17:19:35 +00:00
Amos Bird
46f2b4063f
Fix CTE in INSERT-SELECT
2021-02-09 00:25:24 +08:00
Ivan Lezhankin
a287443438
Merge remote-tracking branch 'upstream/master' into dwarf-folly
2021-02-08 18:36:41 +03:00
bharatnc
60c8dfa22c
PartLog - populate event_time_microseconds for MergeParts
2021-02-08 07:25:44 -08:00
bharatnc
cb65515dc7
PartLog - fix style checks
2021-02-08 07:25:44 -08:00
bharatnc
46c843b004
PartLog - fix formatting
2021-02-08 07:25:44 -08:00
bharatnc
aa7f5cfe79
PartLog - use ColumnsWithTypeAndName for all columns
2021-02-08 07:25:44 -08:00
bharatnc
19cf5ca6c0
PartLog - try fix event_time_microseconds column
2021-02-08 07:25:44 -08:00
bharatnc
f1d2804bb0
PartLog - populate event_time s & us from same timespec
2021-02-08 07:25:44 -08:00
bharatnc
c98baf3496
PartLog - add field event_time_microseconds column
2021-02-08 07:25:44 -08:00
alesapin
f2feeb9b19
Missing fix
2021-02-08 18:20:12 +03:00
Nikolai Kochetov
4840d663e6
Merge pull request #20035 from ClickHouse/early-stop-for-delayed-ports-processor
...
Close input ports in DelayedPortsProcessor as soon as all outputs are finished
2021-02-08 18:18:11 +03:00
alesapin
d57613aa18
Fix 0_o build in arcadia
2021-02-08 16:50:03 +03:00
templarzq
7e3186c826
optimize aggfunc column data copy ( #19407 )
...
* optimize agg column data copy
* add aggfunc col data copy test
* fix null warning
* fix style
* fix style
* fix style
* fix style
* fix copy same dat to same pos bug
* fix style
* fix style
* Update ColumnAggregateFunction.cpp
fix type check
* control record buf size
* fix performance
* fix performance
* fix destroy data speed
* decrease run time.
* fix warning
* decrease test run time
* Update aggfunc_col_data_copy.xml
* replace unordered_map with HashMap
* fix compile err
* fix compile err
* fix compile err
* fix compile err
* fix compile err
* fix compile err
* fix compile err
* fix compile err
* fix compile err
* fix hash map compile err
* fix compile err
* fix compile err
* fix format
* faster test
Co-authored-by: centos7 <templarzq@localhost.localdomain>
2021-02-08 16:18:48 +03:00
Anton Popov
f1beeb7c25
Merge pull request #20099 from azat/remove-not-existing-setting
...
Remove never existing insert_in_memory_parts_timeout
2021-02-08 16:09:03 +03:00
alesapin
add89c17f2
Less serde in responses, watches on followers
2021-02-08 16:06:55 +03:00
lehasm
363aefb42e
DOCSUP-3908: mannWitneyUTest, welchTTest and studentTTest documentation ( #19784 )
...
* studentTTest function description
* welchttest description, links in studentttest
* mannWhitneyUTest description
* Text changed slightly
* Text changed slightly
* Text changed slightly
* Text changed slightly
* - First header is first level.
- sample_index type set to UInt64.
- Return values renamed.
- mannWhitneyUTest:
- added continuity_correction parameter
- optional parameters wrapped in braces [ ]
- description refactored
- example SQL placed on single line
* Improved formulations (hopefully)
General data type names used (Integer, Float, Decimal)
Removed names from return values
* Fixes
* Optional parameters stated explicitly
* New line at the end of files
* Russian function description
* Files moved in the right folder
* Translated 'Original article' to russian
* Typos are fixed
* fixed alowed parameter value: "two sided" -> "two-sided"
* duplicate word "require" is removed from exception messages
* mannWhitneyUTest description changed
Added Tuple link in return values
"samples from two populations" added in short descriptions
* Russian translation updated
* fix
Co-authored-by: Alexey Smirnov <alexey-sm@yandex-team.ru>
2021-02-08 15:58:27 +03:00
Nikolai Kochetov
00d5d28ddf
Fix build.
2021-02-08 15:52:30 +03:00
Nikolai Kochetov
d7fa440356
Merge branch 'master' into remove-adding-const-column-transform
2021-02-08 15:49:23 +03:00
Alexey Milovidov
dc01464764
Merge branch 'master' into no-excessive-squash-memory
2021-02-08 15:39:22 +03:00
alexey-milovidov
e192676238
Merge pull request #19603 from JackyWoo/add_quota_type
...
add quota type QUERY_SELECTS and QUERY_INSERTS
2021-02-08 15:31:54 +03:00
tavplubix
060be5b2db
rerun CI checks
2021-02-08 15:04:40 +03:00
tavplubix
b31891ce2b
Merge pull request #20105 from nicelulu/zookeeper_table_in_query
...
Supports system.zookeeper path IN query.
2021-02-08 15:01:56 +03:00
tavplubix
2daa403201
Update AggregateFunctionGroupArrayMoving.h
2021-02-08 14:59:51 +03:00
Amos Bird
e9001a7dde
Fix ubsan error
2021-02-08 19:41:58 +08:00
Amos Bird
109a392e0c
Fix ubsan
2021-02-08 19:41:16 +08:00
vdimir
776b682f28
Add comment for used_flags in hash join, fix build
2021-02-08 14:38:31 +03:00
Kruglov Pavel
b256bd455c
Merge pull request #19961 from ucasFL/shard-id
...
add setting insert_shard_id
2021-02-08 14:28:13 +03:00
alesapin
786e687b2f
Trying to avoid unlimited wait
2021-02-08 14:01:50 +03:00
Nikolai Kochetov
13b2c2de20
Fixing ya.make
2021-02-08 12:06:14 +03:00
Nikolai Kochetov
bd8f88f464
Fix style
2021-02-08 12:04:19 +03:00
Nikolai Kochetov
77cb68c3e7
Fixing build.
2021-02-08 12:03:04 +03:00
Maksim Kita
7ee1ad6833
Fixed unit tests
2021-02-08 11:44:32 +03:00
alesapin
d5ee7d33e9
Merge branch 'master' into in_memory_raft
2021-02-08 10:30:31 +03:00
hexiaoting
2c278f1e02
Restrict move JOINON to WHERE optimizer only to inner join
2021-02-08 13:44:50 +08:00
Maksim Kita
285d46bc56
Fix gcc build issues
2021-02-07 23:54:14 +03:00
Alexey Milovidov
8118e20eec
Fix some tests
2021-02-07 23:40:30 +03:00
Alexey Milovidov
869bca74a7
Fix some tests
2021-02-07 23:37:55 +03:00
feng lv
6a5a539e98
rewrite avg for algebraic optimization
2021-02-07 14:41:41 +00:00
alexey-milovidov
3b43b0a1be
Merge pull request #20131 from azat/DateTime64-fix
...
DateTime64 fixes
2021-02-07 16:55:28 +03:00
Alexey Milovidov
0145be85df
Do not spill warnings suppressions from ANTLR
2021-02-07 16:50:57 +03:00
Maksim Kita
1201c4c55f
Fixed build issues
2021-02-07 16:45:29 +03:00