本文介绍了主键约束和外键约束在蜂巢中如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

主键和外键约束功能可从Hive 2.1版本获得.此约束关系如何在配置单元中工作,与普通数据库中的类似.Hive使用读取时的架构"进行工作,那么这些约束在加载或删除数据时如何产生影响?

Primary key and foreign key constraints feature are available from Hive 2.1 version. How this constraint relation works in the hive, is it similar as in the normal database. Hive works on "Schema on reading", So How these constraints effects while loading or deleting the data?

推荐答案

Hive不验证主键和外键约束.因此,不,它与普通数据库"(例如)不同.在支持约束验证方面,像PostgreSQL这样的RDBMS.

Hive does not validate primary and foreign key contraints. So, no, it is not similar to a "normal database", e.g. an RDBMS like PostgreSQL, in terms of support for constraint validation.

请参考蜂巢文档,其中据说:

这篇关于主键约束和外键约束在蜂巢中如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 02:32