作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我试图创建一个与另一个表具有外键关系的配置单元表,但我遇到了错误。
不是可以在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/
我是一名优秀的程序员,十分优秀!