Release Note 2.0.3
Previous Release Note 2.0.2
Thanks to our community users and developers, about 1000 improvements and bug fixes have been made in Doris 2.0.3 version, including optimizer statistics, inverted index, complex datatypes, data lake, replica management.
1 Behavior change
- The output format of the complex data type array/map/struct has been changed to be consistent to the input format and JSON specification. The main changes from the previous version are that DATE/DATETIME and STRING/VARCHAR are enclosed in double quotes and null values inside ARRAY/MAP are displayed as
nullinstead ofNULL.- https://github.com/apache/doris/pull/25946
- SHOW_VIEW permission is supported. Users with SELECT or LOAD permission will no longer be able to execute the 'SHOW CREATE VIEW' statement and must be granted the SHOW_VIEW permission separately.
- https://github.com/apache/doris/pull/25370
2 New features
2.1 Support collecting statistics for optimizer automatically
Collecting statistics helps the optimizer understand the data distribution characteristics and choose a better plan to greatly improve query performance. It is officially supported starting from version 2.0.3 and is enabled all day by default.
see more:https://doris.apache.org/docs/query-acceleration/statistics/
2.2 Support complex datatypes for more datalake source
- Support complex datatypes for JAVA UDF, JDBC and Hudi MOR
- https://github.com/apache/doris/pull/24810
- https://github.com/apache/doris/pull/26236
- Support complex datatypes for Paimon
- https://github.com/apache/doris/pull/25364
- Suport Paimon version 0.5
- https://github.com/apache/doris/pull/24985
2.3 Add more builtin functions
- Support the BitmapAgg function in new optimizer
- https://github.com/apache/doris/pull/25508
- Supports SHA series digest functions
- https://github.com/apache/doris/pull/24342
- Support the BITMAP datatype in the aggregate functions min_by and max_by
- https://github.com/apache/doris/pull/25430
- Add milliseconds/microseconds_add/sub/diff functions
- https://github.com/apache/doris/pull/24114
- Add some json functions: json_insert, json_replace, json_set
- https://github.com/apache/doris/pull/24384
3 Improvement and optimizations
3.1 Performance optimizations
- When the inverted index MATCH WHERE condition with a high filter rate is combined with the common WHERE condition with a low filter rate, the I/O of the index column is greatly reduced.
- Optimize the efficiency of random data access after the where filter.
- Optimizes the performance of the old get_json_xx function on JSON data types by 2~4x.
- Supports the configuration to reduce the priority of the data read thread, ensuring the CPU resources for real-time writing.
- Adds
uuid-numericfunction that returns largeint, which is 20 times faster thanuuidfunction that returns string. - Optimized the performance of case when by 3x.
- Cut out unnecessary predicate calculations in storage engine execution.
- Accelerate count performance by pushing down count operator to storage tier.
- Optimizes the computation performance of the nullable type in and or expressions.
- Supports rewriting the limit operator before
joinin more scenarios to improve query performance. - Eliminate useless
order byoperators from inline view to improve query performance. - Optimizes the accuracy of cardinality estimates and cost models in some cases.
- Optimized jdbc catalog predicate pushdown logic.
- Optimized the read efficiency of the file cache when it's enable for the first time.
- Optimizes the hive table sql cache policy and uses the partition update time stored in HMS to improve the cache hit ratio.
- Optimize mow compaction efficiency.
- Optimized thread allocation logic for external table query to reduce memory usage
- Optimize memory usage for column reader.
3.2 Distributed replica management improvements
Distributed replica management improvements include skipping partition deletion, colocate group deletion, balance failure due to continuous write, and hot and cold seperation table balance.
3.3 Security enhancement
- The audit log plug-in uses a token instead of a plaintext password to enhance security
- https://github.com/apache/doris/pull/26278
- log4j configures security enhancement
- https://github.com/apache/doris/pull/24861
- Sensitive user information is not displayed in logs
- https://github.com/apache/doris/pull/26912
4 Bugfix and stability
4.1 Complex datatypes
- Fix issues that fixed-length CHAR(n) was not truncated correctly in map/struct.
- https://github.com/apache/doris/pull/25725
- Fix write failure for struct datatype nested for map/array
- https://github.com/apache/doris/pull/26973
- Fix the issue that count distinct did not support array/map/struct
- https://github.com/apache/doris/pull/25483
- Fix be crash in updating to 2.0.3 after the delete complex type appeared in query
- https://github.com/apache/doris/pull/26006
- Fix be crash when JSON datatype is in WHERE clause.
- https://github.com/apache/doris/pull/27325
- Fix be crash when ARRAY datatype is in OUTER JOIN clause.
- https://github.com/apache/doris/pull/25669
- Fix reading incorrect result for DECIMAL datatype in ORC format.
- https://github.com/apache/doris/pull/26548
- https://github.com/apache/doris/pull/25977
- https://github.com/apache/doris/pull/26633
4.2 Inverted index
- Fix incorrect result for OR NOT combination in WHERE clause were incorrect when disable inverted index query.
- https://github.com/apache/doris/pull/26327
- Fix be crash when write a empty with inverted index
- https://github.com/apache/doris/pull/25984
- Fix be crash in index compaction when the output of compaction is empty.
- https://github.com/apache/doris/pull/25486
- Fixed the problem of adding an inverted index to be crashed when no data is written to the newly added column.
- Fix be crash when BUILD INDEX after ADD COLUMN without new data written.
- https://github.com/apache/doris/pull/27276
- Fix missing and leak problem of hardlink for inverted index file.
- https://github.com/apache/doris/pull/26903
- Fix index file corrupt when disk is full temporarilly
- https://github.com/apache/doris/pull/28191
- Fix incorrect result due to optimization for skip reading index column
- https://github.com/apache/doris/pull/28104
4.3 Materialized View
- Fix the problem of BE crash caused by repeated expressions in the group by statement
- Fix be crash when there are duplicate expressions in
group bystatements.- https://github.com/apache/doris/pull/27523
- Disables the float/doubld type in the
group byclause when a view is created.- https://github.com/apache/doris/pull/25823
- Improve the function of select query matching materialized view
- https://github.com/apache/doris/pull/24691
- Fix an issue that materialized views could not be matched when a table alias was used
- https://github.com/apache/doris/pull/25321
- Fix the problem using percentile_approx when creating materialized views
- https://github.com/apache/doris/pull/26528
4.4 Table sample
- Fix the problem that table sample query can not work on table with partitions.
- https://github.com/apache/doris/pull/25912
- Fix the problem that table sample query can not work when specify tablet.
- https://github.com/apache/doris/pull/25378
4.5 Unique with merge on write
- Fix null pointer exception in conditional update based on primary key
- https://github.com/apache/doris/pull/26881
- Fix field name capitalization issues in partial update
- https://github.com/apache/doris/pull/27223
- Fix duplicate keys occur in mow during schema change repairement.
- https://github.com/apache/doris/pull/25705
4.6 Load and compaction
- Fix unkown slot descriptor error in routineload for running multiple tables
- https://github.com/apache/doris/pull/25762
- Fix be crash due to concurrent memory access when caculating memory
- https://github.com/apache/doris/pull/27101
- Fix be crash on duplicate cancel for load.
- https://github.com/apache/doris/pull/27111
- Fix broker connection error during broker load
- https://github.com/apache/doris/pull/26050
- Fix incorrect result delete predicates in concurrent case of compation and scan.
- https://github.com/apache/doris/pull/24638
- Fix the problem tha compaction task would print too many stacktrace logs
- https://github.com/apache/doris/pull/25597
4.7 Data Lake compatibility
- Solve the problem that the iceberg table contains special characters that cause query failure
- https://github.com/apache/doris/pull/27108
- Fix compatibility issues of different hive metastore versions
- https://github.com/apache/doris/pull/27327
- Fix an error reading max compute partition table
- https://github.com/apache/doris/pull/24911
- Fix the issue that backup to object storage failed
- https://github.com/apache/doris/pull/25496
- https://github.com/apache/doris/pull/25803
4.8 JDBC external table compatibility
- Fix Oracle date type format error in jdbc catalog
- https://github.com/apache/doris/pull/25487
- Fix MySQL 0000-00-00 date exception in jdbc catalog
- https://github.com/apache/doris/pull/26569
- Fix an exception in reading data from Mariadb where the default value of the time type is current_timestamp
- https://github.com/apache/doris/pull/25016
- Fix be crash when processing BITMAP datatype in jdbc catalog
- https://github.com/apache/doris/pull/25034
- https://github.com/apache/doris/pull/26933
4.9 SQL Planner and Optimizer
-
Fix partition prune error in some scenes
- https://github.com/apache/doris/pull/27047
- https://github.com/apache/doris/pull/26873
- https://github.com/apache/doris/pull/25769
- https://github.com/apache/doris/pull/27636
-
Fix incorrect sub-query processing in some scenarios
- https://github.com/apache/doris/pull/26034
- https://github.com/apache/doris/pull/25492
- https://github.com/apache/doris/pull/25955
- https://github.com/apache/doris/pull/27177
-
Fix some semantic parsing errors
- https://github.com/apache/doris/pull/24928
- https://github.com/apache/doris/pull/25627
-
Fix data loss during right outer/anti join
- https://github.com/apache/doris/pull/26529
-
Fix incorrect pushing down of predicate pass aggregation operators.
- https://github.com/apache/doris/pull/25525
-
Fix incorrect result header in some cases
- https://github.com/apache/doris/pull/25372
-
Fix incorrect plan when the nullsafeEquals expression (<=>) is used as the join condition
- https://github.com/apache/doris/pull/27127
-
Fix correct column prune in set operation operator.
- https://github.com/apache/doris/pull/26884
Others
- Fix BE crash when the order of columns in a table is changed and then upgraded to 2.0.3.
- https://github.com/apache/doris/pull/28205
See the complete list of improvements and bug fixes on github dev/2.0.3-merged .
Big Thanks
Thanks all who contribute to this release:
@adonis0147 @airborne12 @amorynan @AshinGau @BePPPower @bigben0204 @BiteTheDDDDt @bobhan1 @ByteYue @CalvinKirs @CanGuan @caoliang-web @catpineapple @csun5285 @dataroaring @deadlinefen @deardeng @DongLiang-0 @Doris-Extras @dutyu @eldenmoon @englefly @freemandealer @fsilent @Gabriel39 @GoGoWen @HappenLee @hello-stephen @hf200012 @HHoflittlefish777 @HowardQin @hubgeter @hust-hhb @JackDrogon @jacktengg @jackwener @jeffreys-cat @Jibing-Li @JingDas @kaijchen @kaka11chen @KassieZ @Kikyou1997 @Lchangliang @LemonLiTree @liaoxin01 @LiBinfeng-01 @liugddx @liutang123 @lsy3993 @luozenglin @luwei16 @mongo360 @morningman @morrySnow @mrhhsg @Mryange @mymeiyi @neuyilan @nextdreamblue @Nitin-Kashyap @pingchunzhang @platoneko @qidaye @ryanzryu @seawinde @shuke987 @sohardforaname @starocean999 @SWJTU-ZhangLei @TangSiyang2001 @Tanya-W @TsukiokaKogane @vinlee19 @w41ter @wangbo @whutpencil @WinkerDu @wsjz @wuwenchi @Xiaoccer @xiaokang @xiedeyantu @XieJiann @xinyiZzz @xuefengze @XuJianxu @xy720 @xzj7019 @yagagagaga @yiguolei @yujun777 @Yukang-Lian @Yulei-Yang @zclllyybb @zddr @zfr9527 @zgxme @zhangguoqiang666 @zhangstar333 @zhangy5 @zhannngchen @zhiqiang-hhhh @zy-kkk @zzzxl1993 @zzzzzzzs
我们在使用部分列更新功能的时候遇到这样一个问题(使用的是2.02版本): 1、开启了部分列更新的功能,然后发现批量insert 多values 写入数据时会出错,单条写入没有问题。 2、数据删除后,再写入会不成功,然后把主键的值改改就可以写入了。
撒时候正式发布啊
对 Automatic Collection、统计信息有点兴趣,最近有什么开发计划吗?
@morningman @hawkingrei 想参加 Doris 统计信息的开发,他在这方面很有经验 ~
我们在使用部分列更新功能的时候遇到这样一个问题(使用的是2.02版本): 1、开启了部分列更新的功能,然后发现批量insert 多values 写入数据时会出错,单条写入没有问题。 2、数据删除后,再写入会不成功,然后把主键的值改改就可以写入了。
You can describe your problems more explicitly in https://github.com/apache/doris/issues or https://github.com/apache/doris/discussions.
对 Automatic Collection、统计信息有点兴趣,最近有什么开发计划吗?
Welcome, I will contact you later
撒时候正式发布啊
This week. Thanks for your attention.
中文版本的Release Note
感谢Doris社区参与2.0.3版本的100多位开发者和用户,这版本包含了统计信息、倒排索引、复杂数据类型、数据湖、分布式副本管理等近1000项改进与修复。
1 行为变更
- 复杂数据类型array/map/struct的输出格式改成跟输入格式以及JSON规范保持一致,跟之前版本的主要变化是日期和字符串用双引号括起来,ARRAY/MAP内部的空值显示为null而不是NULL。
- https://github.com/apache/doris/pull/25946
- 默认情况下,当用户属性
resource_tags.location没有设置时,只能使用 default 资源组的节点,而之前版本中可以访问任意节点。- https://github.com/apache/doris/pull/25331
- 支持 SHOW_VIEW 权限,拥有 SELECT 或 LOAD 权限的用户将不再能够执行
SHOW CREATE VIEW语句,必须单独授予 SHOW_VIEW 权限。- https://github.com/apache/doris/pull/25370
2 新功能
2.1 支持自动统计信息收集
通过收集统计信息有助于优化器了解数据分布特性,选择更优的计划以大幅提升查询效率。从2.0.3版本开始正式支持,默认为全天开启状态。
更多信息请参考:https://doris.apache.org/docs/query-acceleration/statistics/
2.2 数据湖更多系统支持复杂数据类型
- JAVA UDF、JDBC、Hudi MOR 表等功能支持复杂数据类型
- https://github.com/apache/doris/pull/24810
- https://github.com/apache/doris/pull/26236
- Paimon catalog 支持 复杂数据类型
- https://github.com/apache/doris/pull/25364
- Paimon catalog 支持 paimon 0.5 版本
- https://github.com/apache/doris/pull/24985
2.3 增加更多内置函数
- 新优化器支持BitmapAgg函数
- https://github.com/apache/doris/pull/25508
- 支持SHA系列摘要函数
- https://github.com/apache/doris/pull/24342
- 聚合函数min_by和max_by支持bitmap数据类型
- https://github.com/apache/doris/pull/25430
- 增加milliseconds/microseconds_add/sub/diff函数
- https://github.com/apache/doris/pull/24114
- 增加json_insert, json_replace, json_set JSON函数
- https://github.com/apache/doris/pull/24384
3 改进和优化
3.1 性能优化
- 在过滤率高的倒排索引MATCH WHERE条件和过滤率低的普通WHERE条件组合时,大幅降低索引列的IO
- 优化经过where条件过滤后随机读数据的效率
- 优化在JSON数据类型上使用老的get_json_xx 函数的性能,提升2-4倍
- 支持配置降低读数据线程的优先级,保证写入的CPU资源和实时性
- 增加返回largeint的uuid-numeric函数,性能比返回string的uuid函数快20倍
- 优化了case when 的性能提升3倍
- 在存储引擎执行中裁剪不必要的谓词计算
- 支持 count 算子下推到存储层
- 优化支持 and or 表达式中包含nullable 类型的计算性能
- 支持更多场景下limit算子提前到join前执行的改写,以提升执行效率
- 增加消除inline view中的无用的order by算子,以提升执行效率
- 优化了部分情况下的基数估计和代价模型的准确性,以提升执行效率
- 优化了jdbc catalog 的谓词下推逻辑和大小写逻辑
- 优化了file cache的第一次开启后的读取效率
- 优化hive 表sql cache 策略,使用 hms 中存储的分区更新时间作为 cache 是否失效的判断,提高cache命中率。
- 优化mow compaction 效率
- 优化了外表查询的线程分配逻辑,降低内存使用
- 优化column reader 的内存使用
3.2 分布式副本管理改进
包括跳过删除分区,colocate group ,持续写时均衡失败,冷热分层表不能均衡等
3.3 安全性提升
- 审计日志插件的配置使用token代替明文密码增强安全性
- https://github.com/apache/doris/pull/26278
- log4j配置安全性增强
- https://github.com/apache/doris/pull/24861
- 日志中不显示用户敏感信息
- https://github.com/apache/doris/pull/26912
4 bugfix和稳定性提升
4.1 复杂数据类型
- 修复了map/struct对定长CHAR(n)没有正确截断的问题
- https://github.com/apache/doris/pull/25725
- 修复了struct嵌套map/array写入失败的问题
- https://github.com/apache/doris/pull/26973
- 修复了count distinct不支持array/map/struct的问题
- https://github.com/apache/doris/pull/25483
- 解决query中出现delete复杂类型之后,升级到2.0.3 过程中出现be crash的问题
- https://github.com/apache/doris/pull/26006
- 修复了jsonb在where条件中be crash的问题
- https://github.com/apache/doris/pull/27325
- 修复了outer join中有array类型时be crash的问题
- https://github.com/apache/doris/pull/25669
- 修复 orc 格式 decimal 类型读取错误的问题
- https://github.com/apache/doris/pull/26548
- https://github.com/apache/doris/pull/25977
- https://github.com/apache/doris/pull/26633
4.2 倒排索引
- 修复了关闭倒排索引查询时OR NOT组合where条件结果错误的问题
- https://github.com/apache/doris/pull/26327
- 修复了空数组的倒排索引写入时be crash的问题
- https://github.com/apache/doris/pull/25984
- 修复输出为空的情况下index compaction be crash的问题
- https://github.com/apache/doris/pull/25486
- 修复新增列没有写入数据时,增加倒排索引be crash的问题
- https://github.com/apache/doris/pull/27276
- 修复1.2误建倒排索引后升级2.0等情况下倒排索引硬链缺失和泄露的问题
- https://github.com/apache/doris/pull/26903
4.3 物化视图
- 修复group by语句中包括重复表达式导致BE crash 的问题
- https://github.com/apache/doris/pull/27523
- 禁止视图创建时group by 子句中使用float/doubld 类型
- https://github.com/apache/doris/pull/25823
- 增强支持了select 查询命中物化视图的功能
- https://github.com/apache/doris/pull/24691
- 修复当使用了表的alias时,物化视图不能命中的问题
- https://github.com/apache/doris/pull/25321
- 修复了创建物化视图中使用percentile_approx的问题
- https://github.com/apache/doris/pull/26528
4.4 采样查询
- 修复table sample功能在partition table 上无法正常工作的问题
- https://github.com/apache/doris/pull/25912
- 修复table sample指定tablet 无法工作的问题
- https://github.com/apache/doris/pull/25378
4.5 主键表
- 修复基于主键条件更新的空指针异常
- https://github.com/apache/doris/pull/26881
- 修复部分列更新字段名大小写问题
- https://github.com/apache/doris/pull/27223
- 修复 schema change 时 mow 会出现重复 key 的问题
- https://github.com/apache/doris/pull/25705
4.6 导入和compaction
- 修复 routineload 一流多表时 unkown slot descriptor 错误
- https://github.com/apache/doris/pull/25762
- 修复内存统计并发访问导致be crash问题
- https://github.com/apache/doris/pull/27101
- 修复重复取消导入导致be crash的问题
- https://github.com/apache/doris/pull/27111
- 修复broker load 时 broker 连接报错问题
- https://github.com/apache/doris/pull/26050
- 修复compaction 和 scan 并发下 delete 谓词可能导致的查询结果不对
- https://github.com/apache/doris/pull/24638
- 修复compaction task存在时打印大量stacktrace日志的问题
- https://github.com/apache/doris/pull/25597
4.7 数据湖兼容性
- 解决iceberg 表中包含特殊字符导致查询失败的问题
- https://github.com/apache/doris/pull/27108
- 修复hive metastore 不同版本的兼容性问题
- https://github.com/apache/doris/pull/27327
- 修复读取 max compute 分区表错误的问题
- https://github.com/apache/doris/pull/24911
- 修复备份到对象存储失败的问题
- https://github.com/apache/doris/pull/25496
- https://github.com/apache/doris/pull/25803
4.8 JDBC外表兼容性
-
修复jdbc catalog处理Oracle日期类型格式错误的问题
- https://github.com/apache/doris/pull/25487
-
修复jdbc catalog读取MySQL 0000-00-00日期异常的问题
- https://github.com/apache/doris/pull/26569
-
修复从Mariadb读取数据时间类型默认值为current_timestamp时空指针异常问题
- https://github.com/apache/doris/pull/25016
-
修复jdbc catalog处理bitmap类型时be crash的问题
- https://github.com/apache/doris/pull/25034
- https://github.com/apache/doris/pull/26933
4.9 SQL规划和优化
-
修复了部分场景下分区裁剪错误的问题
- https://github.com/apache/doris/pull/27047
- https://github.com/apache/doris/pull/26873
- https://github.com/apache/doris/pull/25769
- https://github.com/apache/doris/pull/27636
-
修复了部分场景下子查询处理不正确的问题
- https://github.com/apache/doris/pull/26034
- https://github.com/apache/doris/pull/25492
- https://github.com/apache/doris/pull/25955
- https://github.com/apache/doris/pull/27177
-
修复了部分语义解析的错误
- https://github.com/apache/doris/pull/24928
- https://github.com/apache/doris/pull/25627
-
修复right outer/anti join时,有可能丢失数据的问题
- https://github.com/apache/doris/pull/26529
-
修复了谓词被错误的下推穿过聚合算子的问题
- https://github.com/apache/doris/pull/25525
-
修正了部分情况下返回的结果header不正确的问题
- https://github.com/apache/doris/pull/25372
-
包含有nullsafeEquals表达式(<=>)作为连接条件时,可以正确对规划出hash join
- https://github.com/apache/doris/pull/27127
-
修复了set operation算子中无法正确列裁剪的问题
- https://github.com/apache/doris/pull/26884
发版了吗,咋官网还没更新
发版了吗,咋官网还没更新
It's in the voting process and will be released tomorrow if vote passed.
我们的开发语言是 .net,使用的是 ODBC连接Doris 。Doris后期不在维护ODBC了?
We're closing this issue because it hasn't been updated in a while. If you'd like to revive this issue, please reopen it and feel free a maintainer to remove the Stale tag!