Serializable Error with Group Relation Assignment

This forum is to report technical problems with Rel.
Post Reply
Blake
Posts: 9
Joined: Tue Jun 07, 2011 9:08 pm

Serializable Error with Group Relation Assignment

Post by Blake »

Running the following with DBrowser gives me
ERROR: RelDatabase: RelvarPrivate setValue failed: com.sleepycat.util.RuntimeExceptionWrapper: java.io.NotSerializableException: ca.mb.armchair.rel3.storage.RelDatabase

Code: Select all

var cons real relation { id integer, kind integer, value  relation { price integer, quantity integer } } 
init
( relation { 
  tuple { id 1, kind 1, value relation { tuple { price 1, quantity  5 } } },
  tuple { id 2, kind 1, value relation { tuple { price 1, quantity  5 } } }
  } )
key { id, kind };

var ccc private relation same_heading_as (cons { kind, value }) key {kind};
var ddd private relation same_heading_as ((cons ungroup (value)) {kind, price, quantity}) key {kind, price};

ddd := summarize (cons  ungroup (value)) by { kind, price } add ( sum ( quantity ) as quantity );
output ddd group ( { price, quantity} as value);
ccc := ddd group ( { price, quantity} as value);
Dave
Site Admin
Posts: 368
Joined: Sun Nov 27, 2005 7:19 pm

Re: Serializable Error with Group Relation Assignment

Post by Dave »

Thanks! This will be fixed in the next update.
Dave
Site Admin
Posts: 368
Joined: Sun Nov 27, 2005 7:19 pm

Re: Serializable Error with Group Relation Assignment

Post by Dave »

This is now fixed, to be included in the next update in a few days.
Post Reply