You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems to be related to the fact coalesce only support values OR function, not combination of both @test
public void testCoalesceSumFunction_BigDecimal()
{
Entity from = from(Entity.class);
Function sum = sum(from.getBigDecimalField());
// Ok if Function does not have BigDecimal generic type
Function coalesce = coalesce(sum, from.getBigDecimalField2());
Query select = select(coalesce);
assertEquals("select coalesce(sum(entity_0.bigDecimalField),entity_0.bigDecimalField2) from Entity entity_0", select.getQuery());
}
The problem seems related to the way java handles the variable parameters @test
public void testCoalesceSumFunctions_BigDecimal()
{
Entity from = from(Entity.class);
Function sum = sum(from.getBigDecimalField());
Function sum2 = sum(from.getBigDecimalField2());
// Type safety: A generic array of Function is created for a varargs parameter
Function coalesce = coalesce(sum, sum2);
Query select = select(coalesce);
assertEquals("select coalesce(sum(entity_0.bigDecimalField),entity_0.bigDecimalField2) from Entity entity_0", select.getQuery());
}
The text was updated successfully, but these errors were encountered:
here are the test cases:
Seems to be related to the fact coalesce only support values OR function, not combination of both
@test
public void testCoalesceSumFunction_BigDecimal()
{
Entity from = from(Entity.class);
Function sum = sum(from.getBigDecimalField());
// Ok if Function does not have BigDecimal generic type
Function coalesce = coalesce(sum, from.getBigDecimalField2());
Query select = select(coalesce);
assertEquals("select coalesce(sum(entity_0.bigDecimalField),entity_0.bigDecimalField2) from Entity entity_0", select.getQuery());
}
The problem seems related to the way java handles the variable parameters
@test
public void testCoalesceSumFunctions_BigDecimal()
{
Entity from = from(Entity.class);
Function sum = sum(from.getBigDecimalField());
Function sum2 = sum(from.getBigDecimalField2());
// Type safety: A generic array of Function is created for a varargs parameter
Function coalesce = coalesce(sum, sum2);
Query select = select(coalesce);
assertEquals("select coalesce(sum(entity_0.bigDecimalField),entity_0.bigDecimalField2) from Entity entity_0", select.getQuery());
}
The text was updated successfully, but these errors were encountered: