7

在条件拆分组件中,我需要知道 Age 是否等于 -1 并使用以下语句。在此处输入图像描述

但是,运行时会出现错误。我应该如何修改我的陈述?谢谢!

Error: The expression "Age == -1" on "output "Unknown" (12743)" evaluated to NULL, but the "component "Age Conditional Split 1" (12740)" requires a Boolean results. Modify the error row disposition on the output to treat this result as False (Ignore Failure) or to redirect this row to the error output (Redirect Row).  The expression results must be Boolean for a Conditional Split.  A NULL expression result is an error.
4

1 回答 1

13

我猜你的年龄有一些 NULL 值。如果要将 NULL 发送到相同的未知输出,则可以将表达式更改为:

ISNULL(Age) || Age == -1
于 2012-08-23T16:43:12.607 回答