Skip to content

DOCS-448: system.settings - #10013

Merged
BayoNet merged 7 commits into
ClickHouse:masterfrom
BayoNet:docs/CLICKHOUSEDOCS-448-system-settings-table
Apr 6, 2020
Merged

BayoNet merged 7 commits into
ClickHouse:masterfrom
BayoNet:docs/CLICKHOUSEDOCS-448-system-settings-table

Conversation

@BayoNet

@BayoNet BayoNet commented Apr 2, 2020

Copy link
Copy Markdown
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category:

  • Documentation

elenaScripts and others added 2 commits April 2, 2020 14:16
* "docs(system.settings): Table 'system.settings' has been edited"

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* "docs(system.settings): Table 'system.settings' has been edited"

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* Update docs/en/operations/system_tables.md

Co-Authored-By: BayoNet <[email protected]>

* "docs(system.settings): Table 'system.settings' has been edited"

* "docs(system.settings): Table 'system.settings' has been edited"

Co-authored-by: elenbaskakova <[email protected]>
Co-authored-by: BayoNet <[email protected]>
@BayoNet BayoNet changed the title Docs/clickhousedocs 448 system settings table DOCS-448: system.settings Apr 2, 2020
@blinkov
blinkov requested review from Enmk, blinkov and qoega April 2, 2020 11:35

@Enmk Enmk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks lovely, wish there was a way to automate this kind of formatting.

@qoega qoega left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently not OK

Comment thread docs/en/operations/system_tables.md Outdated
- `readonly` (UInt8) — Can user change this setting (for more info, look into [constraints](settings/constraints_on_settings.md#constraints-on-settings)).
- `name` ([String](../data_types/string.md)) — Setting name.
- `value` ([String](../data_types/string.md)) — Setting value.
- `changed` ([UInt8](../data_types/int_uint.md#uint-ranges)) — Shows whether a setting is changed during the session.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed from default AFAIK. Settings that are defiled in configuration file are also shown in changed.

- `description` ([String](../data_types/string.md)) — Short setting description.
- `min` ([Nullable](../data_types/nullable.md)([String](../data_types/string.md))) — Minimum value of the setting, if any is set via [constraints](settings/constraints_on_settings.md#constraints-on-settings). If the setting has no minimum value, contains [NULL](../query_language/syntax.md#null-literal).
- `max` ([Nullable](../data_types/nullable.md)([String](../data_types/string.md))) — Maximum value of the setting, if any is set via [constraints](settings/constraints_on_settings.md#constraints-on-settings). If the setting has no maximum value, contains [NULL](../query_language/syntax.md#null-literal).
- `readonly` ([UInt8](../data_types/int_uint.md#uint-ranges)) — Shows whether the current user can change the setting:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In previous version there is a link to find information why this setting is readony. In new one it is lost
(for more info, look into [constraints](settings/constraints_on_settings.md#constraints-on-settings))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's not about constraints, there are complicated set of conditions which lead to readonly. There is no proper text in docs.

Comment thread docs/en/operations/system_tables.md Outdated
Comment on lines +856 to +862
name,
value,
changed,
description,
min,
max,
readonly

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If all columns are selected why not use *

max,
readonly
FROM system.settings
WHERE changed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example with WHERE changed is the top scenario for a user.

  • Check that his chahges in xml are used and read correctly.
  • Check whether she already set something in current session.
  • What configuration is set on a cluster

It is better not to lose this case.

@BayoNet
BayoNet merged commit fd4e246 into ClickHouse:master Apr 6, 2020
@BayoNet
BayoNet deleted the docs/CLICKHOUSEDOCS-448-system-settings-table branch April 6, 2020 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants