You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2014/03/07 19:21:43 UTC
[jira] [Resolved] (SENTRY-133) Alter table create partition if not
exists - results in error
[ https://issues.apache.org/jira/browse/SENTRY-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Jarcec Cecho resolved SENTRY-133.
---------------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
Assignee: Brock Noland
Patch committed: https://git-wip-us.apache.org/repos/asf?p=incubator-sentry.git;a=commit;h=0341d51b9f6f128b80b47678f7f1c5087b645a77
Thank you [~brocknoland] for your contribution!
> 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
> Assignee: Brock Noland
> Priority: Critical
> Fix For: 1.4.0
>
> Attachments: SENTRY-133.patch, SENTRY-133.patch
>
>
> 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)