You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Phabricator (Updated) (JIRA)" <ji...@apache.org> on 2012/03/15 05:07:57 UTC

[jira] [Updated] (HIVE-2870) Throw an error when a nonexistent partition is accessed in strict mode

     [ https://issues.apache.org/jira/browse/HIVE-2870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phabricator updated HIVE-2870:
------------------------------

    Attachment: HIVE-2870.D2319.1.patch

lucian requested code review of "HIVE-2870 [jira] Throw an error when a nonexistent partition is accessed in strict mode".
Reviewers: JIRA

  HIVE-2870: Throw an error when a nonexistent partition is accessed.

  When a table does not exist and someone tries to read from it
  in a query, Hive throws an error.

  But if a partition is directly accessed that does not exist, an error
  is not thrown. This is inconsistent and also leads to a lot of
  confused users who get no output.

  This patch is to cause Hive to throw an error when the partition pruner
  for a query eliminates ALL existing partitions for some table when
  running in strict mode.

  Task ID: #

  Blame Rev:

  When a table does not exist and someone tries to read from it in a query, Hive throws an error.

  But if a partition is directly accessed that does not exist, an error is not thrown. This is inconsistent and also leads to a lot of confused users who get no output.

  This task is to cause Hive to throw an error when the partition pruner for a query eliminates ALL existing partitions for some table when running in strict mode.

TEST PLAN
  Revert Plan:

  Tags:

REVISION DETAIL
  https://reviews.facebook.net/D2319

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java
  ql/src/java/org/apache/hadoop/hive/ql/parse/ErrorMsg.java

MANAGE HERALD DIFFERENTIAL RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/5145/

Tip: use the X-Herald-Rules header to filter Herald messages in your client.

                
> Throw an error when a nonexistent partition is accessed in strict mode
> ----------------------------------------------------------------------
>
>                 Key: HIVE-2870
>                 URL: https://issues.apache.org/jira/browse/HIVE-2870
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>            Reporter: Lucian Adrian Grijincu
>            Priority: Minor
>         Attachments: HIVE-2870.D2319.1.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> When a table does not exist and someone tries to read from it in a query, Hive throws an error.
> But if a partition is directly accessed that does not exist, an error is not thrown. This is inconsistent and also leads to a lot of confused users who get no output.
> This task is to cause Hive to throw an error when the partition pruner for a query eliminates ALL existing partitions for some table when running in strict mode.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira