Commit Graph

124571 Commits

Author SHA1 Message Date
kssenii
afcb0b2b9a Merge remote-tracking branch 'upstream/master' into s3-queue-fixes 2023-09-14 17:16:29 +02:00
Kseniia Sumarokova
eeb2c5b223
Merge pull request #53220 from valbok/double-to-single
MaterializedMySQL: Introduce Character Set Introducers
2023-09-14 13:18:08 +02:00
Nikita Taranov
079b52fa93
[Resubmit] Remove mmap/mremap/munmap from Allocator.h (#52792)
* Revert "Revert "Remove `mmap/mremap/munmap` from Allocator.h" (#52589)"

This reverts commit 0a838dc6d1.

* pre-fault pages

* upd contrib to merge commit

* limit log rate

* Update Allocator.h

---------

Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
2023-09-14 13:11:12 +02:00
Nikita Taranov
bdb52eefc4
Fix race in ColumnUnique.h (#54575) 2023-09-14 12:55:08 +02:00
Robert Schulze
a9ae813db0
Merge pull request #54115 from slvrtrn/simplified-prepared-statements-for-mysql
Implement the MySQL binary protocol implementation for initial support of Tableau Online
2023-09-14 12:27:11 +02:00
Antonio Andelic
6306180333
Merge pull request #53049 from ClickHouse/keeper-batch-flushes
Try batching multiple flush requests in Keeper
2023-09-14 11:39:33 +02:00
Val Doroshchuk
6cfbaf9f86 MaterializedMySQL: Introduce Character Set Introducers
If some string literals are used in DDL, they might have `Character Set Introducers`
https://dev.mysql.com/doc/refman/8.0/en/charset-introducer.html
f.e. _utf8mb4'1' which is not parsable by current ParserStringLiteral.

Since we use utf8 by default, suggesting to automatically convert the string literals to utf8
before executing the query and avoid any charset introducers there.
Conversion from utf8 to utf8 is not needed and skipped.

Also it might convert double quotes to single quotes if any
which might solve issues with COMMENT and empty string literals "" in DEFAULT expressions.

SELECT _latin1"abc"; -- might be also valid for MySQL
... DEFAULT "",
... COMMENT "abc"

Currently no DEFAULT expressions are supported, not parsable at all,
but using this MR it allows to parse the expressions together with double quotes as string literals.
2023-09-14 08:24:25 +02:00
Alexey Milovidov
b4f9d8a517
Merge pull request #54601 from nickitat/fix_col_decimal_serialization
Fix serialization of `ColumnDecimal`
2023-09-14 04:54:00 +03:00
Alexey Milovidov
9be779beca
Update 02875_fix_column_decimal_serialization.sql 2023-09-14 04:53:17 +03:00
Alexey Milovidov
d23daca082
Merge pull request #54616 from ClickHouse/revert-54547-keeper-non-interactive-confirm
Revert "Add stateless test for clickhouse keeper-client --no-confirmation"
2023-09-14 04:43:38 +03:00
Alexey Milovidov
02adae79e0
Revert "Add stateless test for clickhouse keeper-client --no-confirmation" 2023-09-14 04:43:23 +03:00
robot-clickhouse-ci-2
e111d4abd3
Merge pull request #54610 from CurtizJ/fix-after-refactoring
Fix reading of virtual columns in reverse order
2023-09-14 03:38:27 +02:00
slvrtrn
44e1f6b53d Fix LowCardinality/Nullable columns issues 2023-09-13 23:40:31 +02:00
Anton Popov
df2d1ed638 fix reading of virtual columns in reverse order 2023-09-13 21:09:49 +00:00
Alexey Milovidov
aaa7025b1a
Merge pull request #54603 from fionera/use-env
use env to find bash
2023-09-13 23:50:55 +03:00
Kruglov Pavel
27df9b008e
Merge pull request #54370 from arthurpassos/arrow_parquet_account_for_monotonically_increasing_offsets_across_batches
Account for monotonically increasing offsets across multiple batches on arrow-CH conversion
2023-09-13 19:58:48 +02:00
slvrtrn
c0961d9378 Merge remote-tracking branch 'origin' into simplified-prepared-statements-for-mysql 2023-09-13 19:33:11 +02:00
slvrtrn
007a75c0ac PR review 2023-09-13 19:33:05 +02:00
Nikolay Degterinsky
140a466a1e
Merge pull request #54400 from evillique/adddate-function
Add `addDate` function for compatibility with MySQL
2023-09-13 18:59:26 +02:00
Tim Windelschmidt
7979090333 use env to find bash 2023-09-13 18:57:11 +02:00
Nikita Taranov
c54a171c6f impl 2023-09-13 17:55:59 +02:00
Robert Schulze
59cded9d84
Merge pull request #54563 from rschu1ze/issue-54541
Fix AST fuzzer crash in MergeTreeIndex{FullText|Inverted}
2023-09-13 16:29:06 +02:00
Alexander Tokmakov
a365557d9e
Merge pull request #54550 from ClickHouse/fix_zero_copy_garbage
Fix zero copy garbage
2023-09-13 15:02:05 +02:00
alesapin
e8055ba509
Merge pull request #54549 from ClickHouse/fix_redundant_checksums_doesnt_match_error
Fix rare case of CHECKSUM_DOESNT_MATCH error
2023-09-13 13:02:50 +02:00
Arthur Passos
10c368f40a attempt to make test faster 2023-09-13 07:25:55 -03:00
vdimir
77dd2a556a
Merge pull request #52870 from Avogar/fix-misleading-error
Fix misleading error message in OUTFILE with CapnProto/Protobuf
2023-09-13 11:30:04 +02:00
Robert Schulze
8c7a256632
Fix full text index fix 2023-09-13 07:57:48 +00:00
Robert Schulze
e69c1c2f9a
Fix inverted index fix 2023-09-13 07:56:35 +00:00
Alexey Milovidov
8d786cab33
Merge pull request #54566 from ClickHouse/revert-52645-optimize_uniq_to_count
Revert "Optimize uniq to count"
2023-09-13 09:14:24 +03:00
Alexey Milovidov
bd4aec0601
Revert "Optimize uniq to count" 2023-09-13 09:14:06 +03:00
Alexey Milovidov
f9af05f472
Merge pull request #54554 from rschu1ze/clang-format
clang-format: Disable namespace indentation and omit {} in if/for/while
2023-09-13 07:50:14 +03:00
pufit
2ddaa2f47f
Merge pull request #54547 from azat/keeper-non-interactive-confirm
Add a stateless test for keeper-client
2023-09-12 23:41:38 -04:00
pufit
7ea6f7bebc
Merge pull request #54551 from ClickHouse/pufit/keeper-client-tests-update-timeout
Increase default timeout in tests for keeper-client
2023-09-12 20:41:48 -04:00
robot-ch-test-poll4
c26c5a0726
Merge pull request #54555 from ClibMouse/z_ngram_fix
ngramDistance* queries fix for big endian platform
2023-09-13 02:35:26 +02:00
Nikolay Degterinsky
e648646598 Fixes 2023-09-12 23:11:58 +00:00
Robert Schulze
28068f11e1
Fix #54541 2023-09-12 21:23:23 +00:00
Arthur Passos
da8caeffd2 Merge branch 'master' into arrow_parquet_account_for_monotonically_increasing_offsets_across_batches 2023-09-12 17:50:36 -03:00
alesapin
18ab92eb4f Fix style 2023-09-12 21:57:46 +02:00
Suzy Wang
b90dd62409 ngramDistance* queries fix for big endian platform 2023-09-12 12:55:08 -07:00
alesapin
e17a824fec Fxi 2023-09-12 21:42:32 +02:00
alesapin
6ec65d6be7 Make function slightly more readable 2023-09-12 21:41:05 +02:00
Azat Khuzhin
ddb2718cdb Add stateless test for clickhouse keeper-client --no-confirmation
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-12 21:34:18 +02:00
Arthur Passos
4db2b173a0 remove useless comments 2023-09-12 16:21:28 -03:00
Robert Schulze
de201e6c42
Merge pull request #54552 from rschu1ze/informat_schema_docs
Docs: Update information_schema with case-insensitity
2023-09-12 21:20:47 +02:00
Robert Schulze
76c8f451ad
clang-format: Disable namespace indentation and omit {} in if/for/while
1. Disables namespace indentation in accordance with 16. of (*) and the
   majority of the codebase.
2. Disables {} for single-statement if/for/while in accordance with 17.
   of (*) and the majority of the codebase.

Note: clang-format is used manually and voluntarily, usually only on new
files. Nothing is automatically reformatted, this is only about how new
files look.

Motivated by https://github.com/ClickHouse/ClickHouse/pull/54115#discussion_r1322741846.

(*) https://clickhouse.com/docs/en/development/style#formatting
2023-09-12 19:20:22 +00:00
Mikhail f. Shiryaev
397a682d1c
Merge pull request #54441 from ClickHouse/vdimir/ci-commit-statis-update
Update automated commit status comment
2023-09-12 21:18:13 +02:00
Arthur Passos
83ac2bf508 add test 2023-09-12 16:14:28 -03:00
Robert Schulze
8eb12c33a8
Update information_schema.md 2023-09-12 20:33:13 +02:00
Robert Schulze
e587eae303
Docs: Update information_schema with case-insensitity 2023-09-12 18:09:54 +00:00
pufit
85b23e9403 Increase default timeout in tests for keeper-client 2023-09-12 14:06:57 -04:00