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
| Version | Default value | Comment |
|---|---|---|
| 26.5 | best_effort | Better usability |
| 25.6 | basic | Allow 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:SSformat and all ISO 8601 date and time formats. For example,'2018-06-08T01:02:03.000Z'. -
'best_effort_us'— Similar tobest_effort(see the difference in parseDateTimeBestEffortUS -
'basic'— Use basic parser.ClickHouse can parse only the basic
YYYY-MM-DD HH:MM:SSorYYYY-MM-DDformat. For example,2019-08-20 10:18:56or2019-08-20.
See also:
cast_string_to_dynamic_use_inference
Type
Bool
Default
0
Version history
| Version | Default value | Comment |
|---|---|---|
| 24.5 | 0 | Add 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
| Version | Default value | Comment |
|---|---|---|
| 25.4 | 1 | New setting to enable/disable types inference during CAST from String to Variant |
Use types inference during String to Variant conversion.