You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "anubhav tarar (JIRA)" <ji...@apache.org> on 2017/04/01 11:43:41 UTC

[jira] [Updated] (HIVE-16350) No Exception when tried to alter table location with invalid uri

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

anubhav tarar updated HIVE-16350:
---------------------------------
    Description: 
I tried to alter a table location with invalid uri it do not give me any exception

here are logs

hive> alter table hivetable set LOCATION 'loc:////home/knoldus/Desktop'
    > ;
OK
but at time of insert it gives me exception

hive> insert into hivetable values(1,2);
FAILED: IllegalStateException Error getting FileSystem for loc:/home/knoldus/Desktop: java.io.IOException: No FileSystem for scheme: loc

should give exception at time of alter table command

  was:
I tried to alter a table location with invalid uri it don not give me any exception

here are logs

hive> alter table hivetable set LOCATION 'loc:////home/knoldus/Desktop'
    > ;
OK
but at time of insert it gives me exception

hive> insert into hivetable values(1,2);
FAILED: IllegalStateException Error getting FileSystem for loc:/home/knoldus/Desktop: java.io.IOException: No FileSystem for scheme: loc


> No Exception when tried to alter table location with invalid uri
> ----------------------------------------------------------------
>
>                 Key: HIVE-16350
>                 URL: https://issues.apache.org/jira/browse/HIVE-16350
>             Project: Hive
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 1.2.1
>            Reporter: anubhav tarar
>            Assignee: anubhav tarar
>            Priority: Trivial
>
> I tried to alter a table location with invalid uri it do not give me any exception
> here are logs
> hive> alter table hivetable set LOCATION 'loc:////home/knoldus/Desktop'
>     > ;
> OK
> but at time of insert it gives me exception
> hive> insert into hivetable values(1,2);
> FAILED: IllegalStateException Error getting FileSystem for loc:/home/knoldus/Desktop: java.io.IOException: No FileSystem for scheme: loc
> should give exception at time of alter table command



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)