You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Brock Noland (JIRA)" <ji...@apache.org> on 2014/03/07 16:50:42 UTC
[jira] [Created] (SENTRY-133) Alter table create partition if not
exists - results in error
Brock Noland created SENTRY-133:
-----------------------------------
Summary: Alter table create partition if not exists - results in error
Key: SENTRY-133
URL: https://issues.apache.org/jira/browse/SENTRY-133
Project: Sentry
Issue Type: Bug
Reporter: Brock Noland
Priority: Critical
Given:
{noformat}
create table parted (line string) partitioned by (day string);
{noformat}
The following fails:
{noformat}
alter table parted add if not exists partition (day='Monday');
{noformat}
and this succeeds:
{noformat}
alter table parted add partition (day='Monday');
{noformat}
{noformat}
2014-03-07 07:41:26,457 ERROR org.apache.hadoop.hive.ql.Driver: FAILED: IllegalArgumentException URI '' in invalid. Must start with file:// or hdfs://
java.lang.IllegalArgumentException: URI '' in invalid. Must start with file:// or hdfs://
at org.apache.sentry.core.AccessURI.<init>(AccessURI.java:33)
at org.apache.sentry.binding.hive.HiveAuthzBindingHook.parseURI(HiveAuthzBindingHook.java:272)
at org.apache.sentry.binding.hive.HiveAuthzBindingHook.parseURI(HiveAuthzBindingHook.java:247)
at org.apache.sentry.binding.hive.HiveAuthzBindingHook.extractPartition(HiveAuthzBindingHook.java:239)
at org.apache.sentry.binding.hive.HiveAuthzBindingHook.preAnalyze(HiveAuthzBindingHook.java:171)
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)