I have a table in Hive which has a column of type MAP<String, String> which is basically json data. Eg. : {"y1":"False","y2":"False","y3":"52402292","y4":"d90fce80-b352-4aca-8d83-6e997e48d917"}
As per the Vertica official documentation MAP data in Hive converts to VARCHAR in Vertica. So, I have a corresponding table in Vertica with column type VARCHAR. Now, I am trying to copy this data from Hive table to Vertica table issuing the Vertica COPY command. All data gets copied successfully but the JSON data from hive is copied distorted like this -
y1Falsey2Falsey352402292y4d90fce80-b352-4aca-8d83-6e997e48d917 . As seen here, the JSON format is lost completely. I get a plain string instead in the VARCHAR column.
The command that I issue is -
COPY vertica_table SOURCE Hdfs(url='http:url:50070/webhdfs/v1/user/warehouse/hive_db.db/hive_table_name/part=20170530/*') DELIMITER E'\001' NULL AS '' NO ESCAPE REJECTMAX 10000 DIRECT;
Can someone help me understand what is going wrong during copy? Did I miss something here? Thanks for help.