简体   繁体   English

Talend中“ Null”字符串到时间戳的转换

[英]“Null” String to timestamp conversion in Talend

I have timestamp column in excel which contains few "Null" values and the rest are timestamp values. 我在excel中有一个timestamp列,其中包含一些“ Null”值,其余为timestamp值。

My target table for loading the data from excel to table has timestamp column also. 我的用于将数据从excel加载到表的目标表也有timestamp列。

How to convert this "Null" to timestamp in Talend? 如何在Talend中将“空”转换为时间戳?

I am getting this error : 我收到此错误:

Unparseable number: "NULL" 无法解析的数字:“ NULL”

Just try with a quick search and replace NULL with 0 . 只需尝试快速搜索,然后将NULL替换为0即可。

From what I can see from your error message, replacing null values with zero in the spreadsheet should solve the issue and allow it to be imported into postgreSQL . 从您的错误消息中可以看出,在电子表格中将空值替换为零应该可以解决该问题并将其导入到postgreSQL中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM