Explorar el Código

docs: update cast datetime convention (#2063)

Signed-off-by: xjasonlyu <xjasonlyu@gmail.com>
Jason Lyu hace 1 año
padre
commit
97be796d1b

+ 1 - 1
docs/en_US/sqls/functions/transform_functions.md

@@ -18,7 +18,7 @@ When casting to a datetime type, the supported column type and casting rule are:
 1. If a column is datetime type, just return the value.
 2. If column is bigint or float type, the number will be treated as the milliseconds elapsed since January 1, 1970 00:
    00:00 UTC and converted.
-3. If column is string, it will be parsed to datetime with the default format: `"2006-01-02T15:04:05.000Z07:00"`.
+3. If column is string, it will try to automatically detect the format and convert it to datetime type.
 4. Other types are not supported.
 
 ## ENCODE

+ 1 - 1
docs/zh_CN/sqls/functions/transform_functions.md

@@ -16,7 +16,7 @@ cast(col,  "bigint")
 
 1. 如果参数为 datetime 类型,则直接返回原值。
 2. 如果参数为 bigint 或者 float 类型,则其数值会作为自 1970年1月1日0时起至今的毫秒值而转换为 datetime 类型。
-3. 如果参数为 string 类型,则会用默认格式 `"2006-01-02T15:04:05.000Z07:00"`  将其转换为 datetime类型。
+3. 如果参数为 string 类型,则会尝试自动识别格式并将其转换为 datetime类型。
 4. 其他类型的参数均不支持转换。
 
 ## CHR