*** hive/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java 2010-08-18 12:54:37.000000000 -0700 --- hive/metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreUtils.java 2010-08-18 12:55:58.000000000 -0700 *************** *** 418,426 **** // These 3 types are not supported yet. // We should define a complex type date in thrift that contains a single int member, and DynamicSerDe // should convert it to date type at runtime. ! typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.DATE_TYPE_NAME, "date"); ! typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.DATETIME_TYPE_NAME, "datetime"); ! typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.TIMESTAMP_TYPE_NAME, "timestamp"); } /** Convert type to ThriftType. We do that by tokenizing the type and convert each token. */ --- 418,434 ---- // These 3 types are not supported yet. // We should define a complex type date in thrift that contains a single int member, and DynamicSerDe // should convert it to date type at runtime. ! // typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.DATE_TYPE_NAME, "date"); ! // typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.DATETIME_TYPE_NAME, "datetime"); ! // typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.TIMESTAMP_TYPE_NAME, "timestamp"); ! ! ! // Changes made for Timestamp implementation...................................................... ! ! ! typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.DATE_TYPE_NAME, "string"); ! typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.DATETIME_TYPE_NAME, "string"); ! typeToThriftTypeMap.put(org.apache.hadoop.hive.serde.Constants.TIMESTAMP_TYPE_NAME, "string"); } /** Convert type to ThriftType. We do that by tokenizing the type and convert each token. */