Oushu Database 3.0.1新特性 (发布日期:2017年10月30日) -------------------------------------------------------------- Oushu Database 3.0.1版本比Oushu Database 3.0版本有如下新特性增强: * 内部表支持ORC, TEXT和CSV格式。新执行器现在只支持ORC格式,所以我们添加了ORC内部表格式,使得用户可以在更多场景使用新执行器。 * 外部表创建时默认由可读变为读写。创建的外部表在3.0.1版本之前默认为只读,因为可读写的外部表现在用户用的比较多,所以3.0.1版本更改了默认行为,创建的外部表默认为可读可写。 * new_executor GUC值的默认值由"auto"改成了"on",这样用户在ORC表上使用新执行器暂时还未支持的功能时会提示错误信息,用户如果需要把不支持的功能自动切换到老执行器,用户需要修改该值为"auto". * 关键Bug fixes * oushu-8 : Fix potential coredump issue when reading ORC file with stripe in dictionary encoding * oushu-9 : Fix wrong result issue when using count() function with a scalar parameter * oushu-10: Fix potential coredump issue when using avg() function * oushu-11: Copy udt reports type not found in segment * oushu-12: Fix potential coredump issue when reading ORC file with null values in string column * oushu-13: QD hung when error occurs in query dispatch 下表给出了Oushu Database 3.0.1版本支持的操作系统。 .. list-table:: :widths: auto :header-rows: 1 * - 操作系统 - 版本 * - Redhat/Centos - 7.0 * - Redhat/Centos - 7.1 * - Redhat/Centos - 7.2 * - Redhat/Centos - 7.3 内部表支持ORC,TEXT,CSV格式 +++++++++++++++++++++++++++++++++++++++++++++++ 本章节展示新增内部表格式。 建立ORC,TEXT,CSV内部表 .. code-block:: html :linenos: CREATE TABLE test_orc (i int, j float) format 'orc'; CREATE TABLE test_text (i int, j float) format 'text'; CREATE TABLE test_csv (i int, j float) format 'csv'; 表的其他操作方式不变, 内部表存储位置为 .. code-block:: html :linenos: hdfs://hawq_dfs_url/tablespacename/dbname/schemaname/tablename hawq_dfs_url的值为hawq_site.xml中的value值。 删除内部表 .. code-block:: html :linenos: drop table test_orc; 删除内部表后,hdfs上面的存储文件随之删除 外部表创建时默认由可读变为读写 +++++++++++++++++++++++++++++++++++++++++++++++ 本章节展示外部表的创建。 .. code-block:: html :linenos: // 创建了可写外部表 CREATE EXTERNAL TABLE test (i int, j float) location ('hdfs://localhost:9000/hawq_default/test'); INSERT INTO test VALUES (1,0.1); 从3.0升级到3.0.1 ++++++++++++++++++++++++++ 3.0升级到3.0.1只需二进制替换升级,不涉及元数据和存储格式变化,注意在替换Binary前需要备份Oushu Database配置文件,在替换后把备份的配置文件拷贝回去。 下载安装请参考文档: :ref:`my-reference-label`