Closed ljorr1 closed 9 years ago
MyriaL programs from the website are only guaranteed to work if all the types in your dataset are [double, long, string]. If you use floats or ints or bools or dates weird things like this may happen.
In MyriaL, int(x)
means "cast x to 64 bit integer" and float(x)
means "cast x to 64 bit float". We are not handling small types at the language level.
so my guess is that you have integers in the tables you are scanning..
Is INT casting working? Also, do you automatically cast everything with an addition to a long? In do while loops, we have had to cast everything that iterates on i+1 to an int. For example,
delta = [from edges as e1, edgesInit as e2, I where e1.nextGroup = e2.currentGroup and e1.currentTime+1 = e2.currentTime and e1.currentTime = int(I.i) and e1.nowGroup = e2.nowGroup emit e2.nowGroup, e2.currentTime, e2.currentGroup, e2.nextGroup, e2.sharedParticleCount];