java.lang.String" . but when i use ByteArrayInputStream (as seen in some
other thread ) i have"clojure.lang.PersistentList cannot be cast to
java.lang.String" . don't know how to fix it .I want to retrieve data
between 2 timestamp values . i have some 800 rows in my data .My code
snipper below: Please let me know where am i wrong .I am really stuck
.someone help me out !!
(<- [?timestamp ?value]
((select-fields info ["?timestamp" "?value"]) ?timestamp ?value)))
(def datefrom "12:05:2010 10:00:00")
(def custom-formatter (f/formatter "dd:MM:yyyy HH:mm:ss"))
(def start-value (ct/to-long (f/parse custom-formatter datefrom)))
(def dateto "12:05:2010 11:00:00")
(def end-value (ct/to-long (f/parse custom-formatter dateto)))
(defmacro convert-to-long [a]
(ct/to-long (f/parse custom-formatter a)) )
(?<- (stdout)[?timestamp ?value](info-tap ?timestamp ?value)
(> convert-to-long[?timestamp] start-value)
(< convert-to-long[?timestamp] end-value))
I my code i am converting timestamp strings to long (numbers ) so that i
can compare them .But ?timestamp field have 800 or more entries (rows) of
timestamps . but custom-formatter is expecting a string. How do i deal with
it .I guess something is wrong with my cascalog query . My data looks like :
12:05:2010 00:00:00;GasTurbine2103/01;TC255;78.9912:05:2010 00:01:00;GasTurbine2103/01;TC255;77.599
...so on (800 or more entries)
You received this message because you are subscribed to the Google Groups "cascalog-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firstname.lastname@example.org.
For more options, visit https://groups.google.com/d/optout.