We are experiencing a problem while converting our R dataframe to Spark data frame. We employ 'collect()' function to load our data to R from Spark. Later after finishing data manipulation we transfer our table to Spark by using copy_to() function. But, In our output, date column appears in dbl format. Before skipping to Spark in R, it was in date format. How can we maintain our date variables format as date, while converting to Spark data frame.
df_spark <- copy_to(spark_connect, df, overwrite = TRUE)
filter(df_spark, ID_number == 1234)
ID_number date
<int> <dbl>
1234 17307