Open ydesai-exos opened 5 years ago
I have exactly the same problem. It seems like clock mixes seconds with milliseconds. A workaround ("hack") is to use ms instead of s in the code, in your case for a 1s interval:
from ts.flint import clocks
clock = clocks.uniform(sqlContext, frequency="1ms", offset="0ns")
clock.show()
or for one day interval:
from ts.flint import clocks
clock = clocks.uniform(sqlContext, frequency="86400ms", offset="0ns")
clock.show()
Thanks for the workaround @5mdd - I'll try it out. But of course, TwoSigma just needs to fix this! @icexelloss ?
@icexelloss
The clocks function for Flint in python is returning incorrect intervals.
The time intervals appear far too large than what I am specifying into the function.
For example:
returns
It should be 1 second intervals but returns intervals of 16 min 40 seconds.
Similarly, an interval of 1 day returns intervals of 2 years.
Also when I supply custom start and end times, the years returned are way out of range.