Commit Graph

5657 Commits

Author SHA1 Message Date
042d3bc1ed fix 1002_restore_read_tablet_meta_failed case timeout issue 2022-10-25 10:45:39 +08:00
8c31cdbdb7 don't print error log when read block return OB_ERR_OUT_OF_UPPER_BOUND in block GC 2022-10-25 10:41:04 +08:00
f5b12bcbfd fix obtest 2022-10-24 20:58:21 +08:00
5249eb58ff add case for gc with trans log not committed 2022-10-24 20:51:27 +08:00
93a1074b0c patch 4.0 2022-10-24 17:57:12 +08:00
4ad6e00ec3 fix: json type object support empty string key 2022-10-21 03:32:23 +00:00
82519cc587 Bugfix: fix json to float type cast bug 2022-10-14 12:32:37 +00:00
6bee868aab [CP] Init allocator_ in ObTmpTenantFIleStoreHandle constructor. 2022-10-14 12:32:07 +00:00
50933732b9 [CP] [CP] [CP] [CP] fix link hashmap core 2022-10-14 12:11:31 +00:00
392f40cc0b compile unittest failed on centos8 2022-10-14 12:10:59 +00:00
99777b4bc9 OB-FIX UP#001: 修复Binary类型的数据校验字符集的问题 (#1086)
Description:
============

对于Binary类型来说,所有数据的存储看作二进制,是不需要校验字符集的。

但是OB在处理Binary类型的数据操作时,会校验字符集,举个例子,如果你在utf8mb4的表里,往binary写入GBK编码的"你"字,是会报错的。只能以 insert into t values(X'C4E3')方法插入

这对业务从mysql迁移到OB是很痛苦的事情。

Analysis:
=========

OB的binary类型底层实现和varchar相同,只在DDL阶段会区分binary类型。

出错的原因是在SQL解析阶段(transform_tree)将binary的字段按varchar处理进行字符集编码检查。这是因为在词法语法解析时数据库无从得知当前的字符串是否为binary(目前SQL解析阶段还获取不到实际表结构)

Fix:
========
修复方法:

个人觉得词法语法解析阶段进行字符集检查完全没有必要,后续物理执行计划算子打开时,OB也会对字符集编码进行处理。

因此,建议删除resolve_const函数中的check_well_formed_str

目前来看,这个函数只用来处理SQL解析后的parseNode节点,对后续的SQL逻辑没有侵入。

-------------

wenghaixing@unionpay.com
2022-10-13 10:47:56 +08:00
91a49c7bc7 fix ObNumber desc_ to adjust digits' len (#1078)
As ObNumber.len_ should be same with digits' len, change desc_ of ObNumber constructor from 3 to 1
2022-10-12 15:45:13 +08:00
8f92893649 support invalid character write 2022-10-12 06:32:20 +00:00
43bc5912de fix: delete unnecessary folders in rpm packages 2022-10-12 03:36:56 +00:00
9f0d083b6c [CP] fix hash right semi join use nestloop leads result wrong 2022-10-12 03:36:27 +00:00
fefa90bb5d [CP] [FIX] Participants serialize size may calculate twice when retry prepare request 2022-10-12 03:03:17 +00:00
ba60d37162 fix typos error 2022-10-09 13:02:39 +00:00
e3e9919cb0 fix test_row_reader unittest 2022-10-09 13:02:07 +00:00
dd31e53a72 Fix:OceanBase can not use 'PS' as table alias #888 (#1067) 2022-10-04 13:13:40 +08:00
b7a21abbc2 fixed issue #889 (#890) 2022-10-04 13:13:07 +08:00
afd23c6b58 delete "Ant Group" (#1073)
* Update README.md

* Update README.md

* delete "by Ant Group"

Co-authored-by: LIN <wangzelin19961202@gmail.com>
2022-10-04 13:11:44 +08:00
fbdf9545e0 BUGFIX:Abnormal change of json integer value. 2022-10-03 21:02:54 +00:00
39e1f2e9b0 [CP] obd.sh prepare accept port 2022-10-03 21:02:22 +00:00
9432dd835e BUGFIX: update the same value, row affect is not zero. reserved_random assignment in JsonBinHeader. 2022-10-03 20:33:22 +00:00
36f843f3f1 [CP] fix core caused by incorrect predicate move around 2022-10-03 20:32:51 +00:00
e2fa173dd6 [CP] [3_2_3] persist has_trans_state_log_ field in tx_table 2022-10-03 20:32:19 +00:00
493b2fb2e2 [CP] Check ret code for ObSqlBitSet::add_member() 2022-10-03 20:03:27 +00:00
7d285d45d4 fix low version can't use virtual table schema memory and schema slot 2022-10-03 20:02:57 +00:00
d4c437559c Fix:OceanBase can not use 'PS' as table alias #888 2022-10-03 20:02:25 +00:00
c91b8fd84a delete Ant Group 2022-10-03 19:33:10 +00:00
c0c7934e8e Fix incorrect type usage 2022-10-03 19:32:39 +00:00
0dabb16dec [CP] set ArcClogTask count upper limit 2022-10-03 15:02:15 +00:00
e5081695e7 [CP] fix losing slog problem 2022-10-03 14:32:22 +00:00
053d54bc59 [CP] Fix string to number access out of bound core 2022-09-21 13:02:36 +00:00
ef9d44a2e4 fiix annotation error (#1072) 2022-09-21 20:32:26 +08:00
d9494719f4 [CP] Fix some schema & ddl problems 2022-09-20 11:33:14 +00:00
625713e692 fix float or double value directly tested for equality #1041 2022-09-20 10:33:05 +00:00
630e4032d8 fix float or double value directly tested for equality #1041 (#1066)
* fix float or double value directly tested for equality

* fix problem
2022-09-20 18:32:38 +08:00
3f8dc4e2a9 fix #1074 Slack and DingTalk links in README.md (#1077)
* fix oceanbase slack url
* fix wechat and dingtalk qrcode
2022-09-19 18:32:16 +08:00
9d8f2db509 fix code can never be reached isse1042 (#1070) 2022-09-19 18:02:30 +08:00
1a795176ad fix unstable case version.version 2022-09-19 08:33:59 +00:00
8d44e64648 add virtual table for schema memory and slot 2022-09-19 08:33:28 +00:00
85ed8b05ee [CP][BUGFIX]fix json aggr with bit and year type 2022-09-19 08:32:58 +00:00
4507903009 [CP] [PHYSICAL RESTORE] Remove dependence of schema fallback 2022-09-19 08:03:00 +00:00
fbabe9d0f1 [CP] [RECYCLE_SCHEMA_HISTORY] Support recycling object privilege history 2022-09-19 08:02:30 +00:00
46a5748aba [CP] Fix ObBlockAlloc double free. 2022-09-16 04:32:29 +00:00
e3f31ef1ce [CP] [bugifx] fix json binary read memory out of bound. 2022-09-16 04:02:30 +00:00
3daae395f2 fix WhiteScan bug 2022-09-13 09:34:26 +00:00
aae19e1f3c [CP] [CP] Fix the core caused by accessing cur phy plan 2022-09-13 09:33:55 +00:00
4e8d8231d3 bugfix: 2022-09-12 03:02:22 +00:00