case when toDate(createdAt, 'yyyy-MM-dd HH:mm:ss') < '2021-07-01' then true else false end as column1, concat_ws(' ', surname, name) as column2, if(length(email) > 10, left(email, 10), '') as column3 ...
其中,to_date将createdAt列转换为日期格式,concat_ws返回组合姓名,if用于确定电子邮件地址是否大于10个字符,并设置适当的默认值。