Commit Graph

81624 Commits

Author SHA1 Message Date
Amos Bird
62441f0a0f
Fix mutation when table contains projections (#33679) 2022-01-19 15:27:11 +03:00
vdimir
e5613fce3c Support USE_* build flags in tests' tags 2022-01-19 12:21:51 +00:00
vdimir
34765765ad Use tb64senc for base64Decode on aarch64 2022-01-19 12:00:24 +00:00
avogar
c4cd8c6da4 Fix parsing query INSERT INTO ... VALUES SETTINGS ... (...), ... 2022-01-19 14:22:32 +03:00
Maksim Kita
dfd8d4067d
Merge pull request #33552 from bharatnc/ncb/check-for-h3-column
add check for h3 empty column arguments
2022-01-19 11:42:49 +01:00
Maksim Kita
1f72bde52f Fix performance tests 2022-01-19 10:41:58 +00:00
Mikhail f. Shiryaev
d9a1284f2d
Improve typing and arguments 2022-01-19 11:41:34 +01:00
Mikhail f. Shiryaev
3142ae998b
Add option to skip redownload, push tgz 2022-01-19 11:41:33 +01:00
Mikhail f. Shiryaev
13368bf708
Fix some linter issues 2022-01-19 11:41:32 +01:00
Mikhail f. Shiryaev
e016629278
Create release workflow 2022-01-19 11:41:31 +01:00
Mikhail f. Shiryaev
7fd629004b
Improve push_to_artifactory
- Add tgz archives
- Add --all argument for all packages download
- Add -n to skip pushing to artifactory
- Add help for artifactory-url
- Make 3.8 compatible
- Add cleanup `refs/tags/` from --release argument
2022-01-19 11:41:30 +01:00
Mikhail f. Shiryaev
d3accef87d
Rename release action to docs to reflect the content 2022-01-19 11:41:28 +01:00
Kruglov Pavel
3501b56587
Merge pull request #33730 from ianton-ru/MDB-16115-2
Fix restore S3 disk without detached directories
2022-01-19 12:31:59 +03:00
feng lv
53fde56cb7 rewrite bitHammingDistance with FunctionBinaryArithmetic
fix

fix typo
2022-01-19 09:07:05 +00:00
tavplubix
cdcd93330a
Merge pull request #33743 from ClickHouse/better_exception_message
Better exception text on suspicious broken parts
2022-01-19 11:25:59 +03:00
Ilya Yatsishin
8c86890f0e
Merge pull request #33752 from qoega/disable-autoconf-update 2022-01-19 10:51:27 +03:00
mergify[bot]
bfbcb69e20
Merge branch 'master' into windowview-stream-table-join 2022-01-19 07:46:00 +00:00
liuneng1994
4d3bb1584d fix Dereference of null pointer error
Signed-off-by: neng.liu <neng.liu@kyligence.io>
2022-01-19 07:41:46 +00:00
bharatnc
3ab21a6caa Merge remote-tracking branch 'upstream/master' into ncb/check-for-h3-column 2022-01-18 23:40:33 -08:00
Nikolay Degterinsky
eaad8eef7f
Merge pull request #33731 from Vxider/remove_unused_var
Remove unused variable
2022-01-19 10:35:18 +03:00
Cody Baker
aa1b9df853
Add new team members to company page (#33755) 2022-01-19 10:30:42 +03:00
alexey-milovidov
d8d22cfc74
Merge pull request #33760 from Vxider/remove_duplicated_header
Remove duplicated header
2022-01-19 10:23:35 +03:00
alexey-milovidov
fec7abcdba
Merge pull request #33765 from amosbird/buildimprovehotfix
Hotfix of missing header
2022-01-19 10:22:53 +03:00
bharatnc
a2a5beaedc fix style check 2022-01-18 22:52:13 -08:00
bharatnc
28a7366130 fix spacing 2022-01-18 22:52:13 -08:00
bharatnc
5e58767de8 add check for h3 empty column arguments 2022-01-18 22:52:13 -08:00
Amos Bird
9fdd420023
Another CI suggested style fix 2022-01-19 14:48:30 +08:00
Amos Bird
4e18368186
CI somehow finds another duplicated header 2022-01-19 14:37:59 +08:00
Amos Bird
f65d77cc74
Hotfix of missing header 2022-01-19 14:11:42 +08:00
Vxider
c1605ed07f remove duplicated header 2022-01-19 02:41:22 +00:00
Vxider
13cee6c184 update code style 2022-01-19 02:24:27 +00:00
mergify[bot]
f2da296990
Merge branch 'master' into windowview-stream-table-join 2022-01-19 02:08:52 +00:00
cnmade
b008ee1c61 Translate zh/sql-reference/statements/alter/ttl.md 2022-01-19 09:18:07 +08:00
alexey-milovidov
d222cb9771
Merge pull request #33695 from amosbird/buildimprove
Some build improvement
2022-01-19 03:19:22 +03:00
Yohann Jardin
b0de356f4b fix/doc: update output type of tupleHammingDistance 2022-01-19 00:11:28 +01:00
Azat Khuzhin
c9e93b21c2 Fix tiny race between count() and INSERT/merges/... in MergeTree
Before it was possible to return stale counter from
StorageMergeTree::totalRows() (that is used for
optimize_trivial_count_query) since the accounting is done in two steps:
- subtract old number of rows
  <-- here the number can be zero, even though there are rows -->
- add new number of rows

This was found by CI [1] in 01615_random_one_shard_insertion test:

Here you can see that INSERT went to both tables:

<details>

    2022.01.16 09:07:34.288252 [ 154369 ] {a1905be0-93da-460c-8c6f-9b5adace72a0} <Debug> DistributedBlockOutputStream: It took 0.035197041 sec. to insert 100
    blocks, 2841.1479249065287 rows per second. Insertion status:
    Wrote 54 blocks and 54 rows on shard 0 replica 0, localhost:9000 (average 0 ms per block, the slowest block 1 ms)
    Wrote 46 blocks and 46 rows on shard 1 replica 0, localhost:9000 (average 0 ms per block, the slowest block 1 ms)

</details>

But the test fails, since select from shard1.tbl returns 0, and the
problem was concurrent merge:

<details>

    2022.01.16 09:07:34.289470 [ 146495 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Debug> executeQuery: (from [::1]:42082) (comment: 01615_random_one_shard_insertion.sql) select count() != 0 from shard_0.tbl;
    2022.01.16 09:07:34.289564 [ 375 ] {c7a885fa-4ef4-4dcf-a4de-1650d44fa0ab::all_1_54_9} <Debug> MergeTask::MergeProjectionsStage: Merge sorted 54 rows, containing 1 columns (1 merged, 0 gathered) in 0.00171193 sec., 31543.345814373253 rows/sec., 246.43 KiB>
    2022.01.16 09:07:34.289810 [ 375 ] {c7a885fa-4ef4-4dcf-a4de-1650d44fa0ab::all_1_54_9} <Trace> shard_0.tbl (c7a885fa-4ef4-4dcf-a4de-1650d44fa0ab): Renaming temporary part tmp_merge_all_1_54_9 to all_1_54_9.
    2022.01.16 09:07:34.289858 [ 146495 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Trace> ContextAccess (default): Access granted: SELECT(number) ON shard_0.tbl
    2022.01.16 09:07:34.289897 [ 375 ] {c7a885fa-4ef4-4dcf-a4de-1650d44fa0ab::all_1_54_9} <Trace> shard_0.tbl (c7a885fa-4ef4-4dcf-a4de-1650d44fa0ab) (MergerMutator): Merged 6 parts: from all_1_49_8 to all_54_54_0
    2022.01.16 09:07:34.289920 [ 146495 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Trace> InterpreterSelectQuery: WithMergeableState -> Complete
    2022.01.16 09:07:34.289987 [ 375 ] {} <Debug> MemoryTracker: Peak memory usage Mutate/Merge: 3.12 MiB.
    2022.01.16 09:07:34.290305 [ 154344 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Trace> MergingAggregatedTransform: Reading blocks of partially aggregated data.
    2022.01.16 09:07:34.290332 [ 154344 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Debug> MergingAggregatedTransform: Read 1 blocks of partially aggregated data, total 1 rows.
    2022.01.16 09:07:34.290343 [ 154344 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Trace> Aggregator: Merging partially aggregated single-level data.
    2022.01.16 09:07:34.290358 [ 154344 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Trace> Aggregator: Merged partially aggregated single-level data.
    2022.01.16 09:07:34.290366 [ 154344 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Trace> Aggregator: Converting aggregated data to blocks
    2022.01.16 09:07:34.290391 [ 154344 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Debug> Aggregator: Converted aggregated data to blocks. 1 rows, 8.00 B in 1.0939e-05 sec. (91416.034 rows/sec., 714.19 KiB/sec.)
    2022.01.16 09:07:34.290709 [ 146495 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Information> executeQuery: Read 1 rows, 4.01 KiB in 0.001187722 sec., 841 rows/sec., 3.30 MiB/sec.
    2022.01.16 09:07:34.290774 [ 146495 ] {cd9d4cf2-7131-4179-b0b2-3aeec4045755} <Debug> MemoryTracker: Peak memory usage (for query): 0.00 B.

</details>

  [1]: https://s3.amazonaws.com/clickhouse-test-reports/33675/7848ea7d609e4c720e8e4494eb6207c0751f5aea/stateless_tests__ubsan__actions_.html

This also fixes a race between DROP TABLE check and INSERT/merges.

v0: use Active parts instead.
v2: fix total counters accounting instead.
2022-01-18 23:58:02 +03:00
Yatsishin Ilya
e64351de37 Disable dh_update_autotools_config 2022-01-18 20:10:38 +00:00
Nikolay Degterinsky
f7e315bb0a
Merge pull request #33750 from yohannj/fix_doc_tuplePlus
fix/doc: close code highlight before tuplePlus
2022-01-18 22:45:58 +03:00
Yohann Jardin
b1a35c934f fix/doc: close code highlight before tuplePlus 2022-01-18 20:38:30 +01:00
alesapin
127365658d Followup 2022-01-18 22:00:52 +03:00
alesapin
e7ee116358
Update src/Storages/MergeTree/MergeTreeData.cpp
Co-authored-by: tavplubix <avtokmakov@yandex-team.ru>
2022-01-18 22:00:23 +03:00
alesapin
24f4a5040d Better exception message 2022-01-18 21:59:54 +03:00
alesapin
e89d067cbf
Merge pull request #33744 from ClickHouse/Felixoid-patch-1
Fix release_branches workflow for some cases
2022-01-18 21:58:43 +03:00
Yatsishin Ilya
9d044db183 Merge remote-tracking branch 'origin' into cleanup-build 2022-01-18 17:53:33 +00:00
Yatsishin Ilya
3e1d0fdd79 Merge branch 'fix-debian-descriptions' into cleanup-build 2022-01-18 17:53:18 +00:00
Yatsishin Ilya
78d6d77a93 Improve descriptions 2022-01-18 16:34:56 +00:00
Mikhail f. Shiryaev
105b50eccf
Fix release_branches workflow for some cases 2022-01-18 17:34:05 +01:00
Maksim Kita
123802b43b
Merge pull request #33739 from vdimir/issue_31009
Add test issue_31009
2022-01-18 17:31:31 +01:00
alesapin
358e3a165c Better exception text on suspicious broken parts 2022-01-18 19:28:58 +03:00
Yatsishin Ilya
25adc59e9f cmake update 2022-01-18 15:41:53 +00:00