Commit Graph

10530 Commits

Author SHA1 Message Date
Smita Kulkarni
94ff9a4696 Merge branch 'master' into Fix_parameterized_view_with_cte_multiple_usage 2023-07-25 12:08:38 +02:00
Yarik Briukhovetskyi
5f767b0dfa
Merge pull request #52004 from JackyWoo/rewrite_uniq_to_count
Rewrite uniq to count
2023-07-25 11:41:00 +02:00
Alexey Milovidov
21382afa2b Check for punctuation 2023-07-25 06:10:04 +02:00
Dmitry Kardymon
d4d381de7e Merge remote-tracking branch 'origin/master' into ADQM-940 2023-07-24 20:04:10 +00:00
Alexey Milovidov
3c034d563b
Merge pull request #52068 from azat/replicated-cluster-prep1
Preparations for Trivial Support For Resharding (part1)
2023-07-24 22:57:44 +03:00
Igor Nikonov
91f7185e8c
Merge branch 'master' into remove-perf-test-duplicate-order-by-and-distinct 2023-07-24 18:47:23 +02:00
Robert Schulze
c755fde3a4
Include query cache usage in SYSTEM.QUERY_LOG 2023-07-24 16:24:36 +00:00
Alexander Tokmakov
faca49a905 Merge branch 'master' into add_delay_for_replicated 2023-07-24 16:07:38 +02:00
Nikita Taranov
df5ff1383c
Fix settings not applied for explain query when format provided (#51859) 2023-07-24 14:57:05 +02:00
Anton Popov
347f442f84 Merge remote-tracking branch 'upstream/master' into HEAD 2023-07-24 10:55:31 +00:00
Dmitry Kardymon
62f9a953fe Merge remote-tracking branch 'origin/master' into ADQM-940 2023-07-24 04:52:12 +00:00
Azat Khuzhin
323128df6f Remove non existing ctor of Cluster::Address
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-24 05:50:44 +02:00
Azat Khuzhin
83c0f03b98 Change signature of the updateSettingsForCluster() to avoid cluster requirement
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-24 05:50:44 +02:00
Azat Khuzhin
b222476090 Add ability to pass table for connections checks per-shard to ReadFromRemote
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-24 05:50:44 +02:00
Azat Khuzhin
a0070eda02 Slightly optimize code in ClusterProxy::executeQuery()
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-24 05:50:44 +02:00
Azat Khuzhin
d7f7f16fbc Introduce IStorage::supportsTrivialCountOptimization()
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-07-24 05:50:44 +02:00
JackyWoo
ab3376a998
Merge branch 'master' into rewrite_uniq_to_count 2023-07-24 11:04:36 +08:00
Alexey Milovidov
ffc3028438
Merge pull request #52146 from ClickHouse/more-changes
Fix ORDER BY tuple of WINDOW functions (and slightly more changes)
2023-07-24 03:00:35 +03:00
Alexey Milovidov
5c2eb2d749
Merge pull request #52438 from ClickHouse/fix_remove_redundant_distinct_with_view
Fix: remove redundant distinct with views
2023-07-23 21:16:49 +03:00
SmitaRKulkarni
74e7ff9628
Merge branch 'master' into azure_blob_storage_sas_token 2023-07-23 18:21:06 +02:00
Kseniia Sumarokova
b6ef57d32e
Merge pull request #52378 from kgoralski/filesystemCacheSizeLimitMetric
New metric - Filesystem cache size limit
2023-07-23 18:12:11 +02:00
Alexey Milovidov
13ca31edd4
Merge pull request #52418 from ClickHouse/kssenii-patch-8
Fix flaky gtest_lru_file_cache.cpp
2023-07-23 19:02:58 +03:00
Alexey Milovidov
43bd6d1b83
Revert "Add an ability to specify allocations size for sampling memory profiler" 2023-07-23 19:00:49 +03:00
Vasily Nemkov
9bd8bdca98
Better error message in case of empty database name 2023-07-23 01:14:26 +02:00
alesapin
d1fa105d60
Merge branch 'master' into add_delay_for_replicated 2023-07-23 00:12:29 +02:00
Vasily Nemkov
12065d94c5
Update comment DatabaseCatalog.cpp 2023-07-22 23:59:02 +02:00
Vasily Nemkov
dc7c663962
Update comment in DatabaseCatalog.cpp 2023-07-22 23:44:11 +02:00
robot-ch-test-poll3
c9eb144e15
Merge pull request #50826 from ucasfl/is_obsolete
Add a column is_obsolete to system.settings and similar tables
2023-07-22 22:43:11 +02:00
Igor Nikonov
82adef03ab Merge remote-tracking branch 'origin/master' into fix_remove_redundant_distinct_with_view 2023-07-22 18:10:24 +00:00
alesapin
835c36cbf3
Merge pull request #52419 from ClickHouse/implement_borders_for_sampling_memory_profiler
Add an ability to specify allocations size for sampling memory profiler
2023-07-22 18:13:26 +02:00
Alexey Milovidov
9e25c60b69
Merge branch 'master' into more-changes 2023-07-22 18:36:31 +03:00
Alexey Milovidov
04462333d2
Merge pull request #52327 from amosbird/fix_50183
Add back missing projection QueryAccessInfo.
2023-07-22 17:50:03 +03:00
Kseniia Sumarokova
6f71adcca2
Merge branch 'master' into filesystemCacheSizeLimitMetric 2023-07-22 14:47:50 +02:00
Kseniia Sumarokova
e26dc1e494
Merge pull request #52435 from Algunenano/filecache_syscalls
Reduce the number of syscalls in FileCache::loadMetadata
2023-07-22 14:47:02 +02:00
alesapin
6416fb6eed
Merge branch 'master' into add_delay_for_replicated 2023-07-22 12:11:39 +02:00
Kseniia Sumarokova
5ca6c97832
Update gtest_lru_file_cache.cpp 2023-07-22 12:03:20 +02:00
vdimir
b98dce16e2
Merge pull request #52187 from canhld94/range_dict_no_direct_join 2023-07-22 10:48:24 +02:00
Alexey Milovidov
9dc988981e
Merge branch 'master' into is_obsolete 2023-07-22 04:59:26 +03:00
Alexey Milovidov
2d89dba8d1
Merge pull request #51796 from rschu1ze/show-index-better-mysql-compat
Improve MySQL compatibility of statement `SHOW INDEX`
2023-07-22 01:22:47 +03:00
Vasily Nemkov
5ec63c782c Fixed inserting into Buffer engine
by not throwing exception from DatabaseCatalog::tryGetTable() when database name is empty
2023-07-22 00:17:57 +02:00
Igor Nikonov
687cbc57bb Fix typo 2023-07-21 22:15:02 +00:00
robot-ch-test-poll2
69b897d726
Merge pull request #52113 from arenadata/ADQM-996
Collect logs for the system.text_log table even before it is initialized, to record the server startup
2023-07-22 00:01:45 +02:00
Igor Nikonov
6c8d5ca0a5 Fix: remove redundant distinct with views 2023-07-21 21:33:51 +00:00
Igor Nikonov
8c8e097b72
Merge pull request #51013 from bigo-sg/grace_hash_join_full_right_202306
Grace hash join support full & right join
2023-07-21 22:22:06 +02:00
Nikolai Kochetov
01cb502af3
Merge pull request #52151 from amosbird/fix_52075
Fix incorrect projection analysis when aggregation expression contains monotonic functions
2023-07-21 18:30:27 +02:00
Raúl Marín
3acb6005f0 Reduce the number of syscalls in FileCache::loadMetadata 2023-07-21 17:08:01 +02:00
kssenii
2b02148e6f Fix unit test 2023-07-21 16:24:55 +02:00
Antonio Andelic
6ed97a944f
Merge pull request #49450 from myrrc/feature/keeper-dyn-reconf
`reconfig` support for CH Keeper
2023-07-21 15:59:25 +02:00
Yarik Briukhovetskyi
e7b9b42326
Merge branch 'master' into rewrite_uniq_to_count 2023-07-21 15:30:03 +02:00
Alexander Sapin
4695ec6802 Add an ability to specify allocations size for sampling memory profiler 2023-07-21 14:56:29 +02:00
Kseniia Sumarokova
8ec8388a9e
Update gtest_lru_file_cache.cpp 2023-07-21 14:53:02 +02:00
robot-clickhouse-ci-2
0db9c79886
Merge pull request #52332 from rschu1ze/better-formatsettings
Minor: Less awkward IAST::FormatSettings
2023-07-21 14:49:58 +02:00
Kseniia Sumarokova
97c1b9d2cf
Merge branch 'master' into kssenii-patch-6 2023-07-21 13:56:28 +02:00
Antonio Andelic
10c2d5dade
Merge branch 'master' into feature/keeper-dyn-reconf 2023-07-21 13:24:18 +02:00
Kseniia Sumarokova
e638a9ecd3
Fix style check 2023-07-21 12:24:36 +02:00
Krzysztof Góralski
3412dd2259
removed unnecessary whitespace 2023-07-21 12:14:30 +02:00
Krzysztof Góralski
930d45303c
removing the metric set from LRUFileCachePriority.cpp 2023-07-21 12:13:38 +02:00
Krzysztof Góralski
5fa45bdbea
Setting the metric FilesystemCacheSizeLimit in LRUFileCachePriority.h 2023-07-21 12:12:34 +02:00
Amos Bird
8187118232
Better code 2023-07-21 16:47:23 +08:00
Amos Bird
53d77e6b13
Add back missing projection QueryAccessInfo. 2023-07-21 16:47:22 +08:00
Amos Bird
ec22337284
Fix index analysis with indexHint as well 2023-07-21 14:54:50 +08:00
SmitaRKulkarni
4854487ef7
Merge branch 'master' into Fix_parameterized_view_with_cte_multiple_usage 2023-07-21 08:29:27 +02:00
Dmitry Kardymon
5124f74fcc Merge remote-tracking branch 'origin/master' into ADQM-996 2023-07-21 05:54:36 +00:00
Duc Canh Le
1ae6621f56
Merge branch 'master' into range_dict_no_direct_join 2023-07-21 09:25:42 +08:00
Krzysztof Góralski
ed59870f92
Update LRUFileCachePriority.cpp 2023-07-20 18:04:58 +02:00
Nikita Mikhaylov
668062dc29
Merge branch 'master' into no-keep-context-lock-while-calculating-access 2023-07-20 14:42:13 +02:00
Nikita Mikhaylov
b14277773f
Merge pull request #52260 from ClickHouse/fix-s2
Better detecting of invalid S2 geo primitives
2023-07-20 14:25:44 +02:00
Alexander Tokmakov
f53ff5d4f2
more fair queue for drop table sync (#52276) 2023-07-20 14:51:01 +03:00
János Benjamin Antal
e74acda53e
PRQL integration (#50686)
* Added prql-lib

* Add PRQL parser

* Extend stateless tests

* Add unit tests for `ParserPRQL`

---------

Co-authored-by: Ubuntu <ubuntu@ip-172-31-37-24.eu-central-1.compute.internal>
Co-authored-by: Ubuntu <ubuntu@ip-10-10-10-195.eu-central-1.compute.internal>
Co-authored-by: Александр Нам <47687537+seshWCS@users.noreply.github.com>
2023-07-20 12:54:42 +02:00
Robert Schulze
bd761c365a
Make serializeAST() more regular 2023-07-20 10:39:26 +00:00
lgbo-ustc
91dc6a35e1 update 2023-07-20 18:22:01 +08:00
lgbo-ustc
0ba97eeea5 wip: grace hash join support full & right join 2023-07-20 18:22:01 +08:00
Robert Schulze
9933589c56
Merge pull request #52312 from rschu1ze/beautify-system-query-cache
Beautify pretty-printing of the query string in SYSTEM.QUERY_CACHE
2023-07-20 12:20:04 +02:00
Dmitry Kardymon
ff235e0f30 Turn off log in queue, fix data race 2023-07-20 05:41:39 +00:00
Igor Nikonov
5052b257d3 Merge remote-tracking branch 'origin/master' into remove-perf-test-duplicate-order-by-and-distinct 2023-07-19 19:37:39 +00:00
robot-ch-test-poll
0e46565968
Merge pull request #51633 from ClickHouse/vdimir/asof_join_no_syntax_pushdown
Do not apply PredicateExpressionsOptimizer for ASOF/ANTI join
2023-07-19 20:12:52 +02:00
Han Fei
6bbdf702ae
Merge branch 'master' into hanfei/support-insert-token 2023-07-19 17:05:12 +02:00
Smita Kulkarni
53500be941 Updated fix of multiple usage in parameterized view to support cte by not adding column which is previously added 2023-07-19 17:03:00 +02:00
Nikita Mikhaylov
4a3f5234af
Merge pull request #51038 from evillique/headers-blacklist
Add HTTP header filtering
2023-07-19 15:49:12 +02:00
Nikita Mikhaylov
c8351b15c6
Merge branch 'master' into fix-s2 2023-07-19 15:44:13 +02:00
Robert Schulze
bdaf82922a
Use formatAST() 2023-07-19 12:56:15 +00:00
Robert Schulze
3eb23d899f
Merge remote-tracking branch 'rschu1ze/master' into beautify-system-query-cache 2023-07-19 12:55:09 +00:00
alesapin
45a7134478
Merge branch 'master' into feature/keeper-dyn-reconf 2023-07-19 14:04:59 +02:00
Robert Schulze
f22452c78c
Beautify pretty-printing of the query string in SYSTEM.QUERY_CACHE.
Output of SYSTEM.QUERY_CACHE

- before this PR:

    SELECT * FROM system.query_cache

    Query id: 4989008b-b84c-4e57-bfe5-7fb551814812

    Row 1:
    ──────
    query:   	   SELECT 1 SETTINGS
    [...]

- after this PR:

    SELECT * FROM system.query_cache

    Query id: 4989008b-b84c-4e57-bfe5-7fb551814812

    Row 1:
    ──────
    query:   	   SELECT 1 SETTINGS use_query_cache = 1
    [...]
2023-07-19 09:10:26 +00:00
Dmitry Kardymon
aa888ad64a Separate thread mutex, add test 2023-07-19 08:46:57 +00:00
Han Fei
e8be6ec23f
Merge branch 'master' into hanfei/support-insert-token 2023-07-19 10:06:03 +02:00
JackyWoo
71c12bbdc4
Merge branch 'master' into rewrite_uniq_to_count 2023-07-19 15:54:23 +08:00
Dmitry Kardymon
65de310137 Return back SystemLogBase 2023-07-19 06:15:57 +00:00
Alexey Milovidov
5a89e03125
Merge branch 'master' into more-changes 2023-07-18 23:15:27 +03:00
Dmitry Kardymon
9b951e965b Restore define 2023-07-18 19:48:43 +00:00
Alexey Milovidov
482c8b5cde
Merge pull request #52158 from ClickHouse/fix-unexpected-ast-set
Fix unexpected AST Set
2023-07-18 22:17:51 +03:00
Dmitry Kardymon
68a501a14e Merge remote-tracking branch 'origin/master' into ADQM-940 2023-07-18 18:16:09 +00:00
Dmitry Kardymon
9d0391e6fb Add ifndef to fix build 2023-07-18 18:13:57 +00:00
Dmitry Kardymon
f091baaa0f Remove whitespaces 2023-07-18 14:33:26 +00:00
Igor Nikonov
90e393ecf6 Merge remote-tracking branch 'origin/master' into remove-perf-test-duplicate-order-by-and-distinct 2023-07-18 14:26:22 +00:00
Nikita Mikhaylov
a06631f0db Better detecting invalid figures 2023-07-18 16:26:10 +02:00
Dmitry Kardymon
7466ef5837 Add index 2023-07-18 13:05:20 +00:00
Ilya Yatsishin
73246b4788
Merge pull request #52056 from ClickHouse/ignore-create-index-query
Allow to ignore CREATE INDEX query for better SQL syntax compatibility
2023-07-18 14:40:38 +02:00
Dmitry Kardymon
6b00a38aa4 Remove SystemLogBase (wip) 2023-07-18 10:06:44 +00:00
Duc Canh Le
9b7df9e12e fix for analyzer 2023-07-18 05:51:55 +00:00