Commit Graph

49280 Commits

Author SHA1 Message Date
r1j1k
1e638d2a61
Update int-uint.md 2020-10-05 08:29:45 +03:00
alexey-milovidov
4d427e822f
Merge pull request #15590 from azat/check-MADV_DONTNEED-for-jemalloc
Check MADV_DONTNEED (for jemalloc), maybe broken under qemu
2020-10-05 08:01:29 +03:00
alexey-milovidov
8ff92a16ab
Update main.cpp 2020-10-05 08:01:08 +03:00
Latysheva Alexandra
a63084adaf
Merge pull request #3 from alexelex/quorum_inserts_2
Quorum inserts 2
2020-10-05 03:28:58 +06:00
Latysheva Alexandra
89dddb7842
Merge pull request #2 from alexelex/quorum_inserts_2
Quorum inserts 2
2020-10-05 02:41:17 +06:00
Alexandra Latysheva
d54b6c9542 add question in comments 2020-10-04 20:32:08 +00:00
Alexandra Latysheva
ff8cbe6745 remove debug things 2020-10-04 20:19:05 +00:00
Alexandra Latysheva
8263e62298 working copy (with some debug info) 2020-10-04 19:55:39 +00:00
Azat Khuzhin
9e3ff349eb Ensure that there will be no strlen() calls for SSE checks 2020-10-04 17:37:31 +03:00
alexey-milovidov
a005ec4c89
Merge pull request #15589 from ClickHouse/tavplubix-patch-1
Use default implemetation for constants in JSON* functions
2020-10-04 16:02:08 +03:00
alexey-milovidov
6b39d248a0
Merge pull request #15542 from Avogar/quantile_t_digest
Improve quantileTDigest performance
2020-10-04 15:53:36 +03:00
alesapin
b3fa86191e Fix binary build 2020-10-04 13:23:25 +03:00
Azat Khuzhin
d4e7c90306 Update expectations for 01103_check_cpu_instructions_at_startup 2020-10-04 11:20:29 +03:00
Azat Khuzhin
2a6874e065 Run MADV_DONTNEED after SSE check to fix 01103_check_cpu_instructions_at_startup 2020-10-04 11:20:29 +03:00
Azat Khuzhin
caf3156fb7 Check MADV_DONTNEED (for jemalloc), maybe broken under qemu
jemalloc relies on working MADV_DONTNEED (that fact that after
madvise(MADV_DONTNEED) returns success, after subsequent access to those
pages they will be zeroed).
However qemu does not support this, yet [1], and you can get very tricky
assert if you will run clickhouse-server under qemu:

    <jemalloc>: ../contrib/jemalloc/src/extent.c:1195: Failed assertion: "p[i] == 0"

  [1]: https://patchwork.kernel.org/patch/10576637/

But after this patch you will get pretty error:

  $ qemu-x86_64-static programs/clickhouse
  MADV_DONTNEED does not zeroed page. jemalloc will be broken
