#202 ✓closed
Ben Hood

CategoryDescriptors should be strongly typed

Reported by Ben Hood | April 11th, 2011 @ 08:51 AM | in 0.9.3

Currently, bounded range CategoryDescriptors initialize themselves to be a typeless RangeCategoryConstraint. This causes an issue when a default bound is set in the config, e.g.:

<range-category name="bizDate" data-type="date" lower="2011-01-01" upper="2011-01-31"/>

This results in the following type error:

15:33:41.940 [akka:event-driven:dispatcher:global-10] ERROR PairActor:82 - FAILED to synchronise pair Staging7
scala.MatchError: RangeQueryConstraint(bizDate,2011-01-01,2011-01-31)
        at net.lshift.diffa.kernel.indexing.LuceneVersionCorrelationStore$$anonfun$applyConstraints$1.apply(LuceneVersionCorrelationStore.scala:112) ~[diffa-kernel-0.9.3-SNAPSHOT.jar:na]

What should probably happen here is that type information in the XML is used to create a more appropriately typed RangeQueryConstraint.

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