#210 ✓closed
Ben Hood

Constrained date range gets widened

Reported by Ben Hood | April 21st, 2011 @ 04:42 PM | in 0.9.3

Consider the following test:

@Test
  def dateRangeShouldNotWiden = {
    val dateConstraint = DateRangeConstraint("bizDate", new LocalDate(2011,04,01), new LocalDate(2011,04,29))
    val bucketing = Map("bizDate" -> YearlyCategoryFunction)

    val remote = ArrayBuffer(AggregateDigest(Buffer("2011"),"2abbcf10cf9ae11c53191eaf8b121104"))
    val local = List(AggregateDigest(List("2011"),"ae15bc55642738b49b0bad51c420e33b"))
    val actions = DigestDifferencingUtils.differenceAggregates(remote,local,bucketing, Seq(dateConstraint))

    assertEquals(1, actions.length)

    val queryAction = actions(0).asInstanceOf[AggregateQueryAction]

    assertEquals(1, queryAction.constraints.length)
    assertEquals(dateConstraint, queryAction.constraints(0))

  }

Currently this test fails...

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A Real Time Differencing Tool.

Shared Ticket Bins

People watching this ticket

Referenced by

Pages