I am trying to insert a table from Oracle to HDFS using Nifi. The source table in Oracle has a timestamp(6) datatype field called sd_timestamp.
Nifi is having the following processor:
- QueryDatabase: This queries the OracleDatabase.
- CovertAVROSchema:
This one has input and output schemas. Both input and output schemas have
sd_timestampdatatype as String. - ConvertAvroToOrc
- PutHDFS:
The table that is created in Hive also has the datatype as string for
sd_timestamp. When the ingestion is done and I do aselect *from the destination hive table, I am gettingoracle.sql.timestamp@23aff4as the value instead of the timestamp.
Please help.




