File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -382,9 +382,10 @@ base configuration `conf` and job name `jname`."
382
382
383
383
(defmethod node-fn :input
384
384
[node conf jname]
385
- (fn [^Job job]
385
+ (fn [& [ ^Job job] ]
386
386
(if-let [dseq (-> node :config first)]
387
- (vary-meta dseq assoc ::mr/counters (.getCounters job)))))
387
+ (cond-> dseq
388
+ job (vary-meta assoc ::mr/counters (.getCounters job))))))
388
389
389
390
(defn ^:private ensure-output-paths!
390
391
[job]
Original file line number Diff line number Diff line change 208
208
(catch Exception e
209
209
(-> e .getCause ex-data)))]
210
210
(is (:from-task? info))))
211
+
212
+ (deftest test-noop-input-graph
213
+ (th/with-config
214
+ (let [inpath (io/resource " word-count-input.txt" )
215
+ indseq (text/dseq inpath)
216
+ word (->> (-> (pg/input indseq)
217
+ (pg/fexecute (conf/ig ) `noop-input-graph))
218
+ (pr/first ))]
219
+ (is (= " apple" word)))))
You can’t perform that action at this time.
0 commit comments