-
Notifications
You must be signed in to change notification settings - Fork 0
DataChunk* precondition failing because of malformed(?) date #71
Comments
What does (first date) mean here? On Wed, Jul 11, 2012 at 10:13 AM, Robin Kraft <
Sam Ritchie, Twitter Inc (Too brief? Here's why! http://emailcharter.org) |
Ran into this issue with It gets pretty complicated in the static preprocessing, so I haven't been able to replicate the exact state of the preprocessing workflow when it fails (with a call to predicate/chunkifier). But all is not lost. Something is going wrong with a nullable (chunkifier ?dataset !date ?s-res ?t-res ?h ?v ?id ?val :> ?tile-chunk) That should pass the (??- (let [src [["ndvi" (thrift/ModisPixelLocation* "500" 28 8 0 0) 1 "16" nil]]]
(<- [?dc]
(src ?name ?loc ?val ?t-res !date)
(thrift/DataChunk* ?name ?loc ?val ?t-res !date :> ?dc)))) One fix would be to use (thrift/ModisChunkLocation* ?s-res ?h ?v ?id chunk-size :> ?tile-loc)
(thrift/DataChunk* ?dataset ?tile-loc ?val ?t-res :> ?tile-chunk) |
fix for #71 by replacing call to chunkifier with direct use of thrift API
Fixed with pull request #141 |
Can I see a test for this? |
A test for what exactly? This whole preprocessing process? Or just the piece that was breaking? On Jul 19, 2012, at 8:21 PM, Sam Ritchie reply@reply.github.com wrote:
|
The piece that was breaking -- I'm realizing that the precondition is better, I'm just convinced that I understand why the precondition was failing with |
This will replicate the error. There's no test of the chunkifier at the moment, but I can add one tomorrow. (??- (let [src [["ndvi" (thrift/ModisPixelLocation* "500" 28 8 0 0) 1 "16" nil]]]
(<- [?dc]
(src ?name ?loc ?val ?t-res !date)
(thrift/DataChunk* ?name ?loc ?val ?t-res !date :> ?dc)))) |
This happens on feature/deliver when running preprocessing:
Thrift is getting called in predicate/chunkfier:
https://github.com/reddmetrics/forma-clj/blob/feature/deliver/src/clj/forma/hadoop/predicate.clj#L157
I'm running this command:
The text was updated successfully, but these errors were encountered: