Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: awilliams1024Hi
If I use dateSubstract() on some sample data I always get the same result if the input field contains Null - i.e. the output is also NULL
node:Filter
bretype:core::Filter
editor:sortkey=5b0fdf2525ab0d96
input:@40fd2c74167f1ca2/=Sample_Data.40fe6c55598828e5
output:@40fd2c7420761db6/=
prop:Script=<<EOX
# dateSubtract(date(1999,12,31),FieldName)
diff = dateSubtract(date(1999,12,31),dueDate)
emit *, diff
EOX
editor:XY=450,160
end:Filter
node:Sample_Data
bretype:core::Static Data
editor:Label=Sample Data
editor:sortkey=5b0fde7e54a61cf0
output:@40fe6c55598828e5/=
prop:StaticData=<<EOX
id:int,dueDate:date
1,2018-01-01
2,NULL
3,2018-02-02
4,NULL
5,2018-04-02
EOX
editor:XY=330,160
end:Sample_Data
Would you be able to post a small sample of the input data that will exhibit this issue you are seeing?
Thanks,
Adrian