Commit Graph

103433 Commits

Author SHA1 Message Date
Zhiguo Zhou
8b20e9f505
Vectorize AssociativeGenericApplierImpl::apply (#43669)
* Vectorize AssociativeGenericApplierImpl::apply

This commit achieved the auto-vectorization by redefining numerical
values of ternary representations and corresponding implementations
of And/Or operators, caching the intermediate ternary values in a
continuous range of memory for the SIMD instructions to consume,
and removing the short-circuit for the ternary logic evaluation.

* Optimize TernaryValueBuilder for ColumnNullable

The numerical representation of a ColumnNullable is calculated from
the data column of any data type and the null map column of UInt8
with a bitwise operation expression, which is efficient for auto-
vectorization. However, when this expression is applied to a data
column of a type other than UInt8, the SIMD register is not fully
utilized due to the mismatch of data types, and the data throughput
regresses.

To optimize the SIMD register usage, the has_value flag is firstly
evaluated from the data column and stored in a UInt8 array. Then it
is loaded from memory before the calculation of bitwise operation
expression, so that the types of the operands are both UInt8.
2022-12-15 18:27:19 +01:00
Nikolai Kochetov
e99849d031
Merge pull request #38953 from ClickHouse/add-allocation-ptr-to-trace-log
Track allocation ptr in system.trace_log. Add aggregate function flamegraph
2022-12-15 18:16:05 +01:00
robot-clickhouse
f4fbdfa93d Update version_date.tsv and changelogs after v22.12.1.1752-stable 2022-12-15 17:07:16 +00:00
Dmitry Novik
7ad3ff8a9e
Merge pull request #44244 from ClickHouse/part-log-removal-info
Add more information about part removal into system.parts table
2022-12-15 18:06:55 +01:00
Mikhail f. Shiryaev
8a145f7000
Update version to 22.13.1.1 2022-12-15 18:00:42 +01:00
Kseniia Sumarokova
d211ec943b
Merge branch 'master' into kssenii-patch-6 2022-12-15 17:54:14 +01:00
Mikhail f. Shiryaev
3907b64d09
Get rid of global Git object 2022-12-15 17:43:48 +01:00
Alexander Tokmakov
bd8b272ea4
Merge pull request #44233 from ClickHouse/threads-in-overcommit-tracker-metric
Add ThreadsInOvercommitTracker metric
2022-12-15 19:23:21 +03:00
Alexander Tokmakov
ec36ce7bb3
Merge branch 'master' into threads-in-overcommit-tracker-metric 2022-12-15 19:18:03 +03:00
Alexander Tokmakov
688e488e93
Merge pull request #44220 from ClickHouse/correct-readonlyreplica-metric
Fix `ReadonlyReplica` metric
2022-12-15 19:05:20 +03:00
Dmitry Novik
b87739d31c Add HAS_SKIPPED_MUTATION_PARENT state 2022-12-15 16:05:15 +00:00
Alexander Tokmakov
940a608057
Update StorageSystemDatabases.cpp 2022-12-15 18:59:02 +03:00
Kruglov Pavel
e7b33f5029
Fix setting description 2022-12-15 16:19:34 +01:00
Kruglov Pavel
00d80e44cc
Fix typos 2022-12-15 16:18:40 +01:00
Kruglov Pavel
7657f16e2a
Add missing documentation for some schema inference settings 2022-12-15 16:17:18 +01:00
Kruglov Pavel
0816626373
Update docs 2022-12-15 16:10:06 +01:00
Alexander Tokmakov
614f386145
Merge pull request #44197 from ClickHouse/tavplubix-patch-2
Hotfix for "check_status.tsv doesn't exists" in stress tests
2022-12-15 16:58:46 +03:00
kssenii
6bdd9bf932 Fix logical error with do_not_evict_index_and_mrk_files=1 2022-12-15 14:57:25 +01:00
Mikhail f. Shiryaev
6fbe47bd34
Merge pull request #44214 from ClickHouse/timeout-stress-tests
Timeout stress tests after 2.5h
2022-12-15 14:53:47 +01:00
Mikhail f. Shiryaev
8c7b9c50bb
Merge branch 'master' into timeout-stress-tests 2022-12-15 14:53:13 +01:00
Sergei Trifonov
40c7ee6aa2
Merge pull request #44265 from ClickHouse/serxa-patch-3
fix typos
2022-12-15 14:11:58 +01:00
Sergei Trifonov
f0de30de92
fix typos 2022-12-15 14:11:16 +01:00
Kruglov Pavel
b63ff31061
Merge pull request #44192 from Avogar/fix-bad-cast
Fix possible Bad cast from type DB::IAST const* to DB::ASTLiteral const*
2022-12-15 14:02:41 +01:00
Kruglov Pavel
b32722aa63
Fix tests 2022-12-15 13:42:33 +01:00
Kseniia Sumarokova
639fe0bc39
Update 01072_window_view_multiple_columns_groupby.sh 2022-12-15 11:12:14 +01:00
kssenii
d1b6ccd437 Fix test 2022-12-15 09:53:44 +01:00
Alexey Milovidov
c27f0d28a1
Update CHANGELOG.md 2022-12-15 11:28:57 +03:00
Alexey Milovidov
526018a3f0
Merge pull request #44255 from ClickHouse/revert-43496-progress-add-writtten-rows
Revert "Add information about written rows in progress indicator"
2022-12-15 11:28:27 +03:00
Alexey Milovidov
d8bb74d68a
Revert "Add information about written rows in progress indicator" 2022-12-15 10:19:15 +03:00
Anton Popov
c4bcfe54cd fix test 2022-12-15 04:19:16 +00:00
Alexey Milovidov
c9fbe6b5ad
Merge branch 'master' into question-issue-template 2022-12-15 06:18:45 +03:00
Alexey Milovidov
d835bfe416
Merge branch 'master' into fix-use-after-free-blake3 2022-12-15 06:15:14 +03:00
Dan Roscigno
3310a8edd9
Merge branch 'master' into cross-link-docs 2022-12-14 22:05:46 -05:00
Alexey Milovidov
c1cfcb1918
Merge branch 'master' into builtin-skim-v2 2022-12-15 05:27:05 +03:00
Dmitry Novik
9b120e3b33 Update test 2022-12-15 01:33:06 +00:00
Dan Roscigno
df823e9a70
Merge pull request #44235 from ClickHouse/fix-indent-on-summingmergetree
Update summingmergetree.md
2022-12-14 20:04:19 -05:00
Alexander Tokmakov
8fd0feb317
Merge pull request #44237 from ClickHouse/tavplubix-patch-1
Add log message
2022-12-15 01:32:49 +03:00
Dmitry Novik
5b7a990425 Add more information about part removal into system.parts table 2022-12-14 22:30:43 +00:00
Igor Nikonov
c099fa9fa3
Merge pull request #44194 from ClickHouse/igor/minor_unix_timestamp_fixes
Minor clang-tidy fixes in fromUnixTimestamp64()
2022-12-14 23:18:07 +01:00
Yakov Olkhovskiy
adefd4aa19
include logger 2022-12-14 17:01:15 -05:00
avogar
a94a0d9c85 Fix tests, fix bugs 2022-12-14 21:17:00 +00:00
Azat Khuzhin
98fb76f05f Update tests for replxx reverse search (Use Ctrl-T over Ctrl-R)
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-14 21:22:52 +01:00
Vitaly Baranov
fb8aca8319
Merge pull request #44158 from vitlibar/improve-referential-deps
Improve referential dependencies
2022-12-14 21:17:02 +01:00
Azat Khuzhin
cf0e0436be skim: do not panic if terminal is not available
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-14 21:01:48 +01:00
Azat Khuzhin
082f57c40d clickhouse-client: rebind original non-fuzzy search to C-T
I decided to bind fuzzy to a regular C-R, so that everyone will notice
it, and keep an old behaviour for expect tests, or if someone do not
need fuzzy search (or want blasignly fast search, since skim is slightly
slower).

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-14 21:01:48 +01:00
Azat Khuzhin
e7c5b48d84 rust: fix buidling modules with CMAKE_BUILD_TYPE in a different case
Before this patch corrosion requires that CMAKE_BUILD_TYPE matches the
CMAKE_CONFIGURATION_TYPES, which is
"RelWithDebInfo;Debug;Release;MinSizeRel", so that said, that if you
were using CMAKE_BUILD_TYPE=debug, it will not work.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-14 20:58:34 +01:00
Azat Khuzhin
f8c17d4a66 rust: reuse RUST_CXXFLAGS for skim
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-14 20:58:17 +01:00
Azat Khuzhin
92d70c66e8 corrosion: export path to FindRust.cmake in CMAKE_MODULE_PATH
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-14 20:58:09 +01:00
Joanna Hulboj
d32452d90c Fixed use-after-free of BLAKE3 error message
As std::string is not POD there sadly was no warning from the compiler.
2022-12-14 19:57:41 +00:00
Azat Khuzhin
82aaad61aa Integrate skim into the client/local
Note, that it can the fail the client if the skim itself will fail,
however I haven't seen it panicd, so let's try.

P.S. about adding USE_SKIM into configure header instead of just compile
option for target, it is better, because it allows not to recompile lots
of C++ headers, since we have to add skim library as PUBLIC. But anyway
this will be resolved in a different way, but separatelly.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-12-14 20:57:41 +01:00