Commit Graph

78440 Commits

Author SHA1 Message Date
lgbo-ustc
0c1733817b update LRUCache set() 2021-12-07 10:57:05 +08:00
lgbo-ustc
f083c5594c update config.xml in hive integration test 2021-12-07 09:23:38 +08:00
lgbo-ustc
d4dcbd59fb fixed code style 2021-12-06 19:59:15 +08:00
lgbo-ustc
dd70209623 fixed code style 2021-12-06 18:19:36 +08:00
lgbo-ustc
5913d67553 fixed code style 2021-12-06 16:51:49 +08:00
lgbo-ustc
ddac2a33bd fixed code style 2021-12-06 16:46:13 +08:00
lgbo-ustc
3c56a5deac refector
1. Make the lru cache pilicy in RemoteReadBufferCache into Common/UnreleasableLRUCache.h
2. If try to use local cached file fail, the RemoteReadBuffer::create() return the original ReadBuffer
3. Remove LocalFileReader
4. RemoteCacheController does not hold a context now, and the download process starts in RemoteReadBufferCache
   once a new RemoteCacheController is create successly
5. Make an abstract class RemoteFileMetaDataBase for descripting a remote file meta data.
6. Remote file meta data need to  a version, can cache multi-version for a file now
2021-12-06 16:17:32 +08:00
lgbo-ustc
01940c3f01 coding refinement
1. make remote file meta data be a abstract class
2. make cache controller download process be started by RemoteReadBufferCache
2021-12-06 10:30:59 +08:00
taiyang-li
c678c8101e fix some bugs 2021-12-04 16:41:35 +08:00
taiyang-li
01cac01527 modify permission of RowInputFormatWithNamesAndTypes methods 2021-12-02 20:54:49 +08:00
taiyang-li
e2d1ed1568 fix error 2021-12-02 20:51:19 +08:00
taiyang-li
041e3074df Merge branch 'hive_table' of https://github.com/bigo-sg/ClickHouse into bigo_hive_table 2021-12-02 20:23:39 +08:00
taiyang-li
2f4e7e1d4e merge master 2021-12-02 19:48:21 +08:00
tavplubix
5400c5899d
Merge pull request #32063 from ClickHouse/fix_detach_dir_exists
Fix 'directory exists' error when detaching part
2021-12-02 14:04:21 +03:00
Anton Popov
a79dbb6b6a
Merge pull request #32079 from Avogar/parse-plus-in-float
Allow plus before Float32/Float64
2021-12-02 14:03:48 +03:00
lgbo-ustc
1c9d0b86cc fixed code style 2021-12-02 18:19:15 +08:00
Maksim Kita
2d359a5e79
Merge pull request #32110 from bharatnc/ncb/h3-func-looping
make looping in H3 funcs uniform
2021-12-02 13:15:36 +03:00
lgbo-ustc
c8f536a0a4 Use read/write buffer to read/write files 2021-12-02 18:11:35 +08:00
Maksim Kita
a426ed0a5a
Merge pull request #31800 from kitaisreal/dict-get-with-type-nullable-fix
Function dictGet with type Nullable fix
2021-12-02 12:27:47 +03:00
alesapin
1cda5bfe4e
Merge pull request #32114 from ClickHouse/remove_pvs_from_master
Remove PVS check from master
2021-12-02 11:37:00 +03:00
alesapin
97e7da18bb Remove PVS check from master 2021-12-02 11:36:30 +03:00
Maksim Kita
9874931347
Merge pull request #32095 from FedericoCeratto/patch-2
Fix syntax error: drop comma
2021-12-02 11:20:52 +03:00
taiyang-li
9ec8272186 refactor hive text input format 2021-12-02 16:14:25 +08:00
mergify[bot]
cd4a58c59d
Merge branch 'master' into patch-2 2021-12-02 08:01:05 +00:00
alesapin
d273a8db7c
Merge pull request #32094 from azat/clickhouse-test-longer-db
Increase length of random database in clickhouse-test
2021-12-02 10:58:40 +03:00
alexey-milovidov
b95e96729f
Merge pull request #32036 from azat/fasttest-stripped
Provide clickhouse binary w/o debug symbols (stripped) in fasttest
2021-12-02 09:03:52 +03:00
bharatnc
5614be28ef make looping in H3 funcs uniform
Some of the H3 funcs use `collections::range(0, input_rows_count)`
and some just use simple for loop for iterating over the rows.

In my recent PR reviews, I've been requested to use for loop in favor of
collections in the H3 functions and have been wanting to make the switch
for other functions too to make them uniform

