您当前的位置: 首页 >  ar

顧棟

暂无认证

  • 2浏览

    0关注

    227博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Spark SQL 教程翻译(四)与Hive的兼容性

顧棟 发布时间:2021-07-24 15:10:52 ,浏览量:2

文章目录
    • Compatibility with Apache Hive
        • Deploying in Existing Hive Warehouses
      • Supported Hive Features
      • Unsupported Hive Functionality
      • Incompatible Hive UDF

Compatibility with Apache Hive

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 Warehouses

Spark SQL Thrift JDBC 服务器旨在与现有 Hive 安装“开箱即用”兼容。 您不需要修改现有的 Hive Metastore 或更改表的数据放置或分区。

Supported Hive Features

Spark 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。
关注
打赏
1663402667
查看更多评论
0.0362s