[jira] [Commented] (HIVE-18685) Add catalogs to Hive

2019-11-20 Thread Shaohui Liu (Jira)


[ 
https://issues.apache.org/jira/browse/HIVE-18685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16978988#comment-16978988
 ] 

Shaohui Liu commented on HIVE-18685:


Very impressive feature.  Any progress update? 

[~gates]

> Add catalogs to Hive
> 
>
> Key: HIVE-18685
> URL: https://issues.apache.org/jira/browse/HIVE-18685
> Project: Hive
>  Issue Type: New Feature
>  Components: Metastore, Parser, Security, SQL
>Affects Versions: 3.0.0
>Reporter: Alan Gates
>Assignee: Alan Gates
>Priority: Major
> Attachments: HMS Catalog Design Doc.pdf
>
>
> SQL supports two levels of namespaces, called in the spec catalogs and 
> schemas (with schema being equivalent to Hive's database).  I propose to add 
> the upper level of catalog.  The attached design doc covers the use cases, 
> requirements, and brief discussion of how it will be implemented in a 
> backwards compatible way.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (HIVE-18685) Add catalogs to Hive

2019-05-13 Thread Alan Gates (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-18685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16838697#comment-16838697
 ] 

Alan Gates commented on HIVE-18685:
---

At upgrade any existing databases do have their catalog name set to 'hive'.  
And if the client does not specify a catalog the database is assigned to hive.  
So upgrades and old clients with new servers are covered.

The only situation I can see that isn't covered is if an old server is using a 
new database (so the database has the catalog field, but the server does not 
know to set it).  This isn't a case I had considered as the database is usually 
upgraded with the server.  If you are concerned about this case you could 
submit a patch that sets the default value to 'hive'.

> Add catalogs to Hive
> 
>
> Key: HIVE-18685
> URL: https://issues.apache.org/jira/browse/HIVE-18685
> Project: Hive
>  Issue Type: New Feature
>  Components: Metastore, Parser, Security, SQL
>Affects Versions: 3.0.0
>Reporter: Alan Gates
>Assignee: Alan Gates
>Priority: Major
> Attachments: HMS Catalog Design Doc.pdf
>
>
> SQL supports two levels of namespaces, called in the spec catalogs and 
> schemas (with schema being equivalent to Hive's database).  I propose to add 
> the upper level of catalog.  The attached design doc covers the use cases, 
> requirements, and brief discussion of how it will be implemented in a 
> backwards compatible way.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18685) Add catalogs to Hive

2019-05-10 Thread Aditya Shah (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-18685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16836949#comment-16836949
 ] 

Aditya Shah commented on HIVE-18685:


[~alangates] I wanted to verify the backward compatibility of the new schema. 
As you mentioned we have associated each database with a catalog and therefore, 
a new default catalog "hive" was created. But, at the same time shouldn't the 
default value of "CTLG_NAME" in "DBS" be set as "hive", Because when using 
preCatalog versions of hive and trying to create a database the foreign key 
constraint caused the command to fail with the following error:
{code:java}
org.apache.hadoop.hive.ql.metadata.HiveException: 
MetaException(message:Exception thrown flushing changes to datastore)

java.sql.BatchUpdateException: Cannot add or update a child row: a foreign key 
constraint fails ("metastore_1238"."DBS", CONSTRAINT "CTLG_FK1" FOREIGN KEY 
("CTLG_NAME") REFERENCES "CTLGS" ("NAME"))
{code}
 

> Add catalogs to Hive
> 
>
> Key: HIVE-18685
> URL: https://issues.apache.org/jira/browse/HIVE-18685
> Project: Hive
>  Issue Type: New Feature
>  Components: Metastore, Parser, Security, SQL
>Affects Versions: 3.0.0
>Reporter: Alan Gates
>Assignee: Alan Gates
>Priority: Major
> Attachments: HMS Catalog Design Doc.pdf
>
>
> SQL supports two levels of namespaces, called in the spec catalogs and 
> schemas (with schema being equivalent to Hive's database).  I propose to add 
> the upper level of catalog.  The attached design doc covers the use cases, 
> requirements, and brief discussion of how it will be implemented in a 
> backwards compatible way.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18685) Add catalogs to Hive

2019-04-12 Thread Alan Gates (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-18685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16816275#comment-16816275
 ] 

Alan Gates commented on HIVE-18685:
---

Specifying a catalog in the CLI or beeline is not yet supported.  So far the 
only way to specify a catalog is in the config file of the client.  

> Add catalogs to Hive
> 
>
> Key: HIVE-18685
> URL: https://issues.apache.org/jira/browse/HIVE-18685
> Project: Hive
>  Issue Type: New Feature
>  Components: Metastore, Parser, Security, SQL
>Affects Versions: 3.0.0
>Reporter: Alan Gates
>Assignee: Alan Gates
>Priority: Major
> Attachments: HMS Catalog Design Doc.pdf
>
>
> SQL supports two levels of namespaces, called in the spec catalogs and 
> schemas (with schema being equivalent to Hive's database).  I propose to add 
> the upper level of catalog.  The attached design doc covers the use cases, 
> requirements, and brief discussion of how it will be implemented in a 
> backwards compatible way.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (HIVE-18685) Add catalogs to Hive

2019-04-12 Thread Jianguo Tian (JIRA)


[ 
https://issues.apache.org/jira/browse/HIVE-18685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16816074#comment-16816074
 ] 

Jianguo Tian commented on HIVE-18685:
-

How to specify catalog in Hive CLI or Beeline?

> Add catalogs to Hive
> 
>
> Key: HIVE-18685
> URL: https://issues.apache.org/jira/browse/HIVE-18685
> Project: Hive
>  Issue Type: New Feature
>  Components: Metastore, Parser, Security, SQL
>Affects Versions: 3.0.0
>Reporter: Alan Gates
>Assignee: Alan Gates
>Priority: Major
> Attachments: HMS Catalog Design Doc.pdf
>
>
> SQL supports two levels of namespaces, called in the spec catalogs and 
> schemas (with schema being equivalent to Hive's database).  I propose to add 
> the upper level of catalog.  The attached design doc covers the use cases, 
> requirements, and brief discussion of how it will be implemented in a 
> backwards compatible way.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)