Hi Michael, Try returning "\\N" instead. Mark Grover, Business Intelligence Analyst OANDA Corporation
www: oanda.com www: fxtrade.com e: mgro...@oanda.com "Best Trading Platform" - World Finance's Forex Awards 2009. "The One to Watch" - Treasury Today's Adam Smith Awards 2009. ----- Original Message ----- From: "mdefoinplatel ext" <mdefoinplatel....@orange.com> To: hive-u...@hadoop.apache.org Sent: Monday, December 12, 2011 7:46:18 AM Subject: Getting a NULL from a MAP operation Dear all , I am trying to process some web log data and one of the steps consists in parsing a string to extract the relevant fields. So I am using a FROM … MAP… USING … statement calling a python script. My problem is that the returned fields may not exist in the original string and therefore I would like to insert NULL into the HIVE table. I have tried to make python return the strings ‘NULL’ or ‘null’ or ‘None’ or ‘’ but none of them are recognized by HIVE as NULL (which after all seems pretty reasonable to me). Could you tell me please what could be the way to go ? Thanks, Michael _________________________________________________________________________________________________________________________ Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorization. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, France Telecom - Orange shall not be liable if this message was modified, changed or falsified. Thank you.