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
-

-

Ben Hood April 21st, 2011 @ 09:17 PM
(from [748f0446abea3c6011856ca98bc0220d03a43dd6]) [#210] Re-arranged the date partitioning so that it looks more carefully at whether the default bounds have been narrowed https://github.com/lshift/diffa/commit/748f0446abea3c6011856ca98bc0...
-

-

Ben Hood April 21st, 2011 @ 09:17 PM
(from [fdae9fc320910f2b65320f1fc9193ca8ac08c2ef]) [#210] This test was too coarse grained and did not address the root of the issue, but it was useful in tracking the issue down https://github.com/lshift/diffa/commit/fdae9fc320910f2b65320f1fc919...
-

-

Ben Hood April 28th, 2011 @ 04:33 PM
- State changed from open to resolved
- Assigned user changed from Ben Hood to Paul Jones
This has been merged, but may require some QA follow up
-

Ben Hood May 11th, 2011 @ 08:54 AM
- State changed from resolved to closed
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.
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.
People watching this ticket
Referenced by
-
210
Constrained date range gets widened
(from [5da9489bd5b4ee41fee8f98d878a79d2587d57f1])
[#210] ...
-
210
Constrained date range gets widened
(from [748f0446abea3c6011856ca98bc0220d03a43dd6])
[#210] ...
-
210
Constrained date range gets widened
(from [7d82e1e669768c94f415014b8c58117760a7e693])
[#210] ...
-
210
Constrained date range gets widened
(from [fdae9fc320910f2b65320f1fc9193ca8ac08c2ef])
[#210] ...
-
210
Constrained date range gets widened
(from [5c77cacb365fd8a87ed418c987784162f20eff1e])
[#210] ...