文章目录
Compatibility with Apache Hive
- Compatibility with Apache Hive
- Deploying in Existing Hive Warehouses
- Supported Hive Features
- Unsupported Hive Functionality
- Incompatible Hive UDF
Spark SQL 旨在与 Hive Metastore、SerDes 和 UDF 兼容。 目前 Hive SerDes 和 UDF 基于 Hive 1.2.1,Spark SQL 可以连接到不同版本的 Hive Metastore(从 0.12.0 到 2.1.1。另见与不同版本的 Hive Metastore 交互)。
Deploying in Existing Hive WarehousesSpark SQL Thrift JDBC 服务器旨在与现有 Hive 安装“开箱即用”兼容。 您不需要修改现有的 Hive Metastore 或更改表的数据放置或分区。
Supported Hive FeaturesSpark SQL 支持绝大多数 Hive 功能,例如:
- Hive query statements, including:
SELECT
GROUP BY
ORDER BY
CLUSTER BY
SORT BY
- All Hive operators, including:
- Relational operators (
=
,⇔
,==
,,
,
>=
,1,Hive 返回 null,Spark SQL 返回 NaN。
ASIN(n)
如果 n < -1 或 n > 1,Hive 返回 null,Spark SQL 返回 NaN。
- Relational operators (