hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santlal J Gupta <>
Subject Issue while working with parquet hive
Date Tue, 04 Aug 2015 05:26:47 GMT

I want to use Date and BigDecimal datatype with parquet hive.

Currently I am using Hive 0.12.0-cdh5.1.0 version.

When I have written following query I get as given below .

Query :

hive (primitive_db)> create table big_date_test( dob  DATE , salary BIGDECIMAL ) stored
as parquet;
        at org.apache.hadoop.hive.ql.parse.HiveParser.type(
        at org.apache.hadoop.hive.ql.parse.HiveParser.colType(
        at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameType(
        at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameTypeList(
        at org.apache.hadoop.hive.ql.parse.HiveParser.createTableStatement(
        at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(
        at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(
        at org.apache.hadoop.hive.ql.parse.HiveParser.statement(
        at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(
        at org.apache.hadoop.hive.ql.Driver.compile(
        at org.apache.hadoop.hive.ql.Driver.compile(
        at org.apache.hadoop.hive.ql.Driver.compileInternal(
        at org.apache.hadoop.hive.ql.Driver.runInternal(
        at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(
        at org.apache.hadoop.hive.cli.CliDriver.processLine(
        at org.apache.hadoop.hive.cli.CliDriver.executeDriver(
        at org.apache.hadoop.hive.cli.CliDriver.main(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.hadoop.util.RunJar.main(
FAILED: ParseException line 1:46 cannot recognize input near 'bigdecimal' ')' 'stored' in
column type

Please guide me, which version should I use so that I am able to use these datatypes.

This e-mail message and any attachments may contain confidential information and is for the
sole use of the intended recipient(s) only. Any views or opinions presented or implied are
solely those of the author and do not necessarily represent the views of BitWise. If you are
not the intended recipient(s), you are hereby notified that disclosure, printing, copying,
forwarding, distribution, or the taking of any action whatsoever in reliance on the contents
of this electronic information is strictly prohibited. If you have received this e-mail message
in error, please immediately notify the sender and delete the electronic message and any attachments.BitWise
does not accept liability for any virus introduced by this e-mail or any attachments. ********************************************************************************************

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message