Hi
I am trying to convert date from string to date format using R with
as.date() as shown below:
dfTest <- data.frame(StringDate=c("2020-12-01","2020-12-02"),
DateDate=as.Date(c("2020-12-01","2020-12-02")))
dfTest
StringDate DateDate
1 2020-12-01 2020-12-01
2 2020-12-02 2020-12-02
The above command gives desired output:
but when i use copy_to() as shown below , previous date are returned which
is very strange:
sdfTest <- copy_to(sc, dfTest)
sdfTest
#Source: spark [?? x 2]
StringDate DateDate
1 2020-12-01 2020-11-30
2 2020-12-02 2020-12-01
--
Sent from:
http://apache-spark-user-list.1001560.n3.nabble.com/---------------------------------------------------------------------
To unsubscribe e-mail:
[hidden email]