hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shyam Sundar Sarkar (JIRA)" <>
Subject [jira] Updated: (HIVE-192) Cannot create table with timestamp type column
Date Thu, 16 Apr 2009 19:10:15 GMT


Shyam Sundar Sarkar updated HIVE-192:

    Comment: was deleted

(was: Can someone please help me to find out why I am getting exception in setUp() method
inside file (attached) ?
I followed all lines and methods from existing CliDriver test class in Hive and modified just
to test TIMESTAMP sysntax in some queries.
I stepped through the setUp under debug mode and it gave error in QTestUtil at the line :

private String tmpdir =  System.getProperty("user.dir")+"/../build/ql/tmp";

where "user.dir" was home dir of hive (not inside build dir).

If I run the general CliDriver tests and then try to run my test for TIMESTAMP, above exception
does not show up.
However, I am getting exception at the line :

testFiles = conf.get("").replace('\\', '/').replace("c:", "");

inside QTestUtil constructor.

My question ::  Why am I getting setUp() exception when I do not need a data file ?
Can someone suggest a specific step that I am missing ?


> Cannot create table with timestamp type column
> ----------------------------------------------
>                 Key: HIVE-192
>                 URL:
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.2.0
>            Reporter: Johan Oskarsson
>             Fix For: 0.4.0
>         Attachments: create_2.q.txt, TIMESTAMP_specification.txt
> create table something2 (test timestamp);
> ERROR: DDL specifying type timestamp which has not been defined
> java.lang.RuntimeException: specifying type timestamp which has not been defined
> 	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.FieldType(
> 	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.Field(
> 	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.FieldList(
> 	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.Struct(
> 	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.TypeDefinition(
> 	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.Definition(
> 	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.Start(
> 	at org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDe.initialize(
> 	at org.apache.hadoop.hive.metastore.MetaStoreUtils.getDeserializer(
> 	at org.apache.hadoop.hive.ql.metadata.Table.initSerDe(
> 	at org.apache.hadoop.hive.ql.metadata.Hive.createTable(
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(
> 	at org.apache.hadoop.hive.ql.exec.DDLTask.execute(
> 	at
> 	at org.apache.hadoop.hive.cli.CliDriver.processCmd(
> 	at org.apache.hadoop.hive.cli.CliDriver.processLine(
> 	at org.apache.hadoop.hive.cli.CliDriver.main(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message