This PR replaces `collections::range` with a simple for loop for this
kind of iteration in the remaining H3 funcs.
2021-12-01 18:14:08 -08:00
Federico Ceratto
04a8730c91
Fix syntax error: drop comma 2021-12-01 20:12:10 +00:00
Azat Khuzhin
cc8ebff212 Increase length of random database in clickhouse-test
In [1] there was one overlap with 6-byte prefix:

    $ pigz -cd clickhouse-server2.log.gz | fgrep  test_8a50uz | fgrep 'CREATE DATABASE' | fgrep comment | cut -d' ' -f7-
    <Debug> executeQuery: (from 0.0.0.0:0, user: ) (comment: 01018_insert_multiple_blocks_with_defaults.sh) /* ddl_entry=query-0000001951 */ CREATE DATABASE test_8a50uz UUID 'bb71f2ea-5ed3-466d-bb71-f2ea5ed3266d' ENGINE = Replicated('/test/clickhouse/db/test_8a50uz', '{shard}', '{replica}')
    <Debug> executeQuery: (from 0.0.0.0:0, user: ) (comment: 00098_k_union_all.sql) /* ddl_entry=query-0000003157 */ CREATE DATABASE test_8a50uz UUID '09cc030b-a4c1-4192-89cc-030ba4c1e192' ENGINE = Replicated('/test/clickhouse/db/test_8a50uz', '{shard}', '{replica}')
    <Error> executeQuery: Code: 82. DB::Exception: Database test_8a50uz already exists. (DATABASE_ALREADY_EXISTS) (version 21.12.1.8932) (from 0.0.0.0:0) (comment: 00098_k_union_all.sql) (in query: /* ddl_entry=query-0000003157 */ CREATE DATABASE test_8a50uz UUID '09cc030b-a4c1-4192-89cc-030ba4c1e192' ENGINE = Replicated('/test/clickhouse/db/test_8a50uz', '{shard}', '{replica}')), Stack trace (when copying this message, always include the lines below):

  [1]: https://clickhouse-test-reports.s3.yandex.net/32019/927b9cb1c6470b6d7cd86b4c3fd2078ff43b57df/functional_stateless_tests_(release,_databasereplicated).html#fail1
2021-12-01 22:39:42 +03:00
Kseniia Sumarokova
563b615904
Merge pull request #31766 from kssenii/odbc-fix
Fix crash with empty result on odbc query
2021-12-01 21:51:08 +03:00
Azat Khuzhin
e976cd8691 Provide clickhouse binary w/o debug symbols (stripped) in fasttest
- regular binary: 1.8G
- stripped: 343M (5x less)
- gzipped stripped: 92M (20x less)

This can be useful to check something fast.
2021-12-01 21:50:03 +03:00
avogar
e2eea4f361 Allow plus before Float32/Float64 2021-12-01 21:20:00 +03:00
tavplubix
77c946d307
Merge pull request #32050 from ClickHouse/fix_test_00925
Fix flaky test 00925
2021-12-01 20:38:30 +03:00
tavplubix
9e034ee3a5
Merge pull request #31990 from havardk/mysqldecimal
MaterializedMySQL: Fix corruption of DECIMAL data
2021-12-01 19:18:48 +03:00
alexey-milovidov
fa298b089e
Merge pull request #32071 from ClickHouse/fix-riscv64-sysroot
Update contrib/sysroot: fix symlink
2021-12-01 19:15:20 +03:00
Mikhail f. Shiryaev
78ed97ea60
Update contrib/sysroot: fix symlink 2021-12-01 17:10:28 +01:00
Kseniia Sumarokova
8d66d5c3eb
Update Dockerfile 2021-12-01 18:28:34 +03:00
Kseniia Sumarokova
04b74c4431
Delete 02125_test_isql_empty_result.reference 2021-12-01 18:28:20 +03:00
Kseniia Sumarokova
57905639d5
Delete 02125_test_isql_empty_result.sh 2021-12-01 18:28:14 +03:00
Kseniia Sumarokova
87574e8bf6
Merge pull request #31053 from kssenii/rabbit-kafka-select-commit
rabbitmq/kafka allow to commit on select only under setting
2021-12-01 18:23:08 +03:00
Dmitry Novik
2ab4fc734d
Merge pull request #31740 from azat/fix-disabling-query-profiler
Fix disabling query profiler
2021-12-01 18:15:50 +03:00
tavplubix
7ae45b9d52
Update IMergeTreeDataPart.cpp 2021-12-01 18:00:40 +03:00
Alexander Tokmakov
4c7fba49e1 fix test 2021-12-01 17:59:26 +03:00
Alexander Tokmakov
57e4f3698c fix 'directory exists' error when detaching part 2021-12-01 17:24:26 +03:00
alesapin
5d63ed25a5
Merge pull request #32062 from ClickHouse/move_function_test_to_group
Use functional test group for tests with thread sanitizer
2021-12-01 16:33:36 +03:00
alesapin
f85e18332d Use functional test group for tests with thread sanitizer 2021-12-01 16:32:56 +03:00
alesapin
1977ab6a8e
Merge pull request #32051 from ClickHouse/cancel_checks_more_agressively
Cancel redundant checks with lambda
2021-12-01 15:39:40 +03:00
tavplubix
b623a387af
Merge pull request #31887 from ClickHouse/fix_cannot_create_empty_part
Parse partition key value from `partition_id` when need to create part in empty partition
2021-12-01 15:38:46 +03:00
alesapin
6cdb9f65a4 Cancel redundant checks with lambda 2021-12-01 15:38:17 +03:00
alesapin
47ade2715f
Merge pull request #32048 from ClickHouse/fix-testing-rpm-tgz
Fix building rpm and tgz for branch pushes
2021-12-01 15:31:31 +03:00