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

Alan Gates updated HIVE-10010:
------------------------------
    Attachment: HIVE-10010.patch

This patch completely reworks SharedStorageDescriptor.  It is now much simpler. 
 Rather than having a pointer to an actual shared object, it does a shallow 
copy of the StorageDescriptor it is handed.  Then if a user does a get on a 
nested structure or list, that structure or list is deep copied.  That way if 
the user modified the structure or list the modifications apply only to current 
StorageDescriptor, not to all of the SharedStorageDescriptors that are sharing 
the nested structures and lists.


> Alter table results in NPE [hbase-metastore branch]
> ---------------------------------------------------
>
>                 Key: HIVE-10010
>                 URL: https://issues.apache.org/jira/browse/HIVE-10010
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: hbase-metastore-branch
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>         Attachments: HIVE-10010.patch
>
>
> Doing an alter table results in:
> {code}
> 2015-03-18 10:45:54,189 ERROR [main]: exec.DDLTask (DDLTask.java:failed(512)) 
> - java.lang.NullPointerException
>     at 
> org.apache.hadoop.hive.metastore.api.StorageDescriptor.<init>(StorageDescriptor.java:239)
>     at org.apache.hadoop.hive.metastore.api.Table.<init>(Table.java:270)
>     at org.apache.hadoop.hive.metastore.api.Table.deepCopy(Table.java:310)
>     at org.apache.hadoop.hive.ql.metadata.Table.copy(Table.java:856)
>     at org.apache.hadoop.hive.ql.exec.DDLTask.alterTable(DDLTask.java:3329)
>     at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:329)
>     at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
>     at 
> org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:88)
>     at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1644)
>     at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1403)
>     at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1189)
>     at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1055)
>     at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1045)
>     at 
> org.apache.hadoop.hive.metastore.hbase.TestHBaseMetastoreSql.table(TestHBaseMetastoreSql.java:89)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to