hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hari Sekhon (JIRA)" <>
Subject [jira] [Created] (HIVE-8538) Fully qualified table error when adding partition
Date Tue, 21 Oct 2014 09:58:33 GMT
Hari Sekhon created HIVE-8538:

             Summary: Fully qualified table error when adding partition
                 Key: HIVE-8538
             Project: Hive
          Issue Type: Improvement
    Affects Versions: 0.13.0
         Environment: HDP 2.1
            Reporter: Hari Sekhon
            Priority: Minor

When adding a partition using a fully qualified table name I get the following error, works
fine if I use database and then re-issue the query with a non-qualified table name. Other
queries such as select do work with fully qualified table names so should make this allow
qualified table names for convenience and consistency.

hive> alter table myDB.myTable add partition (log_date='xxxx-xx-xx');
        at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(
        at org.antlr.runtime.BaseRecognizer.match(
        at org.apache.hadoop.hive.ql.parse.HiveParser.alterStatementSuffixExchangePartition(
        at org.apache.hadoop.hive.ql.parse.HiveParser.alterTableStatementSuffix(
        at org.apache.hadoop.hive.ql.parse.HiveParser.alterStatement(
        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.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:32 mismatched input 'add' expecting KW_EXCHANGE near 'myTable'
in alter exchange partition
hive> use myDB;
Time taken: 0.009 seconds
hive> alter table myTable add partition (log_date='xxxx-xx-xx');
Time taken: 0.157 seconds

This message was sent by Atlassian JIRA

View raw message