Commit Graph

114687 Commits

Author SHA1 Message Date
Alexey Milovidov
298a223dbc
Merge pull request #49596 from ClickHouse/remove-some-code
Remove some code
2023-05-07 03:32:46 +03:00
robot-clickhouse-ci-1
d1ad3ea24e
Merge pull request #49593 from ClickHouse/rs/qc-empty-chunk
Query Cache: Safeguard against empty chunks
2023-05-07 02:20:54 +02:00
Alexey Milovidov
07027be872
Update test_in_memory_parts_still_read.py 2023-05-07 02:09:37 +03:00
Alexey Milovidov
763c98bd70 Fix typo 2023-05-06 23:40:19 +02:00
Alexey Milovidov
3a079dc40e Merge branch 'master' into pretty-time-squashing 2023-05-06 23:15:48 +02:00
Alexey Milovidov
a6fd57d43f Merge branch 'pretty-time-squashing' of github.com:ClickHouse/ClickHouse into pretty-time-squashing 2023-05-06 23:13:51 +02:00
Alexey Milovidov
2fe2e6fb4b There is no point in parallel formatting of Pretty formats 2023-05-06 23:13:32 +02:00
Alexey Milovidov
1c517119e3 Follow-up for #49580 2023-05-06 22:34:05 +02:00
Azat Khuzhin
1107988a82 Improve performance of BLAKE3 by 11% by enabling LTO for Rust
LTO in Rust produces multiple definition of `rust_eh_personality' (and
few others), and to overcome this --allow-multiple-definition has been
added.

Query for benchmark:

    SELECT ignore(BLAKE3(materialize('Lorem ipsum dolor sit amet, consectetur adipiscing elit'))) FROM numbers(1000000000) FORMAT `Null`

  upstream           : Elapsed: 2.494 sec. Processed 31.13 million rows, 249.08 MB (12.48 million rows/s., 99.86 MB/s.)
  upstream + rust lto: Elapsed: 13.56 sec. Processed 191.9 million rows, 1.5400 GB (14.15 million rows/s., 113.22 MB/s.)
  llvm BLAKE3        : Elapsed: 3.053 sec. Processed 43.24 million rows, 345.88 MB (14.16 million rows/s., 113.28 MB/s.)

Note, I thought about simply replacing it with BLAKE3 from LLVM, but:
- this will not solve LTO issues for Rust (and in future more libraries
  could be added)
- it makes integrating_rust_libraries.md useless (and there is even blog
  post)

So instead I've decided to add this quirk (--allow-multiple-definition)
to fix builds.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-06 22:28:56 +02:00
Robert Schulze
76cf206efe
Fix build when memcpy-bench isn't available 2023-05-06 20:26:27 +00:00
Robert Schulze
c893302a08
Implement a MySQL-compatible variant of makeDate()
Fixes #49143
2023-05-06 20:11:36 +00:00
Alexey Milovidov
61f1861d70 Fix error 2023-05-06 20:54:52 +02:00
kssenii
2228107134 Better name 2023-05-06 20:12:26 +02:00
Robert Schulze
2986c28761
Small fixes 2023-05-06 18:12:10 +00:00
Michael Kolupaev
49394a097e Fix 'noisy Warning messages' failing when there are no Warning messages 2023-05-06 10:39:59 -07:00
Michael Kolupaev
3745783a22 Make 'exceptions shorter than 30' test less noisy 2023-05-06 10:39:59 -07:00
Sema Checherinda
2104baabce
Merge pull request #49527 from ClickHouse/thread-detach-fix
Fix thread MemoryTracker parent after detach
2023-05-06 19:11:55 +02:00
Robert Schulze
6848eafb39
Cleanup utils build 2023-05-06 17:11:06 +00:00
Sema Checherinda
eef1d51d4c
Merge pull request #49561 from ClickHouse/fix-snapshot-removal
Fix memory counting in TCPHandler
2023-05-06 19:00:00 +02:00
Alexey Milovidov
54163b87ec
Merge pull request #47977 from ClickHouse/rs/non-experimental-qc
Mark query cache as non-experimental
2023-05-06 19:49:23 +03:00
Alexey Milovidov
13ed528e0b Remove "locale" 2023-05-06 18:45:14 +02:00
Alexey Milovidov
355d5af786 Remove some code 2023-05-06 18:33:45 +02:00
Alexey Milovidov
b1a92a5712 Remove dangerous code 2023-05-06 18:30:18 +02:00
Alexey Milovidov
7897a6cf92 Remove dangerous code (stringstream) 2023-05-06 18:14:01 +02:00
Alexey Milovidov
62d8677773
Update QueryCache.cpp 2023-05-06 18:25:43 +03:00
Alexey Milovidov
8f1123dfb8
Update test_in_memory_parts_still_read.py 2023-05-06 18:23:54 +03:00
Alexey Milovidov
ef16077c72
Merge branch 'master' into pretty-time-squashing 2023-05-06 18:20:49 +03:00
Alexey Milovidov
9efbe86110
Merge pull request #49563 from evillique/object-column-alter
Forbid the change of data type of Object('json') column
2023-05-06 18:17:16 +03:00
Alexey Milovidov
2d39acf2e1
Merge pull request #49554 from kssenii/fix-assertions-3
Fix stress test (assertion 'key_metadata.lock()')
2023-05-06 18:16:40 +03:00
robot-ch-test-poll4
eac2dd98bc
Merge pull request #49562 from ClickHouse/improve-analyzer-ci
Improve CI check for Analyzer
2023-05-06 17:15:38 +02:00
Alexey Milovidov
26d435bd66
Merge pull request #49572 from CurtizJ/fix-thread-pool-wait
Fix `ThreadPool::wait`
2023-05-06 18:15:02 +03:00
Alexey Milovidov
bffc441b84
Merge pull request #49576 from ClickHouse/remove-test_merge_tree_s3_restore
Remove `test_merge_tree_s3_restore`
2023-05-06 18:13:47 +03:00
Alexey Milovidov
682f3c7bf2
Merge pull request #49564 from ClibMouse/bugfix/fiber-crash
Add CMake option for BOOST_USE_UCONTEXT
2023-05-06 18:13:22 +03:00
Alexey Milovidov
fe00e668f1
Merge pull request #49579 from ClickHouse/remove-obsolete-test
Remove obsolete test about deprecated feature
2023-05-06 18:11:05 +03:00
Alexey Milovidov
6b6504e5bd
Merge pull request #49582 from Merle-Zhang/patch-1
Fix missing backticks for inline code in architecture.md
2023-05-06 18:10:28 +03:00
Alexey Milovidov
74cbb59531
Merge pull request #49580 from ClickHouse/deprecate-live-view
Avoid error found by AST Fuzzer
2023-05-06 18:08:32 +03:00
Alexey Milovidov
301500ba1d
Merge pull request #49592 from ClickHouse/CheSema-patch-1
Flaky test 02723_zookeeper_name.sql
2023-05-06 18:07:27 +03:00
Alexey Milovidov
727662fa82
Merge branch 'master' into CheSema-patch-1 2023-05-06 18:07:18 +03:00
Alexey Milovidov
f0d0711bbb
Merge pull request #49594 from ClickHouse/rs/02723_deterministic
02723_zookeeper_name: Force a deterministic result order
2023-05-06 18:06:58 +03:00
Alexey Milovidov
0feb904b02
Merge branch 'master' into rs/02723_deterministic 2023-05-06 18:06:44 +03:00
Alexey Milovidov
c563d28ce3
Merge pull request #49578 from ClickHouse/fix-bad-test-3
Fix bad test
2023-05-06 18:06:16 +03:00
Alexey Milovidov
d86bda3054
Merge pull request #49581 from ClickHouse/fix-fuzz-nothing
Fix wrong assert
2023-05-06 18:05:40 +03:00
Robert Schulze
d353cdcb09
02723_zookeeper_name: Force a deterministic result order 2023-05-06 14:48:17 +00:00
Robert Schulze
883e0abea1
Query Cache: Safeguard against empty chunks
Reading from the query cache is implemented using processor
"SourceFromChunks" which inherits from ISource. The latter has logic
which finishes processing (= calls .finish() on the output port +
returns Status::Finished) when the derived class returns an empty chunk.
If this empty chunk is not the last chunk, i.e. if it is followed by
non-empty chunks, the query result will be incorrect. This situation
should theoretically never occur in practice but who knows ... To be on
the safe side, writing into the query cache now rejects empty chunks and
thereby avoids this scenario.
2023-05-06 14:22:23 +00:00
Robert Schulze
0598bfd79e
Mark query cache as non-experimental 2023-05-06 13:58:40 +00:00
Robert Schulze
983e37048c
Merge pull request #48853 from ClickHouse/rs/qc-totals-extremes2
QueryCache: Support queries with totals and extremes
2023-05-06 15:41:10 +02:00
Robert Schulze
7137c8811a
Merge pull request #49158 from ClickHouse/rs/show-indexes
Implement SHOW INDEX
2023-05-06 15:30:29 +02:00
Robert Schulze
a1c98303a7
Merge pull request #49558 from ClickHouse/rs/writeAnyEscapedString
Fix writeAnyEscapedString if quote_character is a meta character
2023-05-06 15:29:32 +02:00
Robert Schulze
39bd320e37
Merge pull request #49573 from ClickHouse/rs/qc-no-internal-queries
Query cache: disable for internal queries
2023-05-06 15:27:44 +02:00
Igor Nikonov
c23600fb56
Merge pull request #49536 from ClickHouse/propa
Make input_format_parquet_preserve_order imply !parallelize_output_from_storages
2023-05-06 14:53:36 +02:00