Alexey Milovidov
7365f4e32b
Add modifications
2024-03-23 01:43:28 +01:00
Alexey Milovidov
18c016caaa
Support for --output-format in client
2024-03-22 21:06:36 +01:00
Alexey Milovidov
4d113c2190
Merge pull request #61508 from ClickHouse/generic-clickhouse-local-fuzzer
...
Generic fuzzer of query text in clickhouse-local
2024-03-21 21:17:28 +03:00
Alexey Milovidov
14f45bfa74
Merge pull request #61679 from evillique/fix-msan-issue
...
Fix use-of-uninitialized-value in HedgedConnections
2024-03-21 18:09:40 +03:00
Alexey Milovidov
784de2dca3
Merge branch 'master' into generic-clickhouse-local-fuzzer
2024-03-21 03:18:05 +01:00
Nikolay Degterinsky
93dd212f6f
Fix use-of-uninitialized-value in HedgedConnections
2024-03-20 23:55:25 +00:00
Alexey Milovidov
6f4ce33f02
Change how fuzzer arguments are parsed
2024-03-20 22:12:57 +01:00
Alexander Tokmakov
d4d19c611b
Merge branch 'master' into signal_handlers_in_client
2024-03-20 19:38:28 +01:00
Kruglov Pavel
e7e11d738b
Merge branch 'master' into revert-61200-revert-60430-max-parallel-replicas-validate
2024-03-20 13:59:38 +01:00
Alexey Milovidov
7b7e260585
Merge remote-tracking branch 'origin/master' into generic-clickhouse-local-fuzzer
2024-03-20 01:28:28 +01:00
Raúl Marín
de855ca917
Reduce header dependencies
2024-03-19 17:04:29 +01:00
avogar
dba72bf9c5
Fix
2024-03-19 10:02:35 +00:00
avogar
31d5049f80
Move logic of ignoring drop queries to server
2024-03-18 16:26:05 +00:00
avogar
aadc610739
Merge branch 'master' of github.com:ClickHouse/ClickHouse into better-stress-upgrade-checks
2024-03-18 15:27:58 +00:00
Robert Schulze
c17536c3b3
Enable clang-tidy in headers
2024-03-18 08:00:09 +00:00
Alexey Milovidov
2eb7de859d
Correct arguments parsing
2024-03-18 02:35:32 +01:00
Alexey Milovidov
1a61da1bae
Replace getFuzzerData with query text fuzzer in clickhouse-local
2024-03-18 02:17:24 +01:00
Alexey Milovidov
01136bbc3b
Limit backtracking in parser
2024-03-17 19:54:45 +01:00
avogar
2e9130ca1e
Better
2024-03-15 20:30:44 +00:00
avogar
aadfc37dda
Merge branch 'master' of github.com:ClickHouse/ClickHouse into better-stress-upgrade-checks
2024-03-15 20:27:16 +00:00
avogar
fa9d9ea3f7
Ignore DROP queries in stress test with 1/2 probability, use TRUNCATE instead of ignoring DROP in upgrade check for Memory/JOIN tables
2024-03-15 20:23:39 +00:00
Raúl Marín
b21a5fec7b
Fix broken list and thank clang tidy
2024-03-14 15:06:08 +01:00
Raúl Marín
617138cf48
Teach the fuzzer to use other numeric types
2024-03-13 16:54:28 +01:00
Nikita Mikhaylov
ec3f24e31b
Merge branch 'master' of github.com:ClickHouse/ClickHouse into signal_handlers_in_client
2024-03-12 14:52:07 +01:00
avogar
a065231ca1
Remove unused error code
2024-03-12 12:07:36 +00:00
avogar
dd6599868a
Better check for 0 setting value
2024-03-12 12:06:25 +00:00
Nikita Mikhaylov
9dbd380b50
Dont handle SIGTERM and others for client
2024-03-11 22:40:19 +00:00
Kruglov Pavel
5608005b34
Revert "Revert "Don't allow to set max_parallel_replicas to 0 as it doesn't make sense""
2024-03-11 21:22:45 +01:00
Kruglov Pavel
a90a6e9a27
Revert "Don't allow to set max_parallel_replicas to 0 as it doesn't make sense"
2024-03-11 21:05:44 +01:00
Nikita Mikhaylov
ff4ae13d9a
Print only fatals
2024-03-11 18:26:23 +00:00
Nikita Mikhaylov
37affa6a09
Merge branch 'master' of github.com:ClickHouse/ClickHouse into signal_handlers_in_client
2024-03-11 17:49:59 +00:00
Kruglov Pavel
1c1336bdc0
Merge pull request #60430 from Avogar/max-parallel-replicas-validate
...
Don't allow to set max_parallel_replicas to 0 as it doesn't make sense
2024-03-11 18:04:54 +01:00
Sema Checherinda
80179e50e4
Merge pull request #58845 from ClickHouse/chesema-session-pool
...
HTTP connections pool
2024-03-10 14:06:59 +01:00
Sema Checherinda
4df406d3ad
work with review notes
2024-03-10 10:00:18 +01:00
Sema Checherinda
5c41727725
http connections pools
2024-03-10 10:00:18 +01:00
tomershafir
453eb25984
rm trailing whitespace
2024-03-10 08:42:54 +02:00
tomershafir
4af16043b8
improve randomness by erase buf elem when full
2024-03-09 21:27:28 +02:00
Alexander Tokmakov
72ac59f44f
add signal handlers in client and local
2024-03-08 22:30:49 +01:00
tomershafir
46332f334c
rm unused alias set/vector pair
2024-03-08 15:17:07 +02:00
Sema Checherinda
62f9a00da8
shuffle resolved IPs
2024-03-07 13:09:26 +01:00
avogar
595c75ec53
Merge branch 'master' of github.com:ClickHouse/ClickHouse into max-parallel-replicas-validate
2024-03-05 11:19:04 +00:00
Robert Schulze
4ee1aa8c7c
Fixing more headers
2024-02-29 15:40:30 +00:00
Alexey Milovidov
e1e66dc2b8
Merge pull request #60095 from ClickHouse/fix-inconsistent-formatting
...
Fix inconsistent formatting of queries
2024-02-29 00:41:40 +03:00
Alexey Milovidov
d93d5c2a00
Merge pull request #60470 from ClickHouse/ClibMouse-bugfix/kql-distributed-tables
...
Merging #59674 .
2024-02-28 19:24:14 +03:00
Alexey Milovidov
acbcffea13
Fix error
2024-02-27 23:33:16 +01:00
Kruglov Pavel
58a53b42ac
Set max_entries to min(max_parallel_replicas, all available reolicas)
2024-02-27 14:31:35 +01:00
Alexey Milovidov
0b90076a36
Revert "Revert "Check stack size in Parser""
2024-02-27 01:34:50 +03:00
Kruglov Pavel
f264f0a036
Fix style
2024-02-26 22:06:10 +01:00
Kruglov Pavel
8aa9f36484
Fix style
2024-02-26 22:05:54 +01:00
avogar
ac4af6a4ad
Don't allow to set max_parallel_replicas to 0 as it doesn't make sense
2024-02-26 19:58:49 +00:00
Alexey Milovidov
6c6376de0a
Fix compatibility
2024-02-26 12:58:02 -05:00
Alexey Milovidov
3613464d46
Fix the code
2024-02-26 12:58:02 -05:00
Austin Kothig
f5ba7fde9f
Only set dialect if KQL or PRQL.
2024-02-26 12:58:01 -05:00
kothiga
70248639e8
Include PRQL. Added functional test that tests both KQL and PRQL.
2024-02-26 12:58:01 -05:00
kothiga
90a18326a5
Fix KQL distributed tables queries.
2024-02-26 12:58:01 -05:00
Alexey Milovidov
979cd2937b
Fix inconsistent formatting of SET param_...
2024-02-26 02:11:51 +01:00
Igor Nikonov
a0105e94ba
Merge pull request #60077 from ClickHouse/cleanup-connection-pool-priority
...
Cleanup: less confusion between config priority and balancing priority in connection pools
2024-02-21 15:22:08 +01:00
Igor Nikonov
0ead912127
Merge pull request #60158 from ClickHouse/fix-slowdown-count-side-effect
...
Fix: custom key failover test flakiness
2024-02-21 12:55:46 +01:00
Antonio Andelic
fee1565780
Revert "Check stack size in Parser"
2024-02-21 11:33:08 +01:00
Igor Nikonov
a8e4627663
Fix: can't guarantee query distribution with enabled hedged requests
2024-02-20 12:09:54 +00:00
Igor Nikonov
bb5a6dd8d3
Fix: custom key failover test flakyness
...
slowdown_count used only by hedge connections
but it's stored inside connection pool and was used for pool shuffling
always. So, query execution which used hedged connections could affect
connection load balancing for queries w/o hedged connections by updating
slowdown_count
2024-02-19 20:44:55 +00:00
Igor Nikonov
f06e15ce5f
Merge remote-tracking branch 'origin/master' into cleanup-connection-pool-priority
2024-02-19 11:33:55 +00:00
Alexey Milovidov
ad26b6fc8d
Remove useless headers
2024-02-19 07:08:24 +01:00
Alexey Milovidov
6fd563df52
Miscellaneous
2024-02-19 02:58:51 +01:00
Alexey Milovidov
73ab7a5556
Merge branch 'master' of github.com:ClickHouse/ClickHouse into implement-todo
2024-02-18 09:24:22 +01:00
Alexey Milovidov
d10b18afeb
I found TODO in the code, that can be implemented
2024-02-17 02:21:55 +01:00
Alexey Milovidov
2f315e0eb5
Style check for abbreviations
2024-02-17 02:14:15 +01:00
Igor Nikonov
b85a68790a
Cleanup: connection pool priority -> config priority
...
- names were creating confusion between config priority and balancing priority for a reader
2024-02-16 14:39:41 +00:00
Kruglov Pavel
1dbfeafb42
Merge branch 'master' into auto-format-detection
2024-02-13 19:08:33 +01:00
Igor Nikonov
3fb30a23d9
Merge remote-tracking branch 'origin/master' into pr-better-replicas-failover-2
2024-02-08 09:09:11 +00:00
Igor Nikonov
10082399d5
Minor review fixes
2024-02-07 00:52:25 +00:00
Igor Nikonov
b9848dbd2c
Remove unused is_finished
2024-02-06 14:30:19 +00:00
Igor Nikonov
576cfdbf5c
Includes cleanup
2024-02-05 14:27:07 +00:00
Raúl Marín
08c1799f9c
Merge pull request #59383 from Algunenano/fuzz_literal
...
Add some fuzzing to ASTLiterals
2024-02-05 12:27:43 +01:00
Igor Nikonov
7123a27f30
Merge pull request #59380 from ClickHouse/cleanup-connection-pool-surroundings
...
Cleanup connection pool surroundings
2024-02-04 22:34:07 +01:00
Igor Nikonov
c7499b7395
Use ConnectionPoolPtr instead of raw pointer
2024-02-02 18:43:09 +00:00
Raúl Marín
7be91e66dd
Add reverse step
2024-02-02 18:11:56 +01:00
Igor Nikonov
c93a2cd2dd
Remove unused header
2024-02-01 17:31:14 +00:00
Igor Nikonov
03249f3efa
Fixes & comments
...
staleness -> delay (double -> UInt32)
2024-02-01 12:24:24 +00:00
Raúl Marín
4b5e992565
Fix problems
2024-01-30 19:34:01 +01:00
Raúl Marín
299c390d2b
Add some fuzzing to ASTLiterals
2024-01-30 19:34:01 +01:00
avogar
377937d415
Merge branch 'master' of github.com:ClickHouse/ClickHouse into auto-format-detection
2024-01-29 15:45:18 +00:00
Alexey Milovidov
a7483ec10b
Merge pull request #59242 from rschu1ze/dont-force-libssh-on-me
...
Make libssh build dependent on `-DENABLE_LIBRARIES`
2024-01-29 00:02:03 +01:00
Robert Schulze
caeb31940c
Allow to build without libssl
2024-01-25 21:14:03 +00:00
Kruglov Pavel
46a6b84a5a
Merge branch 'master' into auto-format-detection
2024-01-25 22:11:07 +01:00
Maksim Kita
2a327107b6
Updated implementation
2024-01-25 14:31:49 +03:00
avogar
1bff525666
Fix tests and docs
2024-01-23 18:59:40 +00:00
avogar
617cc514b7
Try to detect file format automatically during schema inference if it's unknown
2024-01-23 18:59:39 +00:00
Alexander Tokmakov
2f1d4f094b
Add a parameter for testing purposes ( #59027 )
...
* Update ConnectionParameters.cpp
* Update ConnectionParameters.cpp
* Update ConnectionParameters.cpp
2024-01-22 15:48:44 +01:00
Sema Checherinda
9adab57771
Correct initialization of ConnectionTimeouts ( #59000 )
2024-01-22 12:03:36 +01:00
Igor Nikonov
131f71b50a
Revert "Revert flaky"
2024-01-19 13:51:30 +01:00
Raúl Marín
477489a05d
Revert "Merge pull request #57235 from ClickHouse/pr-custom-key-failover"
...
This reverts commit 8ba9b4a7ef
, reversing
changes made to 0f39245cb8
.
2024-01-19 12:46:05 +00:00
Igor Nikonov
8d4a395afa
Merge remote-tracking branch 'origin/master' into pr-custom-key-failover
2024-01-10 20:28:04 +00:00
Igor Nikonov
e9fc869254
Fix test flakiness with hedge connections enabled
2024-01-10 15:59:48 +00:00
Robert Schulze
ced9e93ac6
Merge remote-tracking branch 'rschu1ze/master' into qatzstd_main
2024-01-09 20:36:02 +00:00
Alexey Milovidov
2c61015578
Do not load database engines in suggest
2024-01-07 23:06:36 +01:00
Robert Schulze
53965bb9f1
Merge remote-tracking branch 'rschu1ze/master' into qatzstd_main
2024-01-07 14:11:22 +00:00
Bharat Nallan Chakravarthy
3e8439a78b
add to context access and suggest
2023-12-30 20:38:35 -08:00
Igor Nikonov
4fe54c213b
Fix: round-robin load balancing for custom key queries
...
+ even subqueries distribution over available nodes for custom key query
+ creating load balancing instance for each custom key query separately
2023-12-27 15:06:41 +00:00
Igor Nikonov
bee15325fc
Merge remote-tracking branch 'origin/master' into pr-custom-key-failover
2023-12-26 21:56:46 +00:00
Azat Khuzhin
3be3b0a280
Fix incorrect Exceptions
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-24 21:26:32 +01:00
jinjunzh
aaf98f0ed7
refine setting with enable_zstd_qat_codec
2023-12-22 14:24:15 -05:00
Igor Nikonov
db87ea0b86
Merge remote-tracking branch 'origin/master' into pr-custom-key-failover
2023-12-20 20:48:51 +00:00
Yarik Briukhovetskyi
6e816d45ae
Merge branch 'master' into paste_join
2023-12-19 20:02:24 +01:00
yariks5s
4e418a89d9
fixed suggestions
2023-12-19 19:00:37 +00:00
Raúl Marín
b269f87f4c
Better text_log with ErrnoException
2023-12-15 19:27:56 +01:00
Igor Nikonov
f7e6a17052
Merge remote-tracking branch 'origin/master' into pr-custom-key-failover
2023-12-10 20:21:47 +00:00
Igor Nikonov
87e47bdbee
Merge pull request #57467 from ClickHouse/rm-select
...
Remove select() usage
2023-12-09 22:27:28 +01:00
Igor Nikonov
94fb23af0b
Merge remote-tracking branch 'origin/master' into pr-custom-key-failover
2023-12-07 11:52:40 +00:00
Azat Khuzhin
477b782f86
Handle editor exit code correctly
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-06 20:21:15 +01:00
Azat Khuzhin
028c01c458
Do not abort the client if temporary file for query editor cannot be created
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-06 20:21:15 +01:00
Igor Nikonov
60ba1abc17
Fix build
2023-12-05 12:58:29 +00:00
Igor Nikonov
71204c2a82
Merge remote-tracking branch 'origin/master' into pr-custom-key-failover
2023-12-05 12:00:45 +00:00
Igor Nikonov
b3d3887f2c
Fix test
2023-12-05 11:58:25 +00:00
Igor Nikonov
73ff984755
Remove select() usage
2023-12-04 09:33:34 +00:00
Azat Khuzhin
699d11628a
Fix adjusting log_comment in case of multiple files passed
...
Previously, due to adjusting global_context and checking it as well, in
case of multiple files the log_comment will be adjusted only the first
time. Fix this by caching does user passed the log_comment explicitly or
not.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-12-04 10:02:24 +01:00
Raúl Marín
46acd8736c
Merge pull request #57189 from Algunenano/fix_respect_nulls
...
Fix RESPECT NULLS
2023-11-30 20:21:42 +01:00
Igor Nikonov
b4bf611d5d
Merge remote-tracking branch 'origin/master' into pr-custom-key-failover
2023-11-30 14:09:26 +00:00
Raúl Marín
9432061652
Add RESPECT/IGNORE NULLS to the fuzzer
2023-11-29 12:41:15 +01:00
Raúl Marín
f1bbccd7dd
Add suggestions about window functions
2023-11-29 12:14:37 +01:00
Igor Nikonov
961236a70b
Change log level to avoid test failure
2023-11-29 00:05:28 +00:00
Yarik Briukhovetskyi
c4d157fe84
Update ClientBase.cpp
2023-11-28 15:38:20 +01:00
Yarik Briukhovetskyi
0b15efeb51
Update ClientBase.cpp
2023-11-28 14:41:55 +01:00
yariks5s
1ed776abfb
consistency fix
2023-11-28 13:29:44 +00:00
yariks5s
ab0be2f236
init
2023-11-27 18:21:49 +00:00
Alexey Milovidov
fde14f0daf
Merge pull request #57191 from azat/client-log_comment-file
...
[RFC] Set log_comment to the file name while processing files in client
2023-11-26 03:44:40 +01:00
Alexey Milovidov
c50f096200
Merge pull request #57227 from azat/client-INS-cursor
...
Change cursor style for overwrite mode (INS) to blinking in client
2023-11-25 22:53:09 +01:00
Azat Khuzhin
ced0bbd932
Change cursor style for overwrite mode (INS) to blinking in client
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-11-25 22:00:56 +01:00
Azat Khuzhin
740cc3c053
Set log_comment to the file name while processing files in client
...
This will be useful for fuzzer, to know which file had been processed to
trigger the crash, since right now you need to find unique parts of the
query that had not been added by fuzzer to reproduce.
But I guess this will be useful not only for fuzzing, but for general
introspection as well.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-11-24 14:45:34 +01:00
Alexey Milovidov
98cddf5312
Merge pull request #57153 from ClickHouse/better-server-exit-code
...
Better server exit code
2023-11-23 23:55:28 +01:00
Alexey Milovidov
b62e9d3a1a
Address review comments
2023-11-23 18:13:12 +01:00
Igor Nikonov
7c0198a26c
Fix clang-tidy warning
2023-11-22 09:48:18 +00:00
Igor Nikonov
63a1625b77
Merge remote-tracking branch 'origin/master' into pr-cleanup-narrow-dependency
2023-11-21 16:05:48 +00:00
Igor Nikonov
ce98dfb251
Settings pointer to reference
2023-11-21 16:04:54 +00:00
Igor Nikonov
66f6a6575f
Cleanup iteration: settings usage
2023-11-21 13:29:04 +00:00
Nikolay Degterinsky
fd26fab07f
Merge remote-tracking branch 'upstream/master' into local-send-fatal-log
2023-11-19 17:59:51 +00:00
Nikolay Degterinsky
cf46214440
Always send fatal level logs
2023-11-19 15:09:52 +00:00
Kruglov Pavel
413c3d1ee3
Merge pull request #55994 from Avogar/fix-bad-logs-level-in-local
...
Fix clickhouse-local exit on bad send_logs_level setting
2023-11-16 14:49:23 +01:00
Kruglov Pavel
f1bf3f1fc3
Merge pull request #56710 from Avogar/fix-abort-in-local
...
Fix 'mutex lock failed: Invalid argument' in clickhouse-local during insert into function
2023-11-16 14:45:18 +01:00
Robert Schulze
2931bbfe62
Merge pull request #56665 from rschu1ze/refactor-ast-hash-calculation
...
Small refactoring of AST hash calculation (follow-up to #56545 )
2023-11-14 11:24:30 +01:00
avogar
a09437c816
Fix possible 'uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument' in clickhouse-local
2023-11-13 22:23:38 +00:00
Alexey Milovidov
c81cc3f953
Merge pull request #56660 from ClickHouse/better-ccache-2
...
Better use of build cache
2023-11-13 19:28:33 +01:00
Robert Schulze
d6df7d8403
Merge remote-tracking branch 'rschu1ze/master' into refactor-ast-hash-calculation
2023-11-13 15:54:21 +00:00
Kruglov Pavel
abf08839ec
Merge pull request #55976 from Avogar/fix-client-insert-in-background
...
Fix 'Cannot read from file:' while running client in a background
2023-11-13 15:16:49 +00:00
Robert Schulze
b899270372
Remove default value for argument 'ignore_aliases' from IAST::updateTreeHash()
2023-11-13 13:18:35 +00:00
Alexey Milovidov
8e820185cb
Merge branch 'master' of github.com:ClickHouse/ClickHouse into better-ccache-2
2023-11-13 11:17:18 +01:00
Alexey Milovidov
82c461031e
Fix build
2023-11-13 10:09:23 +01:00
Alexey Milovidov
9a7f5ab0a1
Better use of build cache
2023-11-13 08:54:24 +01:00
Pradeep Chhetri
be1e061764
Use SSL port for clickhouse-client for hostnames pointing to clickhouse cloud
2023-11-13 10:31:56 +08:00
Pradeep Chhetri
3cb41bf0f2
Enable --secure flag for clickhouse-client for hostnames pointing to clickhouse cloud
2023-11-12 15:00:10 +08:00
Pradeep Chhetri
ce668e4491
Enable --secure flag for clickhouse-client for hostnames pointing to clickhouse cloud
2023-11-12 14:45:17 +08:00
Alexey Milovidov
9317357873
Merge pull request #56546 from ClickHouse/remove-1
...
Remove useless using
2023-11-10 16:56:56 +01:00
Alexey Milovidov
3f5b94b8ca
Remove useless using
2023-11-09 23:37:39 +01:00
kssenii
9178fd4ad1
Fix case with replicated database
2023-11-07 16:02:51 +01:00
avogar
7c69dee5cd
Fix review comment
2023-11-02 18:05:02 +00:00
avogar
1078047fb5
Fix 'Cannot read from file:' while running client in a background
2023-11-02 17:46:34 +00:00
Alexey Milovidov
3631e476eb
Merge pull request #54947 from amosbird/minmax-combinator
...
Introduce -ArgMin/-ArgMax combinators.
2023-10-30 03:35:28 +01:00
Alexey Milovidov
9313b343e4
Merge pull request #55240 from aiven-sal/aiven-sal/client
...
clickhouse-client: don't show "0 rows in set" if it is zero and if exception was thrown
2023-10-26 13:52:53 +02:00
avogar
2516c2ea28
Fix clickhouse-local exit on bad send_logs_level setting
2023-10-24 20:46:44 +00:00
Salvatore Mesoraca
7e8dac6064
Fix logic
2023-10-24 15:36:17 +02:00
Salvatore Mesoraca
fdabea6158
clickhouse-client: don't show "0 rows in set" if it is zero and if exception was thrown
2023-10-24 15:36:14 +02:00
Alexey Milovidov
7ec4b99e94
Revert partial result
2023-10-21 03:14:22 +02:00
Alexey Milovidov
14c2900185
Merge pull request #55853 from ClickHouse/local-allow-drop-current-database
...
Allow querying inside a dropped database in clickhouse-local
2023-10-20 19:04:54 +02:00
Anton Popov
5819bcd07a
Support asynchronous inserts for native protocol ( #54730 )
...
* support async insert for native protocol
* use separate queue for async inserts via native protocol
* fix test
* better logging for async inserts and more tests
* disable mixed internal and external data in async inserts
* fix tests
* fix quota in async inserts
* disable async insert for secondary query of distributed
2023-10-20 18:39:48 +02:00
Alexey Milovidov
c6e998290d
Allow querying inside a dropped database in clickhouse-local
2023-10-20 05:14:09 +02:00
Michael Kolupaev
70711b0898
Remove temporary debug logging in MultiplexedConnections ( #55764 )
2023-10-18 23:05:03 -07:00
Azat Khuzhin
2fc858bfe1
Adjust output_format_pretty_max_rows if --pager is specified
2023-10-16 22:31:57 +02:00
Azat Khuzhin
4cb3de3110
Add pager property into ClientBase
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-16 22:31:55 +02:00
Azat Khuzhin
3257d5643d
Move adjusting input_format_values_allow_data_after_semicolon into the client base
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-16 22:31:55 +02:00
Azat Khuzhin
fc354d7fbf
Reset signals that is catched by clickhouse-client if pager is in use
...
We need to reset signals that had been installed in the
setupSignalHandler() (SIGINT/SIGQUIT), like other such tools dies (i.e.
less and open file in editor) since terminal will send signals to both
processes and so signals will be delivered to the
clickhouse-client/local as well, which will be terminated when signal
will be delivered second time.
So a simple `clickhouse-client --pager less` will be terminated on a
second C-C press. And it is really annoying when you are using this way
to analyze logs.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-16 22:03:36 +02:00
Alexey Milovidov
13ee46ed74
Merge pull request #55583 from azat/unittests-fix-context
...
Fix global context for tests with --gtest_filter
2023-10-14 00:27:30 +02:00
Alexander Tokmakov
e3e105d154
Merge pull request #55527 from azat/values-eof-check-fix
...
Fix checking of non handled data for Values format
2023-10-13 18:07:02 +02:00
Azat Khuzhin
f42cc282ec
Do not include headers from tests into client
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-13 13:44:30 +02:00
Azat Khuzhin
a5cced2b9e
Move comment into correct place
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-12 12:25:08 +02:00
JackyWoo
1f553f3d65
Merge branch 'master' into lb_nearest_host_name
2023-10-12 10:19:17 +08:00
Yakov Olkhovskiy
0738984edf
Merge pull request #42510 from ClibMouse/Kusto-phase2-oss-pr
...
Support Kusto Query Language dialect - phase 2
2023-10-11 08:35:26 -04:00
JackyWoo
784fe880eb
Merge branch 'master' into lb_nearest_host_name
2023-10-07 09:04:26 +08:00
Azat Khuzhin
b4eb05e1d7
Fix syntax highlight in client for spaceship operator
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-10-04 14:58:37 +02:00
Amos Bird
51f603bdfc
Rename as suggested.
2023-09-28 15:11:56 +08:00
Amos Bird
056b2693a3
Reorganize combinators into dedicated folder
2023-09-28 15:11:55 +08:00
Yong Wang
8c9da6bacf
Merge remote-tracking branch 'origin/master' into Kusto-phase2-oss-pr
2023-09-27 22:35:14 -07:00
Robert Schulze
1e1ce40228
Suppress a new finding
2023-09-27 12:18:26 +00:00
Robert Schulze
2d750e9e2f
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks
2023-09-27 12:15:29 +00:00
JackyWoo
5da03e8ba5
Add load balancing test_hostname_levenshtein_distance
2023-09-27 10:46:39 +08:00
Michael Kolupaev
1ac2247b3c
Add desperate instrumentation for debugging deadlock in MultiplexedConnections ( #54940 )
2023-09-26 13:24:06 -07:00
Robert Schulze
cde10fe7b5
Merge remote-tracking branch 'rschu1ze/master' into clang-tidy-reenable-checks
2023-09-26 18:59:41 +00:00
Robert Schulze
ab2b5cd5ca
More fixes
2023-09-26 18:55:10 +00:00
George Gamezardashvili
0ce30ab6d5
SSH keys authentication ( #41109 )
...
Added new type of authentication based on SSH keys. It works only for Native TCP protocol.
Co-authored-by: Nikita Mikhaylov <nikitamikhaylov@clickhouse.com>
Co-authored-by: Robert Schulze <robert@clickhouse.com>
2023-09-26 17:50:19 +02:00
Robert Schulze
9fff447716
Re-enable clang-tidy checks
2023-09-26 09:34:12 +00:00
robot-clickhouse-ci-2
d98234dc9d
Merge pull request #54803 from Avogar/ephemeral-columns-from-files
...
Forbid special columns for file/s3/url/... storages, fix insert into ephemeral columns from files
2023-09-22 23:24:42 +02:00
Robert Schulze
50c51c2854
Fix new clang-tidy-s
2023-09-20 22:17:39 +00:00
avogar
520c9e95a9
Fix
2023-09-20 16:25:55 +00:00
avogar
3e08800cb5
Forbid special columns for file/s3/url/... storages, fix insert into ephemeral columns from files
2023-09-20 16:25:55 +00: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
Nikolai Kochetov
59108f3d96
Merge pull request #54476 from ClickHouse/revert-54470-revert-48607-master
...
Revert "Revert "Add settings for real-time updates during query execution""
2023-09-11 14:59:13 +02:00
robot-ch-test-poll
6f3374d684
Merge pull request #54481 from ucasfl/hints
...
Refactor IHints
2023-09-10 15:46:36 +02:00
flynn
6ec783a746
Refactor IHints
2023-09-10 03:48:12 +00:00
Nikolai Kochetov
9b936c44db
Revert "Revert "Add settings for real-time updates during query execution""
2023-09-09 12:29:39 +02:00
Alexey Milovidov
03a755732a
Revert "Add settings for real-time updates during query execution"
2023-09-09 03:10:23 +03:00
Nikolai Kochetov
0095124791
Merge pull request #48607 from alexX512/master
...
Add settings for real-time updates during query execution
2023-09-08 09:05:33 +02:00
Robert Schulze
d03fba52f0
Merge remote-tracking branch 'rschu1ze/master' into multiple_query_arguments
2023-09-04 16:10:00 +00:00
Robert Schulze
11fea581bc
Fix tests
2023-09-04 15:34:42 +00:00
Raúl Marín
e192d4c624
Fix summary reporting with parallel replicas with LIMIT ( #53050 )
2023-09-04 15:53:06 +02:00
vdimir
fc7a8d0080
Merge pull request #54190 from azat/client/restart-pager
2023-09-04 13:47:07 +02:00
Robert Schulze
44994fe51b
Incorporate review feedback
2023-09-04 11:44:37 +00:00
Ziy1-Tan
fe7d636b93
Improve docs
...
Signed-off-by: Ziy1-Tan <ajb459684460@gmail.com>
2023-09-04 11:44:27 +00:00
Ziy1-Tan
5db1961129
Allow specifying --query
multiple times in the command line
2023-09-04 11:44:22 +00:00
Azat Khuzhin
a7cc4815e6
Fix pager in client/local interactive mode when not all data had been read
...
It is pretty general use case to use --pager=less and do not look
through all rows in the output.
Before this patch after first EPIPE the output of queries will not be
printed anymore, instead it will try to finalize the output format again
and again and obviously will fail:
Code: 75. DB::ErrnoException: Cannot write to file (fd = 16), errno: 32, strerror: Broken pipe. (CANNOT_WRITE_TO_FILE_DESCRIPTOR), Stack trace (when copying this message, always include the lines below):
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-04 10:49:06 +02:00
Igor Nikonov
d7076ab017
Revert "Revert "Fix: respect skip_unavailable_shards with parallel replicas""
2023-09-02 23:52:56 +02:00
Alexander Tokmakov
782c15330b
Revert "Fix: respect skip_unavailable_shards with parallel replicas ( #53904 )"
...
This reverts commit f2290d9a6f
.
2023-09-01 18:01:07 +02:00
Igor Nikonov
f2290d9a6f
Fix: respect skip_unavailable_shards with parallel replicas ( #53904 )
...
Co-authored-by: robot-clickhouse <robot-clickhouse@users.noreply.github.com>
2023-09-01 15:57:40 +02:00
alexX512
36b8932b37
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-31 21:40:50 +00:00
Sergei Trifonov
802579f3f1
Merge pull request #49618 from ClickHouse/concurrency-control-controllable
...
Make concurrency control controllable
2023-08-29 19:44:51 +02:00
alexX512
b3ba00f443
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-29 10:59:29 +00:00
alexX512
47a908dfa8
Add support for nested supqueries for AggregationPartialResult transform and more comments
2023-08-29 10:45:34 +00:00
Yong Wang
828f4a67b7
Kusto-phase2: use seperated path to parse kql query
2023-08-26 07:40:40 -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
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
1105ac624b
Fixed style issues
2023-08-26 07:40:38 -07:00
HeenaBansal2009
bb4b8a9468
Fix bug in clickhouse-client for non-interactive mode
2023-08-26 07:40:27 -07:00
Yong Wang
5ec628a638
Kusto-phase2: Fixed the issue of conflict
2023-08-26 07:40:26 -07:00
Yong Wang
7a115d0ab2
Kusto-phase2: add kusto_auto dialect
2023-08-26 07:40:26 -07:00
Yong Wang
ae6e6b1c3b
Kusto-phase2: Changed dialect to use enumerate, Added subquery for in operator, fixed the multi query issue
2023-08-26 07:40:25 -07:00
Yong Wang
91e6d407cb
Kusto-phase 2: Add more string operators
2023-08-26 07:40:25 -07:00
Yong Wang
760fd6759e
Kusto-phase2: add kusto_auto dialect
2023-08-26 07:40:25 -07:00
Alexey Gerasimchuck
3140958132
Added client_info validation
2023-08-22 03:52:57 +00:00
Amos Bird
476f3cedc1
Various reactions when executable stderr has data
2023-08-18 15:38:45 +08:00
Robert Schulze
ec7daed52f
Merge pull request #50276 from ClibMouse/feature/mergetree-checksum-big-endian-support
...
MergeTree & SipHash checksum big-endian support
2023-08-17 13:27:18 +02:00
Alexander Tokmakov
08e4e2bb0b
fix
2023-08-16 22:35:45 +02:00
Alexander Tokmakov
3fc65a68c7
more parallel tests
2023-08-15 23:04:04 +02:00
Alexander Tokmakov
5ab82cc019
Merge pull request #53430 from ClickHouse/merging_53177
...
Merging #53177
2023-08-15 00:39:09 +03:00
Sergei Trifonov
771710b377
Merge branch 'master' into concurrency-control-controllable
2023-08-11 16:50:13 +02:00
ltrk2
1dc1b54c68
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-11 07:48:49 -04:00
Alexey Milovidov
aae35f3b1c
Merge pull request #53184 from ClickHouse/better-ccache
...
Better usage of ccache
2023-08-11 04:43:45 +03:00
ltrk2
a2054c04dd
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-10 10:21:34 -04:00
Alexey Gerasimchuck
26aded5062
Used main connections for suggestions
2023-08-10 04:11:07 +00:00
ltrk2
139e9433a8
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-09 09:48:00 -04:00
Alexey Milovidov
fa9abc5038
Better usage of ccache
2023-08-09 05:02:50 +02:00
Alexey Milovidov
aa757490bd
Ditch tons of garbage
2023-08-09 02:19:02 +02:00
alexX512
520a3c6eeb
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-07 16:52:51 +00:00
Sergei Trifonov
dcac12c8f9
Merge branch 'master' into concurrency-control-controllable
2023-08-07 13:43:02 +02:00
Antonio Andelic
cafa5ef2f3
Merge branch 'master' into add-reading-from-archives
2023-08-06 10:21:47 +00:00
pufit
e0576a4f59
Merge pull request #53029 from azat/clickhouse-keeper-client-completion-fix
...
Fix completion for clickhouse-keeper-client
2023-08-04 17:48:45 -04:00
Azat Khuzhin
eda396eb7c
Fix completion for clickhouse-keeper-client
...
Previously some symbols had been counted as word breakers, and this
breaks the completion since after such symbol the completion will start
from scratch.
One of the most annoying was the "-" sign.
But actually all those word breakers that is used for SQL completion is
not required for keeper client, so let's leave only necessary.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-08-04 09:24:32 +02:00
alexX512
0d84226914
Merge branch 'master' of github.com:ClickHouse/ClickHouse
2023-08-02 19:18:59 +00:00
ltrk2
27a2d4d1c7
Merge branch 'master' into feature/mergetree-checksum-big-endian-support
2023-08-02 11:36:43 -04:00
Antonio Andelic
e366ca61f5
Merge branch 'master' into add-reading-from-archives
2023-08-01 15:33:20 +00:00
Kruglov Pavel
262d4c6316
Add try/catch in destructor
2023-08-01 16:44:46 +02:00
avogar
f9d7fe9ab9
Fix misleading error message in OUTFILE with CapnProto/Protobuf
2023-08-01 14:32:10 +00:00
Sergei Trifonov
01196ac41f
Merge branch 'master' into concurrency-control-controllable
2023-08-01 15:40:50 +02:00