One immediate issue is that the format string is a lexical token, so a string of that format will not conform to the grammar at places where a string literal is expected. A better approach is to treat the format as a stringliteral and then do the format checks at the typecheck and semantic analysis time.
Ashish -----Original Message----- From: Shyam Sarkar [mailto:shyam_sar...@yahoo.com] Sent: Sunday, March 08, 2009 7:16 AM To: hive-dev@hadoop.apache.org Subject: Please check grammar for TIMESTAMP Hi Zheng and others, Could you please check Hive.g grammar changes for TIMESTAMP (See the comments with // Change by Shyam)? Please review and let me know your feedback. I shall write a short design doc later for review after these short exchanges. Thanks, shyam_sar...@yahoo.com