I have a table in postgres containing a timestamp column. This table is stored in hdfs as a parquet file. When I try to read it:
parqDF = sc.read.parquet("hdfs://localhost:9000/hadoop_files/sample_2022_02.parquet")
the app fails with the error:
org.apache.spark.sql.AnalysisException: Illegal Parquet type: INT64 (TIMESTAMP(NANOS,true))
Do I need to change the column type in db to something else? Or add some conversion in the app?