Commit Graph

2860 Commits

Author SHA1 Message Date
Nikolay Degterinsky
256a699f43 Merge remote-tracking branch 'upstream/master' into perf-huge-ast 2023-09-24 00:29:03 +00:00
Alexander Tokmakov
21ffbd88de
Merge pull request #54859 from ClickHouse/fix_zero_copy_locks
Fix zero copy locks with hardlinks
2023-09-22 18:27:03 +02:00
Vitaly Baranov
3a2ca1f69c
Merge pull request #51261 from evillique/users-valid-until
Add VALID UNTIL clause for users
2023-09-22 12:38:30 +02:00
Pavel Novitskiy
853e3f0aa7
Add drop table IF EMPTY (#48915) 2023-09-21 09:20:18 -04:00
Jordi Villar
05a1c96258 Interval operator support plural literals 2023-09-20 23:00:25 +02:00
Alexander Tokmakov
ec80068611 add a test for no such key 2023-09-20 22:37:24 +02:00
robot-clickhouse
c7c4166a73
Merge pull request #54670 from ClickHouse/fix-parser-unit-tests
Fix parser unit tests
2023-09-20 02:24:27 +02:00
János Benjamin Antal
2ea324e44e Add explanatory comment 2023-09-18 09:59:30 +00:00
János Benjamin Antal
66265e879d Make the transformation to one line reversible 2023-09-18 09:59:20 +00:00
Robert Schulze
f5e8028bb1
Merge pull request #54642 from rschu1ze/broken-re2st
Remove broken lockless variant of re2
2023-09-17 15:30:57 +02:00
János Benjamin Antal
358f22d18a Update PRQL unit tests to latest PRQL version 2023-09-15 12:31:30 +00:00
János Benjamin Antal
68c6bd8826 Make the failed message single line to fix result parsing 2023-09-15 12:04:22 +00:00
Robert Schulze
7b378dbad3
Remove broken lockless variant of re2 2023-09-14 16:40:42 +00: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
Tim Windelschmidt
7979090333 use env to find bash 2023-09-13 18:57:11 +02:00
Nikolay Degterinsky
268c45d900 Merge remote-tracking branch 'upstream/master' into users-valid-until 2023-09-12 23:44:22 +00:00
Kruglov Pavel
21a2cf7707
Merge pull request #54337 from wat-ze-hex/show-functions-2023-09-04
Add SHOW FUNCTIONS support to client
2023-09-11 13:03:02 +02:00
Nikolay Degterinsky
39b11f47f5
Merge pull request #54403 from evillique/fix-column-formatting
Fix incorrect formatting of CREATE query with PRIMARY KEY
2023-09-08 22:14:49 +02:00
robot-ch-test-poll4
839f69c940
Merge pull request #53765 from vitlibar/sync-uuids-of-tables-on-replicas
Sync UUIDs of tables on replicas after RESTORE
2023-09-08 17:30:32 +02:00
Julia Kartseva
59844b0a9d Add SHOW FUNCTIONS support to client
Accepts CH client queries in the form of
SHOW FUNCTIONS [LIKE | ILIKE '< pattern>']

Retrieves all columns from `functions` table in system database.

Fixes #52757
2023-09-07 14:08:50 -07:00
Nikolay Degterinsky
e821cd4511 Fix formatting of column declaration 2023-09-07 12:01:07 +00:00
Alexander Sapin
518d4b4357 Merge branch 'master' into alter-table-add-comment 2023-09-06 12:34:04 +02:00
Vitaly Baranov
82b1c09150 Simplify coordination of UUIDs. 2023-09-05 20:49:43 +02:00
robot-clickhouse
926c5636dd
Merge pull request #42599 from ClickHouse/build-fuzzer-protocol
libFuzzer: add CI fuzzers build, add tcp protocol fuzzer, fix other fuzzers.
2023-09-04 22:41:54 +02:00
Yakov Olkhovskiy
361b21b416 fix fuzzers, cmake refactor, add target fuzzers 2023-09-01 14:20:50 +00:00
Nikita Mikhaylov
c08fc52812
Merge pull request #54067 from ClickHouse/vdimir/is_not_distinct_from_operator
Parse IS NOT DISTINCT and <=> operators
2023-08-31 17:14:42 +02:00
Alexey Milovidov
8c28e51425 Add suport for mathematical minus character 2023-08-31 04:59:58 +02:00
Alexey Milovidov
6962070baa Add suport for mathematical minus character 2023-08-31 04:56:47 +02:00
vdimir
dd094d1f55
Parse IS NOT DISTINCT and <=> operators 2023-08-30 13:12:43 +00:00
chen768959
4db7b866ad If there is a comma after 'from' then the first one was a name of a column 2023-08-29 15:20:23 +08:00
Alexey Milovidov
0c0e8e548a
Merge pull request #53864 from jsc0218/ignore-foreign-keys-in-tables-definition
Ignore foreign keys in tables definition
2023-08-29 03:09:54 +03:00
jsc0218
c91b409bcf remove trailing white spaces to pass format check 2023-08-28 09:19:46 -04:00
jsc0218
bf12415215 Ignore foreign keys in tables definition 2023-08-27 21:18:13 -04:00
Yakov Olkhovskiy
264877b2a5 fix fuzzers, add bundle build target fuzzers 2023-08-27 19:47:11 +00:00
Yakov Olkhovskiy
b9425d8c4b no-newline-eof for Parsers/fuzzers/codegen_fuzzer 2023-08-27 15:47:29 +00:00
Yong Wang
e5f968b0d8 Kusto-phase2: enabled fuzzing test for dialect prql 2023-08-26 07:40:40 -07:00
Yong Wang
e08382a8c7 Kusto-phase3: fix another style 2023-08-26 07:40:40 -07:00
Yong Wang
ff9b985490 Kusto-phase2: fix style 2023-08-26 07:40:40 -07:00
Yong Wang
1c3a3debb4 Kusto-phase2: fix unit test 2023-08-26 07:40:40 -07:00
Yong Wang
828f4a67b7 Kusto-phase2: use seperated path to parse kql query 2023-08-26 07:40:40 -07:00
Yong Wang
5621ca5984 Kusto-phase2: allow negative operators for kql table function only 2023-08-26 07:40:40 -07:00
Yong Wang
4a5f462e43 Kusto-phase2: prevent pass NaN and inf to intExp2 2023-08-26 07:40:40 -07:00
Yong Wang
350516ddf5 Kusto-phase2: fix unit test 2023-08-26 07:40:40 -07:00
Yong Wang
02a2a70add Kusto-phase2: fix another intExp2 integer overflow 2023-08-26 07:40:40 -07:00
Yong Wang
0a26b6fde3 Kusto-phase2 : fix integer overflow for intExp2 2023-08-26 07:40:40 -07:00
Yong Wang
89d4644f93 Kusto-phase3: add round fuction to p2 to avoid different result on different machine 2023-08-26 07:40:40 -07:00
Yong Wang
1ec574057a Kusto-phase2: fixed some functional test 2023-08-26 07:40:40 -07:00
Yong Wang
815cf6b55d Kusto-phase2: fix KustoLayer state 2023-08-26 07:40:39 -07:00
Yong Wang
cafb9f810e Kusto-phase2: fix unit test 2023-08-26 07:40:39 -07:00
Yong Wang
87d3ba87a7 Kusto-phase2: update pipe index issue 2023-08-26 07:40:39 -07:00
Yong Wang
91f82150a5 Kusto-phase2: remove unnecessary changes 2023-08-26 07:40:39 -07:00
Yong Wang
bfb6184ccf Kusto-phase2: fix style, remove trailing whitespaces 2023-08-26 07:40:39 -07:00
Yong Wang
c9e180cc87 Kusto-phase2 : adjust time format 2023-08-26 07:40:39 -07:00
Yong Wang
5cc3f4708c Kusto-phase2: restore to kusto dialect only, fix some style issue 2023-08-26 07:40:39 -07:00
Yong Wang
523bcf550d Kusto-phase2: fix operators, unit test and functional test. 2023-08-26 07:40:39 -07:00
Yong Wang
6f6a103c5f Kusto-phase2: remove dialect auto option. use table function instead of subquery for kql() function fix type. 2023-08-26 07:40:39 -07:00
Larry Luo
9e82ed1d04 Fixed clang-tidy and Arch tests 2023-08-26 07:40:39 -07:00
Larry Luo
1105ac624b Fixed style issues 2023-08-26 07:40:38 -07:00
Larry Luo
3a245f5cba removed trailing whitespaces. 2023-08-26 07:40:38 -07:00
Larry Luo
707fd10544 Fixed style issues 2023-08-26 07:40:38 -07:00
Larry Luo
6aa084379e Fixed build issue 2023-08-26 07:40:38 -07:00
Larry Luo
8a6e28fe27 fix a style issue 2023-08-26 07:40:38 -07:00
Larry Luo
b2986f8900 Fixed unit and functional tests 2023-08-26 07:40:38 -07:00
ltrk2
e4549b7eb2 Implement KQL UUID base64 coding functions 2023-08-26 07:40:38 -07:00
ltrk2
5d8d2c4038 Fix build errors 2023-08-26 07:40:38 -07:00
Yong Wang
eef88c627e Kusto-phase2, fix kql subquery for master branch 2023-08-26 07:40:38 -07:00
root
832bd7400f fix unit test 2023-08-26 07:40:38 -07:00
Yong Wang
fe77f9f524 Kusto-phase2: updated release note 2023-08-26 07:40:38 -07:00
HeenaBansal2009
fa842ea34f Initial Commit 2023-08-26 07:40:37 -07:00
root
272fa68c1e modified unit test 2023-08-26 07:40:37 -07:00
root
eb7af85db3 endofyear() bug_fix_1369 2023-08-26 07:40:37 -07:00
root
837298ea5e Bug fix 1370 2023-08-26 07:40:37 -07:00
Yong Wang
0c0395c961 Kusto-phase2 : add distinct operator 2023-08-26 07:40:37 -07:00
root
c8e516ead1 Bug fix 1489 2023-08-26 07:40:37 -07:00
root
8958a40a60 bug fixe issue-1420 2023-08-26 07:40:37 -07:00
root
8a783cecd7 modified unit test 2023-08-26 07:40:37 -07:00
root
d1f18edd3e updated unit and functional tests 2023-08-26 07:40:37 -07:00
root
e32f717700 removed unwanted header file 2023-08-26 07:40:37 -07:00
root
3778a8c16f addressed reviewed change requests made by Yong 2023-08-26 07:40:37 -07:00
root
deae7722a3 fixed bug #1368 2023-08-26 07:40:36 -07:00
Yong Wang
b6670fefaf Kusto-phase2 : fix direct array index, fix functional test 2023-08-26 07:40:36 -07:00
HeenaBansal2009
a164e759f5 Rebased with Kusto-phase2 2023-08-26 07:40:36 -07:00
HeenaBansal2009
b3f028e9c5 Tetscases updated 2023-08-26 07:40:36 -07:00
HeenaBansal2009
a17c2efdc5 handled error scenarios 2023-08-26 07:40:36 -07:00
HeenaBansal2009
03a3166d5e Addressed review comments 2023-08-26 07:40:36 -07:00
HeenaBansal2009
e3bf06f035 Updated release notes 2023-08-26 07:40:36 -07:00
HeenaBansal2009
c88a06c210 Fixed testcases 2023-08-26 07:40:36 -07:00
HeenaBansal2009
a4f2c5d2c7 Refactored Parse_version , parse_csv and extract_json 2023-08-26 07:40:36 -07:00
HeenaBansal2009
20089be3b0 Addressed review comments 2023-08-26 07:40:36 -07:00
HeenaBansal2009
c00e31f76b Updated release notes 2023-08-26 07:40:36 -07:00
HeenaBansal2009
a42e026f69 String functions -phase 2 low priority defer ones 2023-08-26 07:40:36 -07:00
HeenaBansal2009
4d1e014e48 Updated tests 2023-08-26 07:40:36 -07:00
HeenaBansal2009
3bb37f01a4 Updated tests 2023-08-26 07:40:35 -07:00
HeenaBansal2009
aa704705ba Fixed #1268 2023-08-26 07:40:35 -07:00
HeenaBansal2009
2ef4d6d2f9 Added Functional tests 2023-08-26 07:40:35 -07:00
HeenaBansal2009
60d9291de2 Bug fixes 2023-08-26 07:40:35 -07:00
HeenaBansal2009
1df3f6f6ce Bug fixes 2023-08-26 07:40:35 -07:00
Yong Wang
4c027a4fde Kusto-phase2: fix extend bugs, summarize alias 2023-08-26 07:40:35 -07:00
root
38c204cb4e fix functional test failure 2023-08-26 07:40:35 -07:00
root
fc23a6d957 addressed review comments made by Yong 2023-08-26 07:40:35 -07:00