Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在逐步使用 Kettle 的 Group。当 Group By 为任何变量返回空值时,我无法插入 MySql(给出有关“NaN”的错误)。我写入txt文件,值写为“?”。如何将此值转换为 null?如果我测试该值,它不为空。
在我看来,该值实际上不是null,而是Not a Number (NaN)。您可以使用以下代码添加Modified Java Script Value步骤:
null
if isNaN(field_name) { field_name = null; }
这将查看您的字段是否不是数字,如果是,请将其设置为null.