When query results are returned into DbFit, some values are shown/returned as 'null' even for Primary Key values. Hence the comparison fails. Please check the attached screenshots.
But when I query the DB directly, I can see the values as expected.
Issue is happening for 2 different fields. Both are different data type, but returned as null into DbFit.
Can you please tell how we can we can handle and get the actual values into DbFit?
!include -seamless .1MappingTestSuiteDemo.2CustomerSuite
|set option|bind symbols|false|
!define OSQuery {!-
select IP.UNQ_ID_IN_SRC_STM,IP.DATA_DT,IP.SRC_DL, NULL as LEGAL_FORM
from OS_-!${dname}!-.IP partition(-!${os_partition_name}!-) IP
left join OS_-!${dname}!-.CL_X_IP_RLTNP IPR on IPR.IP_UNQ_ID_IN_SRC_STM = IP.UNQ_ID_IN_SRC_STM and IPR.CL_ID IN ('CST', 'FORMR_CST')
where IP.IP_TP_ID = 'INDIV'
-!}
!define DMQuery {!-
select CU.CUSTOMER_NUMBER,CU.DATA_DATE,CU.SRC_DL,CU.LEGAL_FORM from
dm_kyc_fcrm.CUSTOMER subpartition (-!${dm_partition_name}!-) CU
left outer join OS_-!${dname}!-.IP partition(-!${os_partition_name}!-) IP on IP.UNQ_ID_IN_SRC_STM = CU.CUSTOMER_NUMBER
where IP.IP_TP_ID = 'INDIV'
-!}
!|Store Query|${OSQuery}|OS|
!|Store Query|${DMQuery}|DM|
!|Compare Stored Queries|OS|DM|
|A_NUMBER|DATA_DATE?|SRC_DL?|EOD_BALANCE?|?|