make ln() and exp() have the return type Double
This commit is contained in:
parent
385cba79d8
commit
c9015bcd8d
|
@ -1972,11 +1972,17 @@ public class CommonFunctionFactory {
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
queryEngine.getSqmFunctionRegistry().namedDescriptorBuilder( "ln" )
|
queryEngine.getSqmFunctionRegistry().namedDescriptorBuilder( "ln" )
|
||||||
|
.setInvariantType(
|
||||||
|
queryEngine.getTypeConfiguration().getBasicTypeRegistry().resolve( StandardBasicTypes.DOUBLE )
|
||||||
|
)
|
||||||
.setExactArgumentCount( 1 )
|
.setExactArgumentCount( 1 )
|
||||||
.setParameterTypes(NUMERIC)
|
.setParameterTypes(NUMERIC)
|
||||||
.register();
|
.register();
|
||||||
|
|
||||||
queryEngine.getSqmFunctionRegistry().namedDescriptorBuilder( "exp" )
|
queryEngine.getSqmFunctionRegistry().namedDescriptorBuilder( "exp" )
|
||||||
|
.setInvariantType(
|
||||||
|
queryEngine.getTypeConfiguration().getBasicTypeRegistry().resolve( StandardBasicTypes.DOUBLE )
|
||||||
|
)
|
||||||
.setExactArgumentCount( 1 )
|
.setExactArgumentCount( 1 )
|
||||||
.setParameterTypes(NUMERIC)
|
.setParameterTypes(NUMERIC)
|
||||||
.register();
|
.register();
|
||||||
|
|
Loading…
Reference in New Issue