uwescience / myria-web

Web frontend for Myria
https://demo.myria.cs.washington.edu
Other
11 stars 14 forks source link

Casting Question/Possible Issue #236

Closed ljorr1 closed 9 years ago

ljorr1 commented 9 years ago

screen shot 2014-12-12 at 6 07 21 pm

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];

dhalperi commented 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.

dhalperi commented 9 years ago

so my guess is that you have integers in the tables you are scanning..