mergify[bot]
2adaf54d33
Merge branch 'master' into fix-whole-text-serialization
2021-11-22 14:00:51 +00:00
mergify[bot]
a9c1fd1647
Merge branch 'master' into fix-write-buffers
2021-11-22 13:59:31 +00:00
Anton Popov
43cfa4467b
Merge pull request #31476 from CurtizJ/merging-constraints
...
Merging #18787 (Constraints)
2021-11-22 15:57:59 +03:00
avogar
f0a0c70528
Fix tests
2021-11-22 15:21:15 +03:00
avogar
9bee988e16
Fix tests
2021-11-22 14:26:48 +03:00
avogar
ec9e87aff1
Fix deserializeWholeText
2021-11-22 14:26:48 +03:00
mergify[bot]
a7ba3e23a0
Merge branch 'master' into fix-write-buffers
2021-11-22 11:24:27 +00:00
Kruglov Pavel
814a36ba69
Merge pull request #31434 from Avogar/custom-with-names-and-types
...
Add formats CustomSeparatedWithNames/WithNamesAndTypes
2021-11-22 13:24:00 +03:00
zhangxiao871
5f10159a7d
Fix sparkbars are not aligned.
2021-11-22 18:07:08 +08:00
Nikolai Kochetov
b814f54f50
Merge pull request #31474 from amosbird/projection-improve6
...
Allow partition column to be used for minmax_count projection
2021-11-22 13:01:57 +03:00
Anton Popov
afe8d3c424
refactor merged index conditions
2021-11-21 22:49:34 +03:00
Alexey Milovidov
d604cf5573
Remove the infamous "unbundled" build
2021-11-21 13:58:26 +03:00
alexey-milovidov
faae69f631
Merge pull request #31534 from aiven/kmichel-fix-json-colum-name-encoding
...
Fix invalid JSON in column names
2021-11-21 11:34:33 +03:00
alexey-milovidov
6ef001fce5
Merge pull request #31556 from azat/fix-02010_lc_native
...
Fix 02010_lc_native flakiness (Query with id = 123456 is already running)
2021-11-21 11:33:35 +03:00
alexey-milovidov
4cdb40e3cd
Merge pull request #31565 from azat/fix-MySQLWire
...
Fix MySQLWire format (this will also fix performance tests)
2021-11-21 11:32:53 +03:00
Kruglov Pavel
d9c1a0c8ec
Merge branch 'master' into fix-write-buffers
2021-11-20 17:48:24 +03:00
Azat Khuzhin
6aa94ae032
Fix MySQLWire format (in case of multiple writes)
...
In case of multiple writes File() engine will set doNotWritePrefix(),
and this will avoid serializations initilization, move this to do this
always.
Fixes : #31004
2021-11-20 15:26:21 +03:00
Kevin Michel
edbeeaf6ec
Fix invalid JSON in column names
...
If the column name contains invalid UTF-8 sequences
and the output data types are all considered safe,
then the output will not be sanitized and the generated
JSON will be invalid.
A minimal reproduction case is :
`SELECT length('\x80') FORMAT JSONCompact`
where we auto-generate a non-UTF-8 column name with only
integer outputs, whereas :
`SELECT '\x80' FORMAT JSONCompact`
would be sanitized because the column type is String and
will trigger UTF-8 sanitization over the entire document.
2021-11-20 12:35:41 +01:00
Azat Khuzhin
71a691e9ab
Make 01114_database_atomic more stable in debug builds
...
By reducing number of clickhouse-client invocation, since it is pretty
heavy in debug builds.
2021-11-20 14:27:34 +03:00
kssenii
29978f9707
Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view
2021-11-20 12:13:39 +03:00
Azat Khuzhin
fbaa6804c2
Fix 02010_lc_native flakiness (Query with id = 123456 is already running)
2021-11-20 10:25:12 +03:00
Azat Khuzhin
c70cc62b5f
Add more checks in 02010_lc_native
2021-11-20 10:25:10 +03:00
Kruglov Pavel
eb1cc834dc
Merge branch 'master' into custom-with-names-and-types
2021-11-19 16:51:25 +03:00
alesapin
583c9a5720
Update shell_config.sh
2021-11-19 16:36:13 +03:00
alesapin
7b7df05e33
Update shell_config.sh
2021-11-19 13:49:04 +03:00
SuperDJY
dd2972b8c3
return fake create query when executing show create table
on system's tables. ( #31391 )
...
* clarify that cannot show create table of system's tables
* clarify that cannot show create table of system's tables in the document
* bypass test style-check for required `database=currentDatabase()` because `show create table` do not have condition
* rename supportsShowCreateTable to isSystemStorage
* build fake create query for show create table of system's tables
* fix tests for show create table on system's table:
1. only build fake create query when cannot get real query
2. only test rocksdb when it's enabled.
* fix test for show create table system.tables
* fix test for ASTCreateQuery set table and database
* change to LOGICAL_ERROR when cannot get in_memory metadata
Co-authored-by: tavplubix <tavplubix@gmail.com>
* implement common getCreateQueryFromStorage
Co-authored-by: tavplubix <tavplubix@gmail.com>
2021-11-19 13:25:55 +03:00
alesapin
3f8f08e816
Slightly better
2021-11-19 12:30:58 +03:00
Amos Bird
c47ec31617
fix
2021-11-19 11:51:05 +08:00
alexey-milovidov
12a471507e
Merge pull request #31169 from sundy-li/notlike-fix
...
ISSUES-30801: Remove not like function into RPNElement
2021-11-18 23:40:57 +03:00
alexey-milovidov
b30f9124c0
Merge pull request #31008 from kssenii/sql-json-fix-2
...
Improve usability of JSON_VALUE
2021-11-18 23:39:17 +03:00
Amos Bird
d1a14d76f1
fix
2021-11-19 02:29:35 +08:00
Amos Bird
c988a4e770
fix again
2021-11-18 23:09:17 +08:00
Anton Popov
69559a4fd9
fix convertion to CNF
2021-11-18 17:54:07 +03:00
kssenii
6a39d871b2
Merge branch 'master' of github.com:ClickHouse/ClickHouse into vxider-window-view
2021-11-18 17:29:11 +03:00
kssenii
11ab1f1ae5
Fix
2021-11-18 08:46:31 +00:00
kssenii
4016530b99
Merge branch 'master' of https://github.com/ClickHouse/ClickHouse into sql-json-fix-2
2021-11-18 08:33:50 +00:00
Vladimir C
0a3a43c017
Merge pull request #30984 from qieqieplus/untuple-func-alias
2021-11-18 10:42:20 +03:00
Kruglov Pavel
f27fcf8372
Merge pull request #31004 from Avogar/output-formats
...
Small refactoring in formats
2021-11-17 20:44:46 +03:00
Anton Popov
dfb9bc2a01
minor fixes in constraints
2021-11-17 18:43:02 +03:00
Amos Bird
feb3a12d34
fix
2021-11-17 23:11:23 +08:00
avogar
4b332aea21
Temporary test fix
2021-11-17 17:54:15 +03:00
Amos Bird
7b9a19f066
enhance minmax_count projection
2021-11-17 22:05:57 +08:00
mergify[bot]
41fa94f482
Merge branch 'master' into notlike-fix
2021-11-17 07:14:21 +00:00
alexey-milovidov
4f5745108e
Merge pull request #31456 from azat/client-editor
...
Fix waiting of the editor during interactive query editing
2021-11-17 10:13:04 +03:00
Kseniia Sumarokova
d1374481df
Merge pull request #31457 from azat/local-pager
...
Add --pager support for clickhouse-local
2021-11-17 09:29:56 +03:00
Azat Khuzhin
e26d755b9b
Fix 01610_client_spawn_editor
...
quotes are superfluous, and after shell wrapper had been removed it had
been broken:
24484 execve("/src/ch/clickhouse/tests/queries/0_stateless\"/01610_client_spawn_editor_open.editor\"", ["/src/ch/clickhouse/tests/queries/0_stateless\"/01610_client_spawn_editor_open.editor\"", "clickhouse_replxx_GWyu5Y.sql"], 0x7fffffffcf90 /* 100 vars */) = -1 ENOENT (No such file or directory)
24484 write(1, "Cannot execute /src/ch/clickhouse/tests/queries/0_stateless\"/01610_client_spawn_editor_open.editor\": errno: 2, strerror: No such file or directory\n", 147) = 147
24484 exit_group(-1) = ?
2021-11-16 23:40:05 +03:00
Azat Khuzhin
7a22b8f3d4
Add a test for --pager in clickhouse-local/clickhouse-client
2021-11-16 22:25:32 +03:00
avogar
8e9783388b
Add formats CustomSeparatedWithNames/WithNamesAndTypes
2021-11-16 17:10:30 +03:00
Nikolay Degterinsky
2f6a565b06
Merge branch 'master' into query_parameters
2021-11-16 10:37:58 +00:00
tavplubix
710fbebafc
Merge pull request #30977 from ClickHouse/check_dependencies_on_drop
...
Check dependencies on DROP TABLE
2021-11-16 11:38:42 +03:00
Nikolay Degterinsky
417b12d0d8
Fix test
2021-11-15 21:02:09 +00:00
Nikolay Degterinsky
ba50e8387d
Merge branch 'master' into query_parameters
2021-11-15 19:55:54 +00:00
Nikolay Degterinsky
5c5897c1cd
Apply suggestions from code review
...
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2021-11-15 17:57:26 +00:00
Kseniia Sumarokova
b040890fcf
Merge pull request #31420 from kssenii/fix-positional-args-bug
...
Fix group by with positional args
2021-11-15 20:42:58 +03:00
Kruglov Pavel
23c36f125e
Update 02115_write_buffers_finalize.sh
2021-11-15 18:19:54 +03:00
Kruglov Pavel
d28989b00e
Update 02115_write_buffers_finalize.sh
2021-11-15 16:08:16 +03:00
kssenii
6fe803e31e
Fix
2021-11-15 15:09:04 +03:00
avogar
8f7be52ac4
Update test, remove commented code
2021-11-15 14:58:18 +03:00
Alexander Tokmakov
416a82b99a
Merge branch 'master' into check_dependencies_on_drop
2021-11-15 13:35:45 +03:00
Azat Khuzhin
fa317e96e8
Do not try to resolve temporary tables from global context
2021-11-15 10:32:19 +03:00
qieqieplus
b6aa781c9b
add dot separator
2021-11-15 14:47:34 +08:00
Kseniia Sumarokova
846fbd059b
Merge pull request #31403 from kssenii/fix-client-output
...
Fix client
2021-11-14 15:01:30 +03:00
kssenii
9ea8408d8d
Add test
2021-11-14 07:58:19 +00:00
alexey-milovidov
5712f9077d
Merge pull request #31393 from azat/fix-stderr-before-reopen
...
Check stderr is writable before reopining it (to avoid losing errors)
2021-11-14 01:44:08 +03:00
alexey-milovidov
e323b83f6a
Merge pull request #30876 from pmed/backslash_letter_interactive_input
...
add aliases for `\<letter>` interactive client commands
2021-11-14 01:43:13 +03:00
Azat Khuzhin
ed4b5c7640
Check stderr is writable before reopining it (to avoid losing errors)
2021-11-13 22:26:05 +03:00
mergify[bot]
5d0306ed0c
Merge branch 'master' into notlike-fix
2021-11-12 22:35:10 +00:00
Kruglov Pavel
051a9e7c69
Merge pull request #31249 from vitlibar/fix-show-grants
...
Fix SHOW GRANTS when partial revokes are used.
2021-11-12 15:49:12 +03:00
tavplubix
8916d3bebf
Merge pull request #31305 from ClickHouse/rename_support_ifexists
...
Merging #31081
2021-11-12 15:22:43 +03:00
Anton Popov
7769ed76ce
Merge pull request #31261 from CurtizJ/tuple-element-to-subcolumn
...
Optimize tupleElement to reading of subcolumn
2021-11-12 15:00:53 +03:00
Anton Popov
4c6c80b9a2
Merge pull request #31044 from kssenii/fix-storage-merge-with-aliases-and-where
...
Fix StorageMerge with aliases and where
2021-11-11 21:46:02 +03:00
Nikolay Degterinsky
7b5954b736
Merge branch 'master' into query_parameters
2021-11-11 11:43:00 +00:00
tavplubix
dd720ec9b4
Merge pull request #31252 from ClickHouse/warning_for_obsolete_settings
...
Show warning if some obsolete setting changed
2021-11-11 13:41:49 +03:00
alesapin
8cb3c5cb57
Merge pull request #31248 from ClickHouse/add_flaky_check
...
Add flaky check to new CI
2021-11-11 12:44:36 +03:00
alesapin
2f42a5137d
Trying flaky check
2021-11-11 11:44:53 +03:00
Nikolai Kochetov
b062c8ca51
Merge pull request #31031 from cmsxbc/throw-exception-offset-fetch-without-order-by
...
improve error message while using OFFSET FETCH clause without ORDER BY
2021-11-11 11:37:16 +03:00
Vladimir C
b85710a673
Merge pull request #31105 from abel-cheng/fix-rewrite-in-local-in
2021-11-11 10:02:52 +03:00
cmsxbc
07708e99a5
fix ErrorCode in test because of confilict
2021-11-11 08:22:57 +08:00
cmsxbc
bb0f929a39
add test for offset fetch without order by
2021-11-11 08:20:47 +08:00
avogar
c521a9131a
Small refactoring of WriteBiffer-s
2021-11-11 02:11:18 +03:00
alexey-milovidov
e3650b865a
Merge pull request #30965 from kssenii/intersect-except-fix
...
Fix cases when intersect / except is not checked
2021-11-11 01:59:59 +03:00
Kseniia Sumarokova
c119feeb8c
Merge pull request #31225 from kssenii/relax-test
...
Relax test 02026_storage_filelog_largefile.sh
2021-11-11 01:04:12 +03:00
Anton Popov
47e19a4cd9
optimize tupleElement to reading of subcolumn
2021-11-10 22:24:28 +03:00
Anton Popov
833652e8f4
Merge branch 'nikvas0/simple_optimizations' of git://github.com/nikvas0/ClickHouse into merging-constraints
2021-11-10 19:35:28 +03:00
kssenii
a2326f5035
Fix
2021-11-10 19:03:54 +03:00
Alexander Tokmakov
9d83832bde
show warning if some obsolete setting changed
2021-11-10 18:49:13 +03:00
Vitaly Baranov
b74999b6bd
Fix SHOW GRANTS when partial revokes are used.
2021-11-10 17:03:02 +03:00
Vladimir C
19e2cbcabc
Apply suggestions from code review
2021-11-10 14:44:35 +03:00
abel-wang
3b82c36049
add tests
2021-11-10 16:38:01 +08:00
kssenii
d2319e59a1
Relax test
2021-11-10 07:55:49 +00:00
abel-wang
4ad729c7d4
add tests
2021-11-10 14:38:40 +08:00
Anton Popov
c2eb9e7e78
optimize mapContains to subcolumn
2021-11-10 00:44:51 +03:00
sundy-li
45cab9f3b0
Add stable order by tests result
2021-11-09 21:31:31 +08:00
Kruglov Pavel
17085183bf
Merge pull request #31042 from Avogar/hdfs-bad-url
...
Add additional hdfs url check
2021-11-09 16:23:59 +03:00
Kruglov Pavel
868dc9c6c5
Merge pull request #31036 from Avogar/hdfs-fixes
...
Fix assert in hdfs, add test
2021-11-09 16:23:11 +03:00
kssenii
bfde7fd36c
Better
2021-11-09 12:06:43 +00:00
Dmitry Novik
406bb4d997
Merge pull request #28965 from nicelulu/issues_28774
...
128bit hash-functions accepting arbitrary list of arguments
2021-11-09 14:40:25 +03:00
kssenii
ee9ceaf7d4
Better
2021-11-09 14:27:17 +03:00
sundy-li
3a981de643
ISSUES-30801: Remove not like function into RPNElement
2021-11-09 10:57:37 +08:00
mergify[bot]
f55e1439cb
Merge branch 'master' into output-formats
2021-11-08 15:33:45 +00:00
kssenii
dead99011b
Merge branch 'master' of github.com:ClickHouse/ClickHouse into intersect-except-fix
2021-11-08 16:15:33 +03:00
vdimir
56bc802ee2
Support join on constant
2021-11-08 15:44:13 +03:00
kssenii
ab44123f49
Fix
2021-11-08 13:00:42 +03:00
vicgao
8e7023cdb4
rename database/table/dictionary support IF EXISTS syntax
2021-11-08 16:27:10 +08:00
Kseniia Sumarokova
908d78febe
Merge pull request #30851 from kssenii/clickhouse-local-improve
...
Allow delayed interactive mode
2021-11-08 10:07:29 +03:00
tavplubix
94a66f724e
Merge pull request #30135 from FArthur-cmd/add_parallel_reading_from_infile
...
Add parallel file reading `FROM INFILE` in client
2021-11-06 15:54:27 +03:00
abel-wang
53341acdeb
Add global keywords in subqueries.
2021-11-06 11:07:33 +08:00
Artur
93b8863cee
Add test for settings
2021-11-05 18:33:50 +00:00
Artur
ae13237c55
remove check for settings from test
2021-11-05 11:07:31 +00:00
Artur
f6e7fe67c4
improve tests
2021-11-05 10:44:41 +00:00
vicgao
ec2c70ab75
rename/exchange database/table/dictionary support IF EXISTS syntax
2021-11-04 22:35:34 +08:00
kssenii
824c5b27da
Add test with emoji
2021-11-04 17:11:01 +03:00
kssenii
26c4affc18
Fixes
2021-11-04 11:00:35 +00:00
kssenii
9cfa2c4578
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sql-json-fix-2
2021-11-04 13:04:00 +03:00
avogar
2dd4393ca1
Small refactoring in formats
2021-11-03 20:07:05 +03:00
Alexander Tokmakov
23e8cc24b5
fix tests
2021-11-03 18:06:19 +03:00
vdimir
08545795b5
Separate option for enabling fuse syntax for sum, avg, count
2021-11-03 15:13:09 +03:00
kssenii
b1c4a48d94
Update test
2021-11-03 14:40:35 +03:00
kssenii
ae8a451cef
Merge branch 'master' of github.com:ClickHouse/ClickHouse into sql-json-fix-2
2021-11-03 14:37:50 +03:00
kssenii
38466cb76f
Storage merge fix aliases with where
2021-11-03 14:17:11 +03:00
Kruglov Pavel
77f5ef476a
Merge branch 'master' into hdfs-bad-url
2021-11-03 14:08:55 +03:00
avogar
3839d521a0
Add additional hdfs url check
2021-11-03 14:01:50 +03:00
Kruglov Pavel
5b60497e51
Update 02113_hdfs_assert.sh
2021-11-03 13:39:37 +03:00
avogar
f2652051e3
Fix assert in hdfs, add test
2021-11-03 12:53:33 +03:00
Kruglov Pavel
327a34e9da
Merge pull request #30497 from Avogar/null-deserialization
...
Add custom null representation support for TSV/CSV input formats, fix Nullable(String) deserializing in some formats
2021-11-03 11:30:25 +03:00
Kruglov Pavel
a22ab40468
Merge pull request #24539 from ildus/map_combinator
...
add Map combinator for the Map type
2021-11-03 11:25:23 +03:00
Kruglov Pavel
2f950ee138
Merge pull request #30927 from CurtizJ/with-fill-interval
...
Support `INTERVAL` type in `STEP` clause for `WITH FILL` modifier
2021-11-03 11:23:21 +03:00
Anton Popov
2a617e6a5a
Merge pull request #31003 from kssenii/sql-json-fix
...
Allow spaces in JSONPath.
2021-11-03 00:59:54 +03:00
mergify[bot]
1ba871a664
Merge branch 'master' into fix-format-row
2021-11-02 21:56:44 +00:00
kssenii
feb3d8bc75
Merge branch 'master' of github.com:ClickHouse/ClickHouse into clickhouse-local-improve
2021-11-02 20:01:15 +00:00
Kseniia Sumarokova
065106c299
Merge pull request #30690 from kssenii/partitioned-write
...
Partitioned write for file, hdfs, url storages and table functions
2021-11-02 22:58:16 +03:00
kssenii
79bb4fdba4
Fix
2021-11-02 21:57:36 +03:00
Alexander Tokmakov
c4108ab672
support alter
2021-11-02 17:30:22 +03:00
Kruglov Pavel
1cb708fd1b
Update 02113_format_row_bug.sql
2021-11-02 17:13:58 +03:00
kssenii
01684ad05a
Fix
2021-11-02 16:53:47 +03:00
avogar
62c5951dd7
Fix segfault in formatRow function
2021-11-02 16:26:14 +03:00
Alexander Tokmakov
56aeff734a
Merge branch 'master' into check_dependencies_on_drop
2021-11-02 16:15:30 +03:00
Alexander Tokmakov
598dbe04db
fix tests, support rename
2021-11-02 15:58:45 +03:00
Kruglov Pavel
1f8535c02b
Merge branch 'master' into null-deserialization
2021-11-02 12:15:21 +03:00
Kruglov Pavel
1a228e8071
Update 01852_map_combinator.reference
2021-11-02 12:14:00 +03:00
qieqieplus
825f37d222
add test sql
2021-11-02 12:01:01 +08:00
Kruglov Pavel
9a1275cb10
Merge pull request #30178 from Avogar/tsv-csv
...
Refactor and improve TSV, CSV, JSONCompactEachRow, RowBinary formats. Fix bugs in formats
2021-11-02 00:38:30 +03:00
Alexander Tokmakov
2b566c5bdf
basic check for dependencies on drop table
2021-11-01 22:20:18 +03:00
Kseniia Sumarokova
0a83c391c1
Update 02026_storage_filelog_largefile.sh
2021-11-01 16:56:09 +03:00
kssenii
35349056b8
Fix
2021-11-01 16:33:19 +03:00
Vladimir C
9d967e9883
Merge pull request #30840 from nickitat/nickitat_any_type_4_arrayStringConcat
2021-11-01 11:48:45 +03:00
Anton Popov
07d6013bc6
fix with fill
2021-10-31 22:48:12 +03:00
Pavel Medvedev
882d469a09
add test case for backslash letter commands
...
Using `expect` script because `\letter` aliases are
implemented only in interactive client mode.
2021-10-31 20:34:40 +01:00
alexey-milovidov
f652c8ce24
Merge pull request #30852 from ucasfl/modify-table-comment
...
enable modify table comment of rest table engine
2021-10-31 22:12:07 +03:00
Kseniia Sumarokova
ca48c5f302
Merge pull request #30832 from ucasfl/filelog-fix
...
filelog engine tests improve
2021-10-31 21:27:48 +03:00