Recently we upgrade the dremio version from 4.9 to 15.7. One SQL scripts could not work in 15.7. But in 4.9, it work well.
The issue SQL:
select nvl(E.EntitySettledCollateral,0), E.EntitySettledCollateral from COLLATERAL.MARGINCALL E
where E.BCDFCollateralAgreementID is not null