make ln() and exp() have the return type Double

This commit is contained in:
Gavin King 2022-01-30 19:21:26 +01:00
parent 385cba79d8
commit c9015bcd8d
1 changed files with 6 additions and 0 deletions

View File

@ -1972,11 +1972,17 @@ public class CommonFunctionFactory {
.register();
queryEngine.getSqmFunctionRegistry().namedDescriptorBuilder( "ln" )
.setInvariantType(
queryEngine.getTypeConfiguration().getBasicTypeRegistry().resolve( StandardBasicTypes.DOUBLE )
)
.setExactArgumentCount( 1 )
.setParameterTypes(NUMERIC)
.register();
queryEngine.getSqmFunctionRegistry().namedDescriptorBuilder( "exp" )
.setInvariantType(
queryEngine.getTypeConfiguration().getBasicTypeRegistry().resolve( StandardBasicTypes.DOUBLE )
)
.setExactArgumentCount( 1 )
.setParameterTypes(NUMERIC)
.register();