Is there a way to preserve the data types, when importing data using sqoop?

We are importing data from Oracle to HDFS using sqoop? How can we retain the data types when importing the data. In HDFS we are creating an avro file.
But the problem is, date is being converted to long and all other data types are being converted to string. Please suggest a way to preserve the data types, when importing data using sqoop?
Thanks in advance.

Tagged:
Sign In or Register to comment.