I have some data which has timestamp column field which is long and its epoch standard , I need to save that data in split-ted format like yyyy/mm/dd/hh using spark scala
data.write.partitionBy("timestamp").format("orc").save("mypath")
this is just splitting the data by timestamp like below
timestamp=1458444061098
timestamp=1458444061198
but I want it to be as
└── YYYY
└── MM
└── DD
└── HH