hadoop-hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johan Oskarsson (JIRA)" <j...@apache.org>
Subject [jira] Created: (HIVE-193) Cannot create table with tinyint type column
Date Mon, 22 Dec 2008 17:44:44 GMT
Cannot create table with tinyint type column
--------------------------------------------

                 Key: HIVE-193
                 URL: https://issues.apache.org/jira/browse/HIVE-193
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Query Processor, Serializers/Deserializers
    Affects Versions: 0.2.0
            Reporter: Johan Oskarsson
            Priority: Blocker
             Fix For: 0.2.0


Running this query "create table something2 (test tinyint);" gives the following exception:

org.apache.hadoop.hive.serde2.dynamic_type.ParseException: Encountered "byte" at line 1, column
21.
Was expecting one of:
    "bool" ...
    "i16" ...
    "i32" ...
    "i64" ...
    "double" ...
    "string" ...
    "map" ...
    "list" ...
    "set" ...
    "required" ...
    "optional" ...
    "skip" ...
    <tok_int_constant> ...
    <IDENTIFIER> ...
    "}" ...
    
	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.generateParseException(thrift_grammar.java:2321)
	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.jj_consume_token(thrift_grammar.java:2253)
	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.Struct(thrift_grammar.java:1172)
	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.TypeDefinition(thrift_grammar.java:497)
	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.Definition(thrift_grammar.java:439)
	at org.apache.hadoop.hive.serde2.dynamic_type.thrift_grammar.Start(thrift_grammar.java:101)
	at org.apache.hadoop.hive.serde2.dynamic_type.DynamicSerDe.initialize(DynamicSerDe.java:97)
	at org.apache.hadoop.hive.metastore.MetaStoreUtils.getDeserializer(MetaStoreUtils.java:180)
	at org.apache.hadoop.hive.ql.metadata.Table.initSerDe(Table.java:141)
	at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:202)
	at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:641)
	at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:98)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:215)
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:174)
	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:207)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:305)

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


Mime
View raw message