Spark How to store DateType As Date not as Long


(Ram) #1

when creating index with spark all DateType column is stored as Long
But I want to store as Date
How can i ?


(James Baiera) #2

@ramvodedara ES-Hadoop/Spark delegates to Elasticsearch's facilities for automatically assigning mappings. If one of the mappings is not what you expected automatically, you must set the mapping for the index yourself before sending documents to it in ES-Hadoop/Spark.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.