2020-10-04 11:20:29 +03:00
alexey-milovidov
53ce5e3892
Merge pull request #15551 from azat/for-user-limits-over-distributed
Pass through *_for_user settings via Distributed with cluster-secure
2020-10-04 04:18:20 +03:00
Azat Khuzhin
9c09050e7c Cleanup server instructions startup checking code 2020-10-04 01:47:44 +03:00
tavplubix
e219162b82
Update FunctionsJSON.h 2020-10-03 21:09:22 +03:00
alexey-milovidov
bbedd9b08f
Merge pull request #15308 from otrazhenia/evgsudarikova-DOCSUP-2402-formatrow
DOCSUP-2402: Document the formatRow function
2020-10-03 17:05:46 +03:00
alexey-milovidov
eb67696353
Update type-conversion-functions.md 2020-10-03 17:05:25 +03:00
alexey-milovidov
561f3613b2
Update type-conversion-functions.md 2020-10-03 17:04:47 +03:00
alexey-milovidov
6f3aab8f09
Merge pull request #15319 from bharatnc/ncb/fix-14509
Fix bug in queries like SELECT toStartOfDay(today())
2020-10-03 17:02:57 +03:00
alexey-milovidov
fd24654ca4
Merge pull request #15324 from adevyatova/annadevyatova-DOCSUP-2615-normalizeQuery
DOCSUP-2615: normalizeQuery and normalizeQueryHash
2020-10-03 17:00:14 +03:00
alexey-milovidov
fbd402c9b4
Merge pull request #15368 from olgarev/revolg-DOCSUP-2403-Document_the_mechanics_of_custom_settings_specifying
DOCSUP-2403: Docs for the mechanics of custom settings specifying
2020-10-03 16:57:27 +03:00
alexey-milovidov
037d00a633
Merge branch 'master' into revolg-DOCSUP-2403-Document_the_mechanics_of_custom_settings_specifying 2020-10-03 16:57:20 +03:00
alexey-milovidov
15af9f407e
Merge pull request #15417 from dmi-feo/patch-1
fix insert_quorum_timeout doc
2020-10-03 16:55:46 +03:00
alexey-milovidov
a4c16459a7
Update settings.md 2020-10-03 16:55:27 +03:00
alexey-milovidov
f7b390465b
Merge branch 'master' into realfix 2020-10-03 16:54:23 +03:00
alexey-milovidov
8d6f001dba
Merge pull request #15423 from den-crane/patch-1
Update settings.md / fix description of max_server_memory_usage
2020-10-03 16:38:22 +03:00
alexey-milovidov
1f0e41656c
Merge pull request #15416 from ClickHouse/filimonov-doc-core_dump
Mention core_dump size limit in docs
2020-10-03 16:37:11 +03:00
alexey-milovidov
97d97f6b2e
Merge pull request #15513 from ClickHouse/aku/error-context
Add some context to an error message
2020-10-03 16:24:19 +03:00
alexey-milovidov
ca05425a87
Merge pull request #15535 from nvartolomei/patch-2
Add missing entry to client packet stringify
2020-10-03 16:22:04 +03:00
alexey-milovidov
46fa5ff53e
Merge pull request #15557 from ClickHouse/statvfs-eintr
Handle EINTR in statvfs
2020-10-03 15:57:56 +03:00
alexey-milovidov
ae61f8f7a6
Update filesystemHelpers.cpp 2020-10-03 15:57:35 +03:00
alexey-milovidov
4d6402525a
Update filesystemHelpers.h 2020-10-03 15:57:12 +03:00
Azat Khuzhin
84583faa43 Fix test_distributed_inter_server_secret under ASAN
And also cover both cases:
- settings from DDL
- settings from TCP protocol
2020-10-03 11:16:31 +03:00
alexey-milovidov
aaafdfe22c
Merge pull request #15499 from alex-zaitsev/patch-5
Update Redshift benchmarks
2020-10-03 05:42:17 +03:00
alexey-milovidov
9551562889
Merge pull request #15442 from ClickHouse/add_alter_version
Add ability to alter version column in VersionedCollapsingMergeTree.
2020-10-03 05:40:15 +03:00
alexey-milovidov
75fb73956e
Merge pull request #15238 from ianton-ru/multi_delete_in_s3
Use S3 multi object delete
2020-10-03 03:48:06 +03:00
alexey-milovidov
5e37ba4335
Update DiskS3.cpp 2020-10-03 03:47:45 +03:00
alexey-milovidov
3ca7fca48a
Update DiskS3.cpp 2020-10-03 03:42:33 +03:00
Alexey Milovidov
d426ba3074 Step 4: cleanup 2020-10-03 03:07:55 +03:00
Alexey Milovidov
b6ca8a0676 Step 3: check other usages, add a comment 2020-10-03 03:05:54 +03:00
Alexey Milovidov
2441be4b66 Step 2: move code to .cpp 2020-10-03 03:02:47 +03:00
Alexey Milovidov
6608de470d Step 1: handle EINTR in statvfs 2020-10-03 03:01:32 +03:00
alexey-milovidov
cb708212a8
Merge pull request #15536 from ClickHouse/fix_ilike
Separate cache for ilike after like
2020-10-03 02:07:40 +03:00
Azat Khuzhin
f25c1742b8 Pass through *_for_user settings via Distributed with cluster-secure
In cluster-secure case the user on shards (remote) is equal to the user
on the initiator, so those settings can be safely applied.
2020-10-03 02:04:47 +03:00
Azat Khuzhin
2a2f858365 Significantly reduce memory usage in AggregatingInOrderTransform
Clean the aggregates pools (Arena's objects) between flushes, this will
reduce memory usage significantly (since Arena is not intended for
memory reuse in the already full Chunk's)

Before this patch you cannot run SELECT FROM huge_table GROUP BY
primary_key SETTINGS optimize_aggregation_in_order=1 (and the whole
point of optimize_aggregation_in_order got lost), while after, this
should be possible.
2020-10-03 00:56:58 +03:00
Azat Khuzhin
d9ac79c094 Regression for memory usage for optimize_aggregation_in_order 2020-10-03 00:56:58 +03:00
Alexander Tokmakov
bd790f399f simplify test 2020-10-02 22:34:37 +03:00