gpt4 book ai didi

hadoop - hive中外键关系的实现

转载 作者:可可西里 更新时间:2023-11-01 16:49:44 25 4
gpt4 key购买 nike

我试图创建一个与另一个表具有外键关系的配置单元表,但我遇到了错误。

不是可以在hive表中实现外键关系吗?

最佳答案

hive 没有实现外键引用 Hadoop Tutorials描述如下:

Like any other SQL engines, we don't have any primary keys and foreign keys in Hive as hive is not meant to run complex relational queries. It's used to get data in easy and efficient manner. So while designing hive schema, we don't need to bother about selecting unique key etc. Also we don't need to bother about normalizing the set of data for efficiency.

关于hadoop - hive中外键关系的实现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33843612/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com