Fixing links

This commit is contained in:
rfraposa 2023-03-06 23:33:56 -07:00
parent 507fb657da
commit 3d484e20bc
7 changed files with 29 additions and 29 deletions

View File

@ -792,7 +792,7 @@ neighbor(column, offset[, default_value])
The result of the function depends on the affected data blocks and the order of data in the block.
:::warning
:::warning
It can reach the neighbor rows only inside the currently processed data block.
:::
@ -902,7 +902,7 @@ Result:
Calculates the difference between successive row values in the data block.
Returns 0 for the first row and the difference from the previous row for each subsequent row.
:::warning
:::warning
It can reach the previous row only inside the currently processed data block.
:::
@ -986,7 +986,7 @@ Each event has a start time and an end time. The start time is included in the e
The function calculates the total number of active (concurrent) events for each event start time.
:::warning
:::warning
Events must be ordered by the start time in ascending order. If this requirement is violated the function raises an exception. Every data block is processed separately. If events from different data blocks overlap then they can not be processed correctly.
:::
@ -1674,7 +1674,7 @@ Result:
Accumulates states of an aggregate function for each row of a data block.
:::warning
:::warning
The state is reset for each new data block.
:::
@ -2177,7 +2177,7 @@ Number of digits.
Type: [UInt8](../../sql-reference/data-types/int-uint.md#uint-ranges).
:::note
:::note
For `Decimal` values takes into account their scales: calculates result over underlying integer type which is `(value * scale)`. For example: `countDigits(42) = 2`, `countDigits(42.000) = 5`, `countDigits(0.04200) = 4`. I.e. you may check decimal overflow for `Decimal64` with `countDecimal(x) > 18`. It's a slow variant of [isDecimalOverflow](#is-decimal-overflow).
:::
@ -2260,7 +2260,7 @@ Result:
## currentProfiles
Returns a list of the current [settings profiles](../../operations/access-rights.md#settings-profiles-management) for the current user.
Returns a list of the current [settings profiles](../../guides/sre/user-management/index.mdd#settings-profiles-management) for the current user.
The command [SET PROFILE](../../sql-reference/statements/set.md#query-set) could be used to change the current setting profile. If the command `SET PROFILE` was not used the function returns the profiles specified at the current user's definition (see [CREATE USER](../../sql-reference/statements/create/user.md#create-user-statement)).
@ -2272,7 +2272,7 @@ currentProfiles()
**Returned value**
- List of the current user settings profiles.
- List of the current user settings profiles.
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
@ -2288,7 +2288,7 @@ enabledProfiles()
**Returned value**
- List of the enabled settings profiles.
- List of the enabled settings profiles.
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
@ -2304,7 +2304,7 @@ defaultProfiles()
**Returned value**
- List of the default settings profiles.
- List of the default settings profiles.
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
@ -2320,7 +2320,7 @@ currentRoles()
**Returned value**
- List of the current roles for the current user.
- List of the current roles for the current user.
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
@ -2336,13 +2336,13 @@ enabledRoles()
**Returned value**
- List of the enabled roles for the current user.
- List of the enabled roles for the current user.
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
## defaultRoles
Returns the names of the roles which are enabled by default for the current user when he logins. Initially these are all roles granted to the current user (see [GRANT](../../sql-reference/statements/grant/#grant-select)), but that can be changed with the [SET DEFAULT ROLE](../../sql-reference/statements/set-role.md#set-default-role-statement) statement.
Returns the names of the roles which are enabled by default for the current user when he logins. Initially these are all roles granted to the current user (see [GRANT](../../sql-reference/statements/grant/#grant-select)), but that can be changed with the [SET DEFAULT ROLE](../../sql-reference/statements/set-role.md#set-default-role-statement) statement.
**Syntax**
@ -2352,7 +2352,7 @@ defaultRoles()
**Returned value**
- List of the default roles for the current user.
- List of the default roles for the current user.
Type: [Array](../../sql-reference/data-types/array.md)([String](../../sql-reference/data-types/string.md)).
@ -2499,7 +2499,7 @@ In the following example a configuration with two shards is used. The query is e
Query:
``` sql
CREATE TABLE shard_num_example (dummy UInt8)
CREATE TABLE shard_num_example (dummy UInt8)
ENGINE=Distributed(test_cluster_two_shards_localhost, system, one, dummy);
SELECT dummy, shardNum(), shardCount() FROM shard_num_example;
```

View File

@ -5,7 +5,7 @@ sidebar_label: QUOTA
title: "CREATE QUOTA"
---
Creates a [quota](../../../operations/access-rights.md#quotas-management) that can be assigned to a user or a role.
Creates a [quota](../../../guides/sre/user-management/index.mdd#quotas-management) that can be assigned to a user or a role.
Syntax:

View File

@ -5,7 +5,7 @@ sidebar_label: ROLE
title: "CREATE ROLE"
---
Creates new [roles](../../../operations/access-rights.md#role-management). Role is a set of [privileges](../../../sql-reference/statements/grant.md#grant-privileges). A [user](../../../sql-reference/statements/create/user.md) assigned a role gets all the privileges of this role.
Creates new [roles](../../../guides/sre/user-management/index.mdd#role-management). Role is a set of [privileges](../../../sql-reference/statements/grant.md#grant-privileges). A [user](../../../sql-reference/statements/create/user.md) assigned a role gets all the privileges of this role.
Syntax:

View File

@ -5,9 +5,9 @@ sidebar_label: ROW POLICY
title: "CREATE ROW POLICY"
---
Creates a [row policy](../../../operations/access-rights.md#row-policy-management), i.e. a filter used to determine which rows a user can read from a table.
Creates a [row policy](../../../guides/sre/user-management/index.mdd#row-policy-management), i.e. a filter used to determine which rows a user can read from a table.
:::warning
:::warning
Row policies makes sense only for users with readonly access. If user can modify table or copy partitions between tables, it defeats the restrictions of row policies.
:::
@ -31,7 +31,7 @@ In the section `TO` you can provide a list of users and roles this policy should
Keyword `ALL` means all the ClickHouse users including current user. Keyword `ALL EXCEPT` allow to exclude some users from the all users list, for example, `CREATE ROW POLICY ... TO ALL EXCEPT accountant, john@localhost`
:::note
:::note
If there are no row policies defined for a table then any user can `SELECT` all the row from the table. Defining one or more row policies for the table makes the access to the table depending on the row policies no matter if those row policies are defined for the current user or not. For example, the following policy
`CREATE ROW POLICY pol1 ON mydb.table1 USING b=1 TO mira, peter`

View File

@ -5,7 +5,7 @@ sidebar_label: SETTINGS PROFILE
title: "CREATE SETTINGS PROFILE"
---
Creates [settings profiles](../../../operations/access-rights.md#settings-profiles-management) that can be assigned to a user or a role.
Creates [settings profiles](../../../guides/sre/user-management/index.mdd#settings-profiles-management) that can be assigned to a user or a role.
Syntax:
@ -27,7 +27,7 @@ CREATE USER robin IDENTIFIED BY 'password';
Create the `max_memory_usage_profile` settings profile with value and constraints for the `max_memory_usage` setting and assign it to user `robin`:
``` sql
CREATE
SETTINGS PROFILE max_memory_usage_profile SETTINGS max_memory_usage = 100000001 MIN 90000000 MAX 110000000
CREATE
SETTINGS PROFILE max_memory_usage_profile SETTINGS max_memory_usage = 100000001 MIN 90000000 MAX 110000000
TO robin
```

View File

@ -5,7 +5,7 @@ sidebar_label: USER
title: "CREATE USER"
---
Creates [user accounts](../../../operations/access-rights.md#user-account-management).
Creates [user accounts](../../../guides/sre/user-management/index.mdd#user-account-management).
Syntax:

View File

@ -293,7 +293,7 @@ SHOW CREATE [SETTINGS] PROFILE name1 [, name2 ...]
## SHOW USERS
Returns a list of [user account](../../operations/access-rights.md#user-account-management) names. To view user accounts parameters, see the system table [system.users](../../operations/system-tables/users.md#system_tables-users).
Returns a list of [user account](../../guides/sre/user-management/index.mdd#user-account-management) names. To view user accounts parameters, see the system table [system.users](../../operations/system-tables/users.md#system_tables-users).
### Syntax
@ -303,7 +303,7 @@ SHOW USERS
## SHOW ROLES
Returns a list of [roles](../../operations/access-rights.md#role-management). To view another parameters, see system tables [system.roles](../../operations/system-tables/roles.md#system_tables-roles) and [system.role_grants](../../operations/system-tables/role-grants.md#system_tables-role_grants).
Returns a list of [roles](../../guides/sre/user-management/index.mdd#role-management). To view another parameters, see system tables [system.roles](../../operations/system-tables/roles.md#system_tables-roles) and [system.role_grants](../../operations/system-tables/role-grants.md#system_tables-role_grants).
### Syntax
@ -312,7 +312,7 @@ SHOW [CURRENT|ENABLED] ROLES
```
## SHOW PROFILES
Returns a list of [setting profiles](../../operations/access-rights.md#settings-profiles-management). To view user accounts parameters, see the system table [settings_profiles](../../operations/system-tables/settings_profiles.md#system_tables-settings_profiles).
Returns a list of [setting profiles](../../guides/sre/user-management/index.mdd#settings-profiles-management). To view user accounts parameters, see the system table [settings_profiles](../../operations/system-tables/settings_profiles.md#system_tables-settings_profiles).
### Syntax
@ -322,7 +322,7 @@ SHOW [SETTINGS] PROFILES
## SHOW POLICIES
Returns a list of [row policies](../../operations/access-rights.md#row-policy-management) for the specified table. To view user accounts parameters, see the system table [system.row_policies](../../operations/system-tables/row_policies.md#system_tables-row_policies).
Returns a list of [row policies](../../guides/sre/user-management/index.mdd#row-policy-management) for the specified table. To view user accounts parameters, see the system table [system.row_policies](../../operations/system-tables/row_policies.md#system_tables-row_policies).
### Syntax
@ -332,7 +332,7 @@ SHOW [ROW] POLICIES [ON [db.]table]
## SHOW QUOTAS
Returns a list of [quotas](../../operations/access-rights.md#quotas-management). To view quotas parameters, see the system table [system.quotas](../../operations/system-tables/quotas.md#system_tables-quotas).
Returns a list of [quotas](../../guides/sre/user-management/index.mdd#quotas-management). To view quotas parameters, see the system table [system.quotas](../../operations/system-tables/quotas.md#system_tables-quotas).
### Syntax
@ -351,7 +351,7 @@ SHOW [CURRENT] QUOTA
```
## SHOW ACCESS
Shows all [users](../../operations/access-rights.md#user-account-management), [roles](../../operations/access-rights.md#role-management), [profiles](../../operations/access-rights.md#settings-profiles-management), etc. and all their [grants](../../sql-reference/statements/grant.md#grant-privileges).
Shows all [users](../../guides/sre/user-management/index.mdd#user-account-management), [roles](../../guides/sre/user-management/index.mdd#role-management), [profiles](../../guides/sre/user-management/index.mdd#settings-profiles-management), etc. and all their [grants](../../sql-reference/statements/grant.md#grant-privileges).
### Syntax