-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
According to the docs here https://techascent.github.io/tech.ml.dataset/supported-datatypes.html :instant is a supported data type.
However with this example code (adapted from the same page) running with version 7.053 I get No matching clause: :instant:
(ns dataset
(:require [tech.v3.dataset-api :as ds]))
(def data-maps (for [idx (range 10)]
{:a idx
:b (str (.plusDays (java.time.LocalDateTime/now) idx))}))
data-maps
;; works
(:b (ds/->dataset data-maps))
;; works
(:b (ds/->dataset data-maps {:parser-fn {:b [:local-date "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS"]}}))
;; works
(:b (ds/->dataset data-maps {:parser-fn {:b [:local-date-time "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS"]}}))
;; not working
(:b (ds/->dataset data-maps {:parser-fn {:b [:instant "yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS"]}}))
;; Execution error (IllegalArgumentException) at tech.v3.dataset.io.datetime/datetime-formatter-parse-str-fn (datetime.clj:150).
;; No matching clause: :instant
Thanks 🙏
Metadata
Metadata
Assignees
Labels
No labels