Commit Graph
257 Commits
Author SHA1 Message Date
Vasily Nemkov 109d2f63d0 Fixed tests and minor style issues 2021-08-31 15:39:15 +03:00
Vasily Nemkov c902afddde Added system.session_log table
Which logs all the info about LogIn, LogOut and LogIn Failure events.
Additional info that is logged:
- User name
- event type (LogIn, LogOut, LoginFailure)
- Event date\time\time with microseconds
- authentication type (same as for IDENTIFIED BY of CREATE USER statement)
- array of active settings profiles upon login
- array of active roles upon login
- array of changed settings with corresponding values
- client address and port
- interface (TCP\HTTP\MySQL\PostgreSQL, etc.)
- client info (name, version info)
- optional LoginFailure reason text message.

Added some tests to verify that events are properly saved with all necessary info via following interfaces:
- TCP
- HTTP
- MySQL

Known limitations
- Not tested against named HTTP sessions, PostgreSQL and gRPC, hence those are not guaranteed to work 100% properly.
2021-08-30 18:28:28 +03:00
Amos Bird 0169fce78e Projection bug fixes and refactoring. 2021-08-26 19:09:31 +08:00
alesapinandGitHub 47b995467e Merge pull request #28080 from ClickHouse/some_renames_in_keeper
Clickhouse-keeper: renames and comments
2021-08-26 10:16:21 +03:00
Maksim KitaandGitHub dc852568c0 Merge pull request #27796 from ClickHouse/create-user-defined-lambda-function
Merging #23978
2021-08-25 10:08:20 +03:00
Maksim Kita 82ba24cd10 Merge branch 'master' into create-user-defined-lambda-function 2021-08-24 19:12:32 +03:00
Nicolae Vartolomei abc484e89b Destroy main_config_reloader before shared context.
This tries to fix crash reported in a comment
https://github.com/ClickHouse/ClickHouse/pull/24404#issuecomment-847012002.
2021-08-24 17:06:17 +01:00
alesapin 95cf0634dc Clickhouse-keeper: renames and comments 2021-08-24 15:30:31 +03:00
Vitaly Baranov 63e8bc1f20 Added new commands BACKUP and RESTORE. 2021-08-23 23:41:45 +03:00
Maksim Kita 2a6aa50d49 Merge branch 'master' into create-user-defined-lambda-function 2021-08-23 11:08:49 +03:00
alexey-milovidovandGitHub e620ea15bd Merge pull request #27900 from amosbird/newf
getServerPort function
2021-08-21 22:40:25 +03:00
Amos Bird 997acdc39e getPort function 2021-08-21 20:33:36 +08:00
Maksim Kita 5f2b28639f Merge branch 'master' into create-user-defined-lambda-function 2021-08-20 11:53:08 +03:00
Kruglov PavelandGitHub 5a282e8947 Merge pull request #27875 from vitlibar/fix-shutdown-named-session-storage
Fix shutdown of NamedSessionStorage.
2021-08-20 11:50:43 +03:00
Vitaly Baranov 9fecda940d Fix shutdown of NamedSessionStorage. 2021-08-19 17:27:03 +03:00
tavplubixandGitHub 9ef45d92c2 Merge pull request #27755 from ClickHouse/ncb/server_uuid
Merging  #20089
2021-08-19 14:59:18 +03:00
tavplubixandGitHub 08fb4ede35 Update Server.cpp 2021-08-18 19:05:27 +03:00
Alexander Tokmakov 31d75c9c38 fix split build 2021-08-18 15:15:31 +03:00
Vitaly Baranov fabd7193bd Code cleanups and improvements. 2021-08-18 14:24:52 +03:00
Vasily NemkovandVitaly Baranov 51ffc33457 Introduce sessions.
This is required to add system.session_log table.
2021-08-18 14:24:52 +03:00
Maksim Kita 6b2c249adc Updated UserDefinedObjectsLoader 2021-08-18 12:29:52 +03:00
Alexander Tokmakov 4d71f65082 fix build 2021-08-17 16:24:14 +03:00
Alexander Tokmakov 9e9fa043ca minor improvements, add test 2021-08-16 21:30:53 +03:00
Realist007andGitHub 63dfa8559f Merge branch 'master' into feature/create-simple-lambda-function 2021-08-16 16:56:49 +03:00
Alexander Tokmakov b324889241 Merge branch 'master' into ncb/server_uuid 2021-08-16 16:18:33 +03:00
Nikolai Kochetov 5e5a6ff654 Merge branch 'master' into qoega-fix-access-gtest-in-arcadia 2021-08-12 12:02:15 +03:00
fuwhu 8515f3b3a2 Add metric MaxPushedDDLEntryID. 2021-08-11 11:40:06 +08:00
Yatsishin Ilya 6e74728714 more sync fixes 2021-08-04 10:58:39 +03:00
alesapinandGitHub 444ad67663 Merge pull request #26972 from ClickHouse/fix_zookeeper_log_initialization
Fix system.zookeeper_log initialization
2021-07-30 12:24:19 +03:00
PHOandGitHub 6425dd001a Add a codec AES_128_GCM_SIV for encrypting columns on disk (#19896)
* Add a codec Encrypted() for encrypting columns on disk

While this is implemented as a compression codec, it does not actually compress data. It instead encrypts data on disk. The key is obtained by executing a user-specified command at the server startup, or if it's not specified the codec refuses to process any data. For now the only supported cipher is 'AES-128-GCM-SIV'.
2021-07-30 12:12:33 +03:00
Alexander Tokmakov 47995a053e fix system.zookeeper_log initialization 2021-07-29 17:48:49 +03:00
Realist007andGitHub 31e26862b5 Merge branch 'master' into feature/create-simple-lambda-function 2021-07-21 10:33:53 +03:00
ANDREI STAROVEROV 7966bded6c Add storing on disk for created functions 2021-07-20 23:20:23 +03:00
Amos Bird dbfb699690 Asynchronously drain connections. 2021-07-19 21:53:29 +08:00
Artur 1e90287e9a Adding tests for system.warnings 2021-07-12 10:57:39 +00:00
Artur 8113580237 Add warning in debug mode 2021-07-09 14:40:32 +00:00
Alexey Milovidov d437ec2e1d Merge branch 'master' into system-metrics 2021-07-05 03:03:07 +03:00
Alexey Milovidov c059d0a0ee More metrics 2021-07-05 01:41:09 +03:00
Maksim Kita da8c957167 Aggregator added CompiledExpressionCache 2021-07-01 22:56:36 +03:00
alexey-milovidovandGitHub 7a0cddcb4c Merge pull request #25569 from oxidecomputer/master
Resolves actual port bound when user requests any available
2021-06-23 22:47:01 +03:00
Alexey Milovidov dbb2532e88 Minor change 2021-06-23 02:02:57 +03:00
Benjamin Naecker 3275a53723 Resolves the actual port a server binds, in the case the user requests
any available port from the OS.
2021-06-21 12:36:32 -07:00
Maksim KitaandMaksim Kita 67e9b85951 Merge ext into common 2021-06-16 23:28:41 +03:00
Amos Bird 9dfa4c06bd Try reusing built sets during multi-pass analysis 2021-06-03 22:06:05 +08:00
kssenii f66c67a979 Fixes 2021-05-27 15:42:46 +03:00
kssenii 9b8df78fdd Merge branch 'master' of github.com:ClickHouse/ClickHouse into poco-file-to-std-fs 2021-05-17 17:42:05 +03:00
kssenii 2124113aa2 Update programs/* 2021-05-17 01:06:09 +03:00
Azat Khuzhin aeb2c5d88a Preserve dictionaries until storage shutdown
v2: Context::loadEmbeddedDictionaries()
v3: Context::loadDictionaries()
2021-05-13 22:03:00 +03:00
Amos Bird 264cff6415 Projections
TODO (suggested by Nikolai)

1. Build query plan fro current query (inside storage::read) up to WithMergableState
2. Check, that plan is simple enough: Aggregating - Expression - Filter - ReadFromStorage (or simplier)
3. Check, that filter is the same as filter in projection, and also expression calculates the same aggregation keys as in projection
4. Return WithMergableState if projection applies

3 will be easier to do with ActionsDAG, cause it sees all functions, and dependencies are direct (but it is possible with ExpressionActions also)

Also need to figure out how prewhere works for projections, and
row_filter_policies.

wip
2021-05-11 18:12:23 +08:00
alexey-milovidovandGitHub 066acc71b6 Merge pull request #8482 from ClickHouse/enable-compile-expressions
Enable "compile_expressions" by default
2021-05-10 21:09:18 +03:00