Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to compare 2 boolean values in tmap.
Boolean values are 0 and 1.
Basically I am doing SCD,so I want to compare incoming and lookup.
I tried converting to string but it always gives false
String.valueOf(row1.in_value).equals(String.valueOf(row2.In_value))?"Same_Value":"Diff_value"
If your booleans are represented as single bits, why not just compare those? What are the data types of both columns before conversion?
Both are boolean.
I used = ,== also but getting error.
After comparison I want to convert them to string.