2024-06-23 19:35:15 发布
网友
我正在为数据帧中的每个column应用数据类型,如下所示
column
[StructField('name',StringType(),True), StructField(‘dob’,DateType(),True)]
在上述声明中是否有提及日期格式YYYY/MM/DD
YYYY/MM/DD
很抱歉,不行,默认的日期类型格式是:YYYY-MM-DD,如documentation of apache spark中所述:
A date type, supporting "0001-01-01" through "9999-12-31".
很抱歉,不行,默认的日期类型格式是:YYYY-MM-DD,如documentation of apache spark中所述:
相关问题 更多 >
编程相关推荐