spark-json-schema icon indicating copy to clipboard operation
spark-json-schema copied to clipboard

Any thoughts for providing support for TimeStamp?

Open DRavikanth opened this issue 7 years ago • 3 comments

Are you planning to add timestamp type to the json schema?

DRavikanth avatar Oct 05 '17 23:10 DRavikanth

Hi, so far we don't have such plans. For our use-case it suffices to use timestamps as strings and let the specific parsing be done by the application. However we do welcome external pull requests.

hesserp avatar Oct 06 '17 09:10 hesserp

Thanks for letting me know.

DRavikanth avatar Oct 07 '17 19:10 DRavikanth

Just to clarify, this request is to add support for date-time formatted strings in a JSON Schema like:

"TimestampField": {
    "type": [
        "null",
        "string"
    ],
    "format": "date-time"
},

And having spark-json-schema interpret these fields as Timestamps?

dhimmel avatar Feb 02 '21 14:02 dhimmel