Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

cast_string_* session settings

These settings are available in system.settings and are autogenerated from source.

cast_string_to_date_time_mode

Type
DateTimeInputFormat
Default
best_effort
Version history
VersionDefault valueComment
26.5best_effortBetter usability
25.6basicAllow to use different DateTime parsing mode in String to DateTime cast

Allows choosing a parser of the text representation of date and time during cast from String.

Possible values:

  • 'best_effort' — Enables extended parsing.

    ClickHouse can parse the basic YYYY-MM-DD HH:MM:SS format and all ISO 8601 date and time formats. For example, '2018-06-08T01:02:03.000Z'.

  • 'best_effort_us' — Similar to best_effort (see the difference in parseDateTimeBestEffortUS

  • 'basic' — Use basic parser.

    ClickHouse can parse only the basic YYYY-MM-DD HH:MM:SS or YYYY-MM-DD format. For example, 2019-08-20 10:18:56 or 2019-08-20.

See also:

cast_string_to_dynamic_use_inference

Type
Bool
Default
0
Version history
VersionDefault valueComment
24.50Add setting to allow converting String to Dynamic through parsing

Use types inference during String to Dynamic conversio

cast_string_to_variant_use_inference

Type
Bool
Default
1
Version history
VersionDefault valueComment
25.41New setting to enable/disable types inference during CAST from String to Variant

Use types inference during String to Variant conversion.

Navigation