[fix] remove some internal urls and emails
This commit is contained in:
@ -550,7 +550,7 @@ desc t1;
|
||||
+----------------------------------+--------------+------+-----+---------+-------+
|
||||
drop table t1;
|
||||
|
||||
## bugfix#https://work.aone.alibaba-inc.com/issue/36895309
|
||||
## bugfix#
|
||||
drop table if exists T_36895309;
|
||||
CREATE TABLE T_36895309(A_0 INT,A_1 INT,A_2 VARCHAR(20),A_3 FLOAT,A_4 DATE);
|
||||
INSERT INTO T_36895309 VALUES(1,1,'A',1.23,'1999-09-09'),(2,-1,'nb',3.21,'1111-11-11'),(3,0,'#',6666.6666,'11-11-11'),(4,NULL,NULL,NULL,NULL);
|
||||
|
||||
@ -47,7 +47,7 @@ select ceil(null);
|
||||
select ceil("13547370213547370213547370213547370201354737021354737021354737021354737021354737021354737021354737021354737021354737021354737021354737021354737021354737020.0000135473702135473702135473702135473702135473702135473702135473702135473702013547370213547370201354737021354737021354737021354737021354737021354737021354737021.0000135473702135473702135473702135473702135473702111111111111111111");
|
||||
select ceil("13547370213547370213547370213547370201354737021354737021354737021354737021354737021354737021354737021354737021354737021354737021354737021354737021354737020.0000135473702135473702135473702135473702135473702135473702135473702135473702013547370213547370201354737021354737021354737021354737021354737021354737021354737021.0000135473702135473702135473702135473702135473702catters billet chloroplast's'");
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/31536811
|
||||
##bugfix:
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
@ -69,7 +69,7 @@ SELECT CONVERT_TZ('2021-01-01 07:11:00', '+05:12','MET');
|
||||
SELECT CONVERT_TZ('2021-01-01 07:11:00', '+03:32','PRC');
|
||||
SELECT CONVERT_TZ('2021-01-01 07:11:00', '+11:32','PRC');
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/37089894
|
||||
##bugfix:
|
||||
SELECT CONVERT_TZ('2004-01-01 12:00:00','-13:00','+10:00');
|
||||
SELECT CONVERT_TZ('2004-01-01 12:00:00','-12:00','+14:00');
|
||||
SELECT CONVERT_TZ('2004-01-01 12:00:00','-13:00','ABC');
|
||||
@ -93,7 +93,7 @@ insert into t values(convert_tz('0000-01-01 01:00:00', '+00:00', '-02:00'));
|
||||
select * from t;
|
||||
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/37089982
|
||||
##bugfix:
|
||||
SELECT CONVERT_TZ(123456,'-12:00','+10:00');
|
||||
SELECT CONVERT_TZ('','-12:00','+10:00');
|
||||
SELECT CONVERT_TZ('aa','-12:00','+10:00');
|
||||
@ -102,14 +102,14 @@ SELECT CONVERT_TZ('1asd561ad','-12:00','+10:00');
|
||||
SELECT CONVERT_TZ('¥¥%……&*¥','-12:00','+10:00');
|
||||
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/37090102
|
||||
##bugfix:
|
||||
drop table t;
|
||||
create table t(c1 year);
|
||||
insert into t values('1901'),('2155'), ('0000'), ('0001');
|
||||
SELECT c1, CONVERT_TZ(c1,'+00:00','+00:00') from t;
|
||||
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/37090351
|
||||
##bugfix:
|
||||
drop table t;
|
||||
create table t(a1 int,a2 year,c1 timestamp,c2 timestamp);
|
||||
insert into t values(1,'1998','1998-12-12 12:12:12','2038-01-19 03:14:07');
|
||||
@ -127,7 +127,7 @@ select c3, convert_tz(c3, '+00:00', '+08:00') from t;
|
||||
drop table t;
|
||||
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/38186028
|
||||
##bugfix:
|
||||
SELECT CONVERT_TZ('2007-03-11 2:00:00','US/Eastern','US/Central') AS time1,
|
||||
CONVERT_TZ('2007-03-11 2:00:01','US/Eastern','US/Central') AS time2,
|
||||
CONVERT_TZ('2007-03-11 3:00:00','US/Eastern','US/Central') AS time3,
|
||||
|
||||
@ -160,7 +160,7 @@ desc t1;
|
||||
drop table t1;
|
||||
|
||||
|
||||
## bugfix#https://work.aone.alibaba-inc.com/issue/36895309
|
||||
## bugfix#
|
||||
--disable_warnings
|
||||
drop table if exists T_36895309;
|
||||
--enable_warnings
|
||||
|
||||
@ -401,7 +401,7 @@ select * from t1 where name regexp '(A[1])|(A[2])|(A[3])|(A[4])|(A[5])|(A[6])|(A
|
||||
select * from t1 where name regexp 'CC[13]1|a{21}[23][EO][123][Es][12]a{15}aa[34][EW]aaaaaaa[X]a';
|
||||
select * from t1 where name regexp 'a?b';
|
||||
|
||||
##bug:https://aone.alibaba-inc.com/req/34761589
|
||||
##bug:
|
||||
select * from t1 where name regexp 'a' "bc" '|de';
|
||||
select * from t1 where name regexp "a" '|' "b" '|' "c";
|
||||
select * from t1 where name regexp "a"'()'"b";
|
||||
@ -437,7 +437,7 @@ insert into t1 values('abcde_');
|
||||
select a as c1u from t1 where a rlike 'ab\_def';
|
||||
drop table t1;
|
||||
|
||||
##bug:https://work.aone.alibaba-inc.com/issue/25186566
|
||||
##bug:
|
||||
--disable_warnings
|
||||
drop table if exists t;
|
||||
--enable_warnings
|
||||
|
||||
@ -750,7 +750,7 @@ select /*+index(t1 gkey2)*/ count(*) from t1;
|
||||
+----------+
|
||||
drop table if exists t1;
|
||||
|
||||
###bug https://aone.alibaba-inc.com/issue/17548879?spm=a2o8d.corp_prod_MY_DESKTOP.0.0.549d41e3kz5z83
|
||||
###bug
|
||||
drop table if exists t1;
|
||||
create table t1(a int, b int, c int, d int, primary key(a,b)) partition by hash(a) partitions 3;
|
||||
create unique index idx on t1(c) partition by hash(c) partitions 5;
|
||||
@ -758,7 +758,7 @@ insert into t1 values (1,1,1,1),(2,2,2,2),(3,3,3,3);
|
||||
update t1 set d=d+1 where (a,b)>=(1,1) and c=1;
|
||||
drop table if exists t1;
|
||||
|
||||
####bug https://aone.alibaba-inc.com/issue/17661378?spm=a2o8d.corp_prod_MY_DESKTOP.0.0.549d41e3yIxDVL
|
||||
####bug
|
||||
drop table if exists obright_part;
|
||||
create table obright_part(grp_id bigint, row_id bigint, row_hex varchar(2048), trx_grp bigint,
|
||||
v1 varchar(65536), v1_check bigint, v2 varchar(65536), v2_check bigint, r1 int, r2 int, glike varchar(4096),
|
||||
|
||||
@ -117,7 +117,7 @@ select /*+index(t1 gkey1)*/ count(*) from t1;
|
||||
select /*+index(t1 gkey2)*/ count(*) from t1;
|
||||
drop table if exists t1;
|
||||
|
||||
###bug https://aone.alibaba-inc.com/issue/17548879?spm=a2o8d.corp_prod_MY_DESKTOP.0.0.549d41e3kz5z83
|
||||
###bug
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
@ -129,7 +129,7 @@ insert into t1 values (1,1,1,1),(2,2,2,2),(3,3,3,3);
|
||||
update t1 set d=d+1 where (a,b)>=(1,1) and c=1;
|
||||
drop table if exists t1;
|
||||
|
||||
####bug https://aone.alibaba-inc.com/issue/17661378?spm=a2o8d.corp_prod_MY_DESKTOP.0.0.549d41e3yIxDVL
|
||||
####bug
|
||||
--disable_warnings
|
||||
drop table if exists obright_part;
|
||||
--enable_warnings
|
||||
|
||||
@ -223,7 +223,7 @@ select c1,c2, group_concat(distinct c3 order by c3 desc) from t1 group by c1,c2
|
||||
|
||||
drop table t1, t2, t3, t4, t5;
|
||||
|
||||
## https://work.aone.alibaba-inc.com/issue/35012791
|
||||
##
|
||||
--disable_warnings
|
||||
drop table if exists t1, t2;
|
||||
drop table if exists `rpup_list_mcs_asoc_b`, `bidprcu_mcs_regcert_b`, `rpup_mcs_list_info_b`;
|
||||
|
||||
@ -248,7 +248,7 @@ select * from oceanbase.__all_virtual_table_mgr limit 1;
|
||||
select * from oceanbase.__all_virtual_tenant_memstore_allocator_info limit 1;
|
||||
select * from oceanbase.__all_virtual_tenant_memstore_info limit 1;
|
||||
#select * from oceanbase.__all_virtual_tenant_stat limit 1;
|
||||
#bug: https://work.aone.alibaba-inc.com/issue/27146409
|
||||
#bug:
|
||||
#select * from oceanbase.__all_virtual_trace_log limit 1;
|
||||
select * from oceanbase.__all_virtual_trans_stat limit 1;
|
||||
select * from oceanbase.__all_virtual_upgrade_inspection limit 1;
|
||||
|
||||
@ -630,7 +630,7 @@ select /*+ USE_HASH(xy_t1, xy_t2)*/ c1, c2, c1, c2 from xy_t1 where exists (sele
|
||||
# ************** end ********
|
||||
drop table xy_t1, xy_t2;
|
||||
|
||||
## bug:https://aone.alibaba-inc.com/issue/15280254?spm=a2o8d.corp_prod_issue_list.0.0.3f6630500agegh&stat=1.5.0&toPage=1&versionId=1043693
|
||||
## bug:
|
||||
drop table if exists xy_x_t, xy_y_t;
|
||||
create table xy_x_t(x1 int, x2 varchar(100));
|
||||
create table xy_y_t(y1 int, y2 varchar(100));
|
||||
|
||||
@ -77,7 +77,7 @@ select /*+ USE_HASH(xy_t1, xy_t2)*/ c1, c2, c1, c2 from xy_t1 where exists (sele
|
||||
drop table xy_t1, xy_t2;
|
||||
|
||||
|
||||
## bug:https://aone.alibaba-inc.com/issue/15280254?spm=a2o8d.corp_prod_issue_list.0.0.3f6630500agegh&stat=1.5.0&toPage=1&versionId=1043693
|
||||
## bug:
|
||||
--disable_warnings
|
||||
drop table if exists xy_x_t, xy_y_t;
|
||||
--enable_warnings
|
||||
@ -246,7 +246,7 @@ select /*+ no_rewrite*/ c2, c3 from xy_t2 where c2 in (select c2 from xy_t1 wher
|
||||
--echo //两边唯一有序, 改写为inner join
|
||||
select /*+ use_hash(xy_t1 xy_t2)*/ c1, c2 from xy_t2 where c1 in (select c1 from xy_t1 where xy_t1.c2 < xy_t2.c2) order by 1,2;
|
||||
select /*+ use_merge(xy_t1 xy_t2)*/ c1, c2 from xy_t2 where c1 in (select c1 from xy_t1 where xy_t1.c2 < xy_t2.c2) order by 1,2;
|
||||
# bug: https://work.aone.alibaba-inc.com/issue/27311279
|
||||
# bug:
|
||||
# select /*+ use_nl(xy_t1 xy_t2)*/ c1, c2 from xy_t2 where c1 in (select c1 from xy_t1 where xy_t1.c2 < xy_t2.c2) order by 1,2;
|
||||
select /*+ no_rewrite*/ c1, c2 from xy_t2 where c1 in (select c1 from xy_t1 where xy_t1.c2 < xy_t2.c2) order by 1,2;
|
||||
|
||||
|
||||
@ -183,7 +183,7 @@ select /*+use_merge(t1 t2)*/ t1.a, t2.a from t_r4_01_20 t1 inner join t_r4_01_20
|
||||
drop table if exists t_r4_01_20;
|
||||
--enable_warnings
|
||||
|
||||
## bug:https://aone.alibaba-inc.com/issue/9211556?spm=a2o8d.corp_prod_issue_list.0.0.25893050Y8aynZ&stat=1.5.38&toPage=1&versionId=1043693
|
||||
## bug:
|
||||
--disable_warnings
|
||||
drop table if exists t2, t7;
|
||||
--enable_warnings
|
||||
|
||||
@ -2875,7 +2875,7 @@ where t1.c1 = t2.c1 and
|
||||
| 40 | 2 |
|
||||
+----------+-----------------------+
|
||||
|
||||
### 9. https://work.aone.alibaba-inc.com/issue/22041461 leading hint与join order冲突修复 ###
|
||||
### 9.
|
||||
explain select /*+leading(t1 (t2 t3))*/* from t1,t3 where t1.a = t3.a and t1.b not in (select b from t2);
|
||||
Query Plan
|
||||
========================================================
|
||||
|
||||
@ -316,7 +316,7 @@ where t1.c1 = t2.c1 and
|
||||
t4.d1 = t5.d1 AND
|
||||
t1.c1 + t2.c1 = t4.d1 + t5.d2 ;
|
||||
|
||||
--echo ### 9. https://work.aone.alibaba-inc.com/issue/22041461 leading hint与join order冲突修复 ###
|
||||
--echo ### 9.
|
||||
explain select /*+leading(t1 (t2 t3))*/* from t1,t3 where t1.a = t3.a and t1.b not in (select b from t2); #失效
|
||||
explain select /*+leading(t2 t3 t1)*/* from t1,t3 where t1.a = t3.a and t1.b not in (select b from t2); #失效
|
||||
explain select /*+leading(t3 t1 t2)*/* from t1,t3 where t1.a = t3.a and t1.b not in (select b from t2); #生效
|
||||
|
||||
@ -399,7 +399,7 @@ explain select * from t1 where (t1.a, t1.b) in (select t2.a, t2.b from t2);
|
||||
explain select * from t1 where (t1.a, t1.b) in (select t2.a, t2.b from t2) and (t1.a, t1.b) in (select t3.a, t3.b from t3);
|
||||
explain select * from t1 where (t1.a, t1.b) in (select t2.a, t2.b from t2 where (t2.a, t2.b) in (select t3.a, t3.b from t3));
|
||||
|
||||
##bug https://aone.alibaba-inc.com/issue/14360360?from=ak&spm=a2o8d.projectdomain.0.0.549d2a00jnjFhQ
|
||||
##bug
|
||||
--disable_warnings
|
||||
drop table if exists t1, t2, t3;
|
||||
--enable_warnings
|
||||
@ -529,7 +529,7 @@ explain select * from (select 1 a except select a from t1 except select b from t
|
||||
explain select * from (select a from t1 except select a from t2 except select 1 a) as t3, t1 as t4 where t3.a = t4.a;
|
||||
explain select * from (select t2.a from t1, t2 where t1.a = t2.a except select a from t1 as t3) as t4, t2 as t5 where t4.a = t5.a;
|
||||
|
||||
###https://aone.alibaba-inc.com/project/81079/issue/15439492
|
||||
###
|
||||
explain select * from (select 1 c1, 1 c2) t2 inner join t1 on t2.c1 = t1.a;
|
||||
explain select * from (select 1 c1, 1 c2) t2 left join t1 on t2.c1 = t1.a;
|
||||
explain select * from (select 1 c1, 1 c2) t2 right join t1 on t2.c1 = t1.a;
|
||||
|
||||
@ -210,7 +210,7 @@ SELECT c1, c2 FROM (
|
||||
(SELECT c1, c2 FROM ts2 ORDER BY c2 DESC, c1 LIMIT 1)
|
||||
) AS res order by 1,2;
|
||||
|
||||
# bug: https://work.aone.alibaba-inc.com/issue/21382678
|
||||
# bug:
|
||||
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS T1, T2, T3;
|
||||
|
||||
@ -1958,7 +1958,7 @@ ERROR 02000: Unhandled user-defined not found condition
|
||||
drop function f;
|
||||
|
||||
### need has return in mysql function
|
||||
### https://work.aone.alibaba-inc.com/issue/34977232
|
||||
###
|
||||
DROP FUNCTION IF EXISTS `fun6`//
|
||||
|
||||
CREATE FUNCTION fun6 ( p1 INT) RETURNS VARCHAR(20)
|
||||
@ -1996,7 +1996,7 @@ SELECT @num//
|
||||
DROP FUNCTION IF EXISTS `fun6`//
|
||||
|
||||
### label dup
|
||||
### https://work.aone.alibaba-inc.com/issue/34954831
|
||||
###
|
||||
DROP TABLE IF EXISTS result1//
|
||||
CREATE TABLE result1(
|
||||
id INT,
|
||||
@ -2058,7 +2058,7 @@ DROP PROCEDURE IF EXISTS `pro_2`//
|
||||
DROP PROCEDURE IF EXISTS `pro_3`//
|
||||
|
||||
### ### varchar
|
||||
### ### https://work.aone.alibaba-inc.com/issue/35400448
|
||||
### ###
|
||||
### DROP TABLE IF EXISTS t2//
|
||||
### --error 1074
|
||||
### CREATE TABLE t2 (
|
||||
@ -2084,7 +2084,7 @@ DROP PROCEDURE IF EXISTS `pro_3`//
|
||||
### --error 1305
|
||||
### SELECT fun_l()//
|
||||
### char
|
||||
### https://work.aone.alibaba-inc.com/issue/35399998
|
||||
###
|
||||
DROP TABLE IF EXISTS t1//
|
||||
DROP TABLE IF EXISTS t2//
|
||||
CREATE TABLE t1 (
|
||||
@ -2093,7 +2093,7 @@ CREATE TABLE t1 (
|
||||
d1 CHAR(255)
|
||||
)//
|
||||
### --error 1074
|
||||
### TODO: https://work.aone.alibaba-inc.com/issue/35400448
|
||||
### TODO:
|
||||
### CREATE TABLE t2 (
|
||||
### id INT,
|
||||
### res1 VARCHAR(128),
|
||||
@ -2123,7 +2123,7 @@ SELECT * FROM t1//
|
||||
+------+------+------+
|
||||
|
||||
### varbinary
|
||||
### https://work.aone.alibaba-inc.com/issue/35614023
|
||||
###
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (
|
||||
d1 VARBINARY(65536)
|
||||
@ -2147,7 +2147,7 @@ SELECT fun_l()//
|
||||
ERROR 42000: FUNCTION fun_l does not exist
|
||||
|
||||
### number
|
||||
### https://work.aone.alibaba-inc.com/issue/35302277
|
||||
###
|
||||
DROP FUNCTION IF EXISTS `fun_l`//
|
||||
CREATE FUNCTION fun_l() RETURNS DEC(65,30)
|
||||
BEGIN
|
||||
@ -2170,7 +2170,7 @@ SELECT fun_2()//
|
||||
ERROR 42000: FUNCTION fun_2 does not exist
|
||||
|
||||
### datetime
|
||||
### https://work.aone.alibaba-inc.com/issue/35346065
|
||||
###
|
||||
DROP TABLE IF EXISTS t2//
|
||||
CREATE TABLE t2 (
|
||||
id INT,
|
||||
@ -2189,7 +2189,7 @@ SELECT fun_l()//
|
||||
ERROR 42000: FUNCTION fun_l does not exist
|
||||
|
||||
### datetime max value insert fail
|
||||
### https://work.aone.alibaba-inc.com/issue/35345945
|
||||
###
|
||||
DROP TABLE IF EXISTS t2//
|
||||
CREATE TABLE t2 (
|
||||
id INT,
|
||||
@ -2219,7 +2219,7 @@ SELECT * FROM t2//
|
||||
+------+----------------------------------------+---------------------+---------------------+----------------------------+
|
||||
|
||||
### int
|
||||
### https://work.aone.alibaba-inc.com/issue/35302003
|
||||
###
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (
|
||||
id INT,
|
||||
@ -2244,7 +2244,7 @@ SELECT * FROM t1//
|
||||
|
||||
### commit
|
||||
### rollback
|
||||
### https://work.aone.alibaba-inc.com/issue/34756672
|
||||
###
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1
|
||||
( a INT
|
||||
@ -2341,7 +2341,7 @@ END//
|
||||
ERROR HY000: Explicit or implicit commit is not allowed in stored function or trigger.
|
||||
|
||||
### BIT
|
||||
### https://work.aone.alibaba-inc.com/issue/35280082
|
||||
###
|
||||
DROP TABLE IF EXISTS t1;//
|
||||
DROP PROCEDURE IF EXISTS `pro_2`;//
|
||||
CREATE PROCEDURE pro_2()
|
||||
@ -2353,7 +2353,7 @@ END;
|
||||
ERROR 42000: Display width out of range for column 'CREATE TABLE t1 (id INT,a BIT(65))' (max = 64)
|
||||
|
||||
### load data
|
||||
### https://work.aone.alibaba-inc.com/issue/34756578
|
||||
###
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (a INT)//
|
||||
INSERT INTO t1 VALUES (1),(2),(3)//
|
||||
@ -2366,7 +2366,7 @@ END//
|
||||
ERROR HY000: 'LOAD DATA' is not allowed in stored procedure.
|
||||
|
||||
### lock
|
||||
### https://work.aone.alibaba-inc.com/issue/34756555
|
||||
###
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (a INT)//
|
||||
INSERT INTO t1 VALUES (1),(2),(3)//
|
||||
|
||||
@ -7001,7 +7001,7 @@ CALL p1(1);
|
||||
ERROR HY000: The target table t1 of the INSERT is not insertable-into
|
||||
CREATE TEMPORARY TABLE t1 (f1 INT);
|
||||
# t1 still refers to the view since it was inlined
|
||||
# https://work.aone.alibaba-inc.com/issue/32172786
|
||||
#
|
||||
CALL p1(2);
|
||||
DROP VIEW t1;
|
||||
# t1 now refers to the temporary table
|
||||
|
||||
@ -1722,7 +1722,7 @@ select f(1);
|
||||
drop function f;
|
||||
|
||||
### need has return in mysql function
|
||||
### https://work.aone.alibaba-inc.com/issue/34977232
|
||||
###
|
||||
|
||||
delimiter //;
|
||||
DROP FUNCTION IF EXISTS `fun6`//
|
||||
@ -1753,7 +1753,7 @@ DROP FUNCTION IF EXISTS `fun6`//
|
||||
delimiter ;//
|
||||
|
||||
### label dup
|
||||
### https://work.aone.alibaba-inc.com/issue/34954831
|
||||
###
|
||||
delimiter //;
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS result1//
|
||||
@ -1813,7 +1813,7 @@ delimiter ;//
|
||||
|
||||
delimiter //;
|
||||
### ### varchar
|
||||
### ### https://work.aone.alibaba-inc.com/issue/35400448
|
||||
### ###
|
||||
### DROP TABLE IF EXISTS t2//
|
||||
### --error 1074
|
||||
### CREATE TABLE t2 (
|
||||
@ -1840,7 +1840,7 @@ delimiter //;
|
||||
### SELECT fun_l()//
|
||||
|
||||
### char
|
||||
### https://work.aone.alibaba-inc.com/issue/35399998
|
||||
###
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1//
|
||||
DROP TABLE IF EXISTS t2//
|
||||
@ -1851,7 +1851,7 @@ delimiter //;
|
||||
d1 CHAR(255)
|
||||
)//
|
||||
### --error 1074
|
||||
### TODO: https://work.aone.alibaba-inc.com/issue/35400448
|
||||
### TODO:
|
||||
### CREATE TABLE t2 (
|
||||
### id INT,
|
||||
### res1 VARCHAR(128),
|
||||
@ -1879,7 +1879,7 @@ delimiter //;
|
||||
|
||||
|
||||
### varbinary
|
||||
### https://work.aone.alibaba-inc.com/issue/35614023
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (
|
||||
@ -1906,7 +1906,7 @@ SELECT fun_l()//
|
||||
|
||||
|
||||
### number
|
||||
### https://work.aone.alibaba-inc.com/issue/35302277
|
||||
###
|
||||
DROP FUNCTION IF EXISTS `fun_l`//
|
||||
--error 1426
|
||||
CREATE FUNCTION fun_l() RETURNS DEC(65,30)
|
||||
@ -1929,7 +1929,7 @@ END//
|
||||
SELECT fun_2()//
|
||||
|
||||
### datetime
|
||||
### https://work.aone.alibaba-inc.com/issue/35346065
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t2//
|
||||
--error 1426
|
||||
@ -1949,7 +1949,7 @@ END//
|
||||
SELECT fun_l()//
|
||||
|
||||
### datetime max value insert fail
|
||||
### https://work.aone.alibaba-inc.com/issue/35345945
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t2//
|
||||
CREATE TABLE t2 (
|
||||
@ -1973,7 +1973,7 @@ CALL pro_1()//
|
||||
SELECT * FROM t2//
|
||||
|
||||
### int
|
||||
### https://work.aone.alibaba-inc.com/issue/35302003
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (
|
||||
@ -1995,7 +1995,7 @@ SELECT * FROM t1//
|
||||
|
||||
### commit
|
||||
### rollback
|
||||
### https://work.aone.alibaba-inc.com/issue/34756672
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1
|
||||
@ -2062,7 +2062,7 @@ BEGIN
|
||||
END//
|
||||
|
||||
### BIT
|
||||
### https://work.aone.alibaba-inc.com/issue/35280082
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t1;//
|
||||
DROP PROCEDURE IF EXISTS `pro_2`;//
|
||||
@ -2075,7 +2075,7 @@ END;
|
||||
//
|
||||
|
||||
### load data
|
||||
### https://work.aone.alibaba-inc.com/issue/34756578
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (a INT)//
|
||||
@ -2089,7 +2089,7 @@ BEGIN
|
||||
END//
|
||||
|
||||
### lock
|
||||
### https://work.aone.alibaba-inc.com/issue/34756555
|
||||
###
|
||||
--disable_warnings ONCE
|
||||
DROP TABLE IF EXISTS t1//
|
||||
CREATE TABLE t1 (a INT)//
|
||||
|
||||
@ -6957,7 +6957,7 @@ SELECT SUM(f2), bug25373(f1) FROM t3 GROUP BY f1 WITH ROLLUP|
|
||||
DROP FUNCTION bug25373|
|
||||
DROP TABLE t3|
|
||||
|
||||
#todo: https://work.aone.alibaba-inc.com/task/24579977
|
||||
#todo:
|
||||
#这里等共享表达式提交之后再将这个case补上
|
||||
#SELECT SUM(f2), bug25373(f1) FROM t3 GROUP BY bug25373(f1) WITH ROLLUP
|
||||
|
||||
@ -8542,7 +8542,7 @@ CALL p1(1);
|
||||
CREATE TEMPORARY TABLE t1 (f1 INT);
|
||||
|
||||
--echo # t1 still refers to the view since it was inlined
|
||||
--echo # https://work.aone.alibaba-inc.com/issue/32172786
|
||||
--echo #
|
||||
#--error ER_NON_INSERTABLE_TABLE
|
||||
CALL p1(2);
|
||||
|
||||
|
||||
@ -52,10 +52,10 @@ create table t6 (pk int primary key, a int, b int, c int, d int, e int,
|
||||
index idx_b_a_c(b, a, c),
|
||||
index idx_b_e_d_c_a(b, e, d, c, a));
|
||||
|
||||
##https://aone.alibaba-inc.com/issue/11882687
|
||||
##
|
||||
create table t7(a int, b int, c int, d int, e int, f int, key k1(a,c,b), key k2(a,b,c,d,e));
|
||||
|
||||
##https://workitem.aone.alibaba-inc.com/project/81079/issue/12046883?akProjectId=81079&
|
||||
##
|
||||
create table t8(a int primary key, b int, c int, d int, e int, f int, index k1(b,c,e), index k2(c,d,e,f));
|
||||
|
||||
create table tmp (pk int primary key, c1 int, c2 int, c3 int, c4 int, c5 int,
|
||||
@ -63,7 +63,7 @@ create table tmp (pk int primary key, c1 int, c2 int, c3 int, c4 int, c5 int,
|
||||
index idx_c1_c2_c3(c1, c2 ,c3),
|
||||
index idx_c1_c2_c3_c4(c1, c2, c3, c4));
|
||||
|
||||
## https://aone.alibaba-inc.com/issue/14579791
|
||||
##
|
||||
create table t9 (c1 int primary key, c2 int, c3 int, c4 varchar(100), c5 int,
|
||||
index idx_c2_c5 (c2, c5),
|
||||
index idx_c2_c3_c5 (c2, c3, c5),
|
||||
@ -329,16 +329,16 @@ explain select /*+index(t6 idx_b_e_d_c_a)*/ b, d, a from t6 where e = 1 and c =
|
||||
|
||||
explain select c from t6 where b = 1 and a > 2 union select pk from tmp;
|
||||
|
||||
##https://aone.alibaba-inc.com/issue/11882687
|
||||
##
|
||||
explain select * from t7 where a >= 0 and a <= 5 and b = 1;
|
||||
|
||||
##https://workitem.aone.alibaba-inc.com/project/81079/issue/12046883?akProjectId=81079&
|
||||
##
|
||||
explain select * from t8 where e = 1 order by b;
|
||||
explain select * from t8 where e = 1 or f = 1 order by b;
|
||||
explain select * from t8 where d = 1 order by b;
|
||||
|
||||
|
||||
## https://aone.alibaba-inc.com/issue/14579791
|
||||
##
|
||||
|
||||
## part expr 决定路径
|
||||
explain select avg(c1) over (partition by c2) from t9 order by c1;
|
||||
|
||||
@ -23167,7 +23167,7 @@ select case when 'a' = 'a' then 'branch1' when 'b' then c1 else c2 end from t1;
|
||||
+-----------------------------------------------------------------+
|
||||
// 结果应该为2,且when expr上面都应该 有bool expr
|
||||
// TODO: 没有出现预期的warning
|
||||
// cast的bug: https://work.aone.alibaba-inc.com/issue/24092131
|
||||
// cast的bug:
|
||||
EXPLAIN select case when 'a' then 'str' when 'b' then c1 else c2 end from t1;
|
||||
Query Plan
|
||||
==========================================
|
||||
|
||||
@ -7574,7 +7574,7 @@ select nullif(z0_test0,'中文字符') from t1;
|
||||
+---------------------------------+
|
||||
drop table t1;
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/37798920
|
||||
##bugfix:
|
||||
create table t1 (pk double) PARTITION BY key (pk) partitions 1;
|
||||
insert into t1 values( NULLIF( 100.2345, 1 ));
|
||||
select * from t1;
|
||||
@ -7603,7 +7603,7 @@ from
|
||||
) as c3
|
||||
) as subq_0;
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/28830638
|
||||
##bugfix:
|
||||
create table t1 (pk int);
|
||||
insert into t1 values (1);
|
||||
select pk, ( NULLIF( 14152561829011783680, INSTR( TRIM( SUBSTRING( HEX( SUBSTRING( 'a',1, LEAST( 218, 20 ) ) ) , 1 , LEAST( 218, 20 ) ) ), 'oh' ) ) ) s , INSTR( TRIM( SUBSTRING( HEX( SUBSTRING( 'a',1, LEAST( 218, 20 ) ) ) , 1 , LEAST( 218, 20 ) ) ), 'oh' ) s2 from t1;
|
||||
@ -7656,7 +7656,7 @@ select * from t2;
|
||||
+------+------+------+------+
|
||||
drop table t1,t2;
|
||||
|
||||
## https://work.aone.alibaba-inc.com/issue/28471451
|
||||
##
|
||||
select collation(nullif('a', binary 'b'));
|
||||
+------------------------------------+
|
||||
| collation(nullif('a', binary 'b')) |
|
||||
|
||||
@ -19913,7 +19913,7 @@ select nvl(null, c22) from t1;
|
||||
|
||||
explain_protocol: 0
|
||||
set timestamp = 1600000000;
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/37931049
|
||||
##bugfix:
|
||||
select ifnull(null, utc_time(4));
|
||||
+---------------------------+
|
||||
| ifnull(null, utc_time(4)) |
|
||||
|
||||
@ -883,7 +883,7 @@ select sign( cast(a2 as char(1024)) ) , sign( cast(a4 as char(1024)) ) from t2 f
|
||||
| 1 | -1 |
|
||||
+--------------------------------+--------------------------------+
|
||||
|
||||
#https://work.aone.alibaba-inc.com/issue/32398792
|
||||
#
|
||||
select sign(1E-300) from dual;
|
||||
+--------------+
|
||||
| sign(1E-300) |
|
||||
|
||||
@ -97,7 +97,7 @@ select c1, substring_index("a,b,c,d", ",", c1), c2, substring_index("a,b,c,d", "
|
||||
| -9223372036854775807 | a | 9223372036854775807 | d | -9223372036854775807.00 | a | -9223372036854775807 | a |
|
||||
+----------------------+-------------------------------------+---------------------+-------------------------------------+-------------------------+-------------------------------------+----------------------+-------------------------------------+
|
||||
|
||||
//for https://work.aone.alibaba-inc.com/issue/30871483 https://work.aone.alibaba-inc.com/issue/30873161 null_标记覆盖问题
|
||||
//for
|
||||
drop table if exists t2, t3;
|
||||
create table t2(c1 varchar(20));
|
||||
create table t3(c1 varchar(20));
|
||||
|
||||
@ -27,7 +27,7 @@ insert into t1 values(1, 2,
|
||||
alter system flush plan cache global;
|
||||
explain_protocol: 2
|
||||
set @@ob_enable_plan_cache = 0;
|
||||
## bug: https://work.aone.alibaba-inc.com/issue/31722560
|
||||
## bug:
|
||||
## timestampadd(second, c14/c16, c19/c20)四种情况结果有误
|
||||
EXPLAIN select timestampadd(second, null, c1) from t1;
|
||||
Query Plan
|
||||
|
||||
@ -140,7 +140,7 @@ select concat('[', trim(both c2 from c1), ']') x from t1;
|
||||
|
||||
drop table if exists t1;
|
||||
drop view if exists v1;
|
||||
// bug: https://work.aone.alibaba-inc.com/issue/29127375
|
||||
// bug:
|
||||
create view v1 as select nullif(trim(repeat('abc', 1+1)), 'a');
|
||||
desc v1;
|
||||
+---------------------------------------+----------+------+-----+---------+-------+
|
||||
|
||||
@ -131,7 +131,7 @@ select truncate(c_null, -1) from t1;
|
||||
+----------------------+
|
||||
|
||||
## truncate(c20, c16) 结果与mysql不一致,cast(c16 as signed)的结果发生变化导致truncate的结果变化
|
||||
## cast的结果符合预期,tuncate的结果不符合预期。bug: https://work.aone.alibaba-inc.com/issue/31724351
|
||||
## cast的结果符合预期,tuncate的结果不符合预期。bug:
|
||||
EXPLAIN select c1, c1, truncate(c1, c1) from t1;
|
||||
Query Plan
|
||||
==========================================
|
||||
|
||||
@ -441,7 +441,7 @@ t2 CREATE TABLE `t2` (
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
|
||||
## bugfix#https://work.aone.alibaba-inc.com/issue/37018706
|
||||
## bugfix#
|
||||
SELECT CASE 'A' WHEN 0 THEN 0 ELSE 1 END VAL;
|
||||
+-----+
|
||||
| VAL |
|
||||
|
||||
@ -166,7 +166,7 @@ select * from t2;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
|
||||
bug: https://work.aone.alibaba-inc.com/issue/29047026
|
||||
bug:
|
||||
drop table if exists t2;
|
||||
create table t2 (c1 int primary key, c2 int) partition by hash(c1) partitions 3;
|
||||
insert into t2 select -127,30 from dual;
|
||||
|
||||
@ -92,7 +92,7 @@ while ($cnt <= 29)
|
||||
inc $cnt;
|
||||
}
|
||||
|
||||
#verify bugfix of https://work.aone.alibaba-inc.com/issue/29519901
|
||||
#verify bugfix of
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
@ -168,7 +168,7 @@ while ($left <= $cnt)
|
||||
select case when 'a' = 'a' then 'branch1' when 'b' then c1 else c2 end from t1;
|
||||
--echo // 结果应该为2,且when expr上面都应该 有bool expr
|
||||
--echo // TODO: 没有出现预期的warning
|
||||
--echo // cast的bug: https://work.aone.alibaba-inc.com/issue/24092131
|
||||
--echo // cast的bug:
|
||||
select case when 'a' then 'str' when 'b' then c1 else c2 end from t1;
|
||||
--echo // 结果应该为'branch2',且if表达式会被转为case表达式,但是不应该有bool expr,因为判断本身就带有布尔语义
|
||||
select if ('a' = 'b', c1, 'branch2') from t1;
|
||||
|
||||
@ -29,7 +29,7 @@ select char_length(c2) from t1;
|
||||
select char_length(c3) from t1;
|
||||
select char_length(c4) from t1;
|
||||
select char_length(c5) from t1;
|
||||
# bug here: https://work.aone.alibaba-inc.com/issue/26106226
|
||||
# bug here:
|
||||
# select char_length(c6) from t1;
|
||||
|
||||
|
||||
|
||||
@ -162,7 +162,7 @@ drop table t1;
|
||||
|
||||
|
||||
|
||||
--echo ##bugfix: https://work.aone.alibaba-inc.com/issue/37798920
|
||||
--echo ##bugfix:
|
||||
create table t1 (pk double) PARTITION BY key (pk) partitions 1;
|
||||
insert into t1 values( NULLIF( 100.2345, 1 ));
|
||||
select * from t1;
|
||||
@ -189,7 +189,7 @@ from
|
||||
--enable_result_log
|
||||
|
||||
|
||||
##bugfix: https://work.aone.alibaba-inc.com/issue/28830638
|
||||
##bugfix:
|
||||
create table t1 (pk int);
|
||||
insert into t1 values (1);
|
||||
select pk, ( NULLIF( 14152561829011783680, INSTR( TRIM( SUBSTRING( HEX( SUBSTRING( 'a',1, LEAST( 218, 20 ) ) ) , 1 , LEAST( 218, 20 ) ) ), 'oh' ) ) ) s , INSTR( TRIM( SUBSTRING( HEX( SUBSTRING( 'a',1, LEAST( 218, 20 ) ) ) , 1 , LEAST( 218, 20 ) ) ), 'oh' ) s2 from t1;
|
||||
@ -210,7 +210,7 @@ desc t2;
|
||||
select * from t2;
|
||||
drop table t1,t2;
|
||||
|
||||
## https://work.aone.alibaba-inc.com/issue/28471451
|
||||
##
|
||||
select collation(nullif('a', binary 'b'));
|
||||
|
||||
## test nullif with enumset parameter.
|
||||
|
||||
@ -73,7 +73,7 @@ while ($left <= $cnt)
|
||||
--sleep 2
|
||||
--explain_protocol 0
|
||||
set timestamp = 1600000000;
|
||||
--echo ##bugfix: https://work.aone.alibaba-inc.com/issue/37931049
|
||||
--echo ##bugfix:
|
||||
select ifnull(null, utc_time(4));
|
||||
|
||||
--disable_warnings
|
||||
|
||||
@ -145,7 +145,7 @@ select sign( cast(a2 as char(1024)) ) , sign( cast(a4 as char(1024)) ) from t2 f
|
||||
|
||||
--sleep 2
|
||||
|
||||
--echo #https://work.aone.alibaba-inc.com/issue/32398792
|
||||
--echo #
|
||||
select sign(1E-300) from dual;
|
||||
select sign(1E-400) from dual;
|
||||
--source mysql_test/include/explain_end.inc
|
||||
|
||||
@ -46,7 +46,7 @@ select substring_index(1.414, 1, 2);
|
||||
--disable_warnings
|
||||
select c1, substring_index("a,b,c,d", ",", c1), c2, substring_index("a,b,c,d", ",", c2), c3, substring_index("a,b,c,d", ",", c3), c4, substring_index("a,b,c,d", ",", c4) from t1;
|
||||
|
||||
--echo //for https://work.aone.alibaba-inc.com/issue/30871483 https://work.aone.alibaba-inc.com/issue/30873161 null_标记覆盖问题
|
||||
--echo //for
|
||||
drop table if exists t2, t3;
|
||||
create table t2(c1 varchar(20));
|
||||
create table t3(c1 varchar(20));
|
||||
|
||||
@ -37,7 +37,7 @@ alter system flush plan cache global;
|
||||
set @@ob_enable_plan_cache = 0;
|
||||
let $cnt=22;
|
||||
let $left=1;
|
||||
## bug: https://work.aone.alibaba-inc.com/issue/31722560
|
||||
## bug:
|
||||
## timestampadd(second, c14/c16, c19/c20)四种情况结果有误
|
||||
while ($left <= $cnt)
|
||||
{
|
||||
|
||||
@ -51,7 +51,7 @@ select concat('[', trim(both c2 from c1), ']') x from t1;
|
||||
drop table if exists t1;
|
||||
drop view if exists v1;
|
||||
--enable_warnings
|
||||
--echo // bug: https://work.aone.alibaba-inc.com/issue/29127375
|
||||
--echo // bug:
|
||||
create view v1 as select nullif(trim(repeat('abc', 1+1)), 'a');
|
||||
desc v1;
|
||||
select * from v1;
|
||||
|
||||
@ -66,7 +66,7 @@ select truncate(1.11, c_null) from t1;
|
||||
select truncate(c_null, -1) from t1;
|
||||
|
||||
## truncate(c20, c16) 结果与mysql不一致,cast(c16 as signed)的结果发生变化导致truncate的结果变化
|
||||
## cast的结果符合预期,tuncate的结果不符合预期。bug: https://work.aone.alibaba-inc.com/issue/31724351
|
||||
## cast的结果符合预期,tuncate的结果不符合预期。bug:
|
||||
let $cnt=22;
|
||||
let $left=1;
|
||||
while ($left <= $cnt)
|
||||
|
||||
@ -103,7 +103,7 @@ show create table t2;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
|
||||
## bugfix#https://work.aone.alibaba-inc.com/issue/37018706
|
||||
## bugfix#
|
||||
SELECT CASE 'A' WHEN 0 THEN 0 ELSE 1 END VAL;
|
||||
|
||||
--sleep 2
|
||||
|
||||
@ -273,7 +273,7 @@ insert into t2 (c1, c2, c3, c4) values (29, 12, null, 'a');
|
||||
|
||||
--explain_protocol 3
|
||||
select c1,c1 in (select c1 from t2 where t2.c1 >= t1.c1) as x from t1;
|
||||
#https://work.aone.alibaba-inc.com/issue/47201028
|
||||
#
|
||||
select c1, (select c1 from t2 where t2.c1 >= t1.c1 and t2.c2 > t1.c3 limit 1) as x from t1;
|
||||
select c1,c1 + (select c1 from t2 where t2.c1 = t1.c1) as x from t1;
|
||||
select c1,c1 in (select c1 from t2 where t2.c1 >= t1.c1) and c1 in (select c2 from t2 where t2.c1 >= t1.c1) as x from t1;
|
||||
|
||||
@ -99,7 +99,7 @@ select * from t2;
|
||||
drop table t1;
|
||||
drop table t2;
|
||||
|
||||
--echo bug: https://work.aone.alibaba-inc.com/issue/29047026
|
||||
--echo bug:
|
||||
--disable_warnings
|
||||
drop table if exists t2;
|
||||
--enable_warnings
|
||||
|
||||
@ -3674,7 +3674,7 @@ select /*+no_rewrite, use_merge(t1 t2), leading(t1 t2 t3)*/ t1.hldgddm, t2.pzjzq
|
||||
| A100013208 | A100013208 | 20605 | NULL | NULL |
|
||||
+------------+------------+-----------+---------+---------+
|
||||
|
||||
## bug: https://work.aone.alibaba-inc.com/issue/32926523
|
||||
## bug:
|
||||
drop table if exists t1, t2;
|
||||
create table t1 (c1 int, c2 int, primary key(c1));
|
||||
create table t2 (c1 int, c2 int, primary key(c2));
|
||||
|
||||
@ -403,7 +403,7 @@ insert/**/ into pujydypf values ('ok', '20605', 'yes', 'testcase');
|
||||
select /*+use_merge(t1 t2), leading(t1 t2 t3)*/ t1.hldgddm, t2.pzjzqzh, t2.pzjzdjydy, t3.pjyjydy, t3.pjyscdm from cghldinf t1 left join puzdjypf t2 on t2.pzjzqzh = t1.hldgddm left join pujydypf t3 on t2.pzjzdjydy = t3.pjyjydy and t3.pjyscdm = '01' where hldgddm = 'A100013208';
|
||||
select /*+no_rewrite, use_merge(t1 t2), leading(t1 t2 t3)*/ t1.hldgddm, t2.pzjzqzh, t2.pzjzdjydy, t3.pjyjydy, t3.pjyscdm from cghldinf t1 left join puzdjypf t2 on t2.pzjzqzh = t1.hldgddm left join pujydypf t3 on t2.pzjzdjydy = t3.pjyjydy and t3.pjyscdm = '01' where hldgddm = 'A100013208';
|
||||
|
||||
## bug: https://work.aone.alibaba-inc.com/issue/32926523
|
||||
## bug:
|
||||
--disable_warnings
|
||||
drop table if exists t1, t2;
|
||||
--enable_warnings
|
||||
@ -432,7 +432,7 @@ drop table if exists tt1, tt2, tt3;
|
||||
drop table if exists cghldinf, puzdjypf, pujydypf;
|
||||
--enable_warnings
|
||||
|
||||
#Bugfix:https://work.aone.alibaba-inc.com/issue/47217185
|
||||
#Bugfix:
|
||||
--disable_warnings
|
||||
drop table if exists v0;
|
||||
--enable_warnings
|
||||
@ -442,7 +442,7 @@ explain select * from v0 where v1 in (select -127 minus select _BINARY 'x');
|
||||
drop table if exists v0;
|
||||
|
||||
|
||||
#Bugfix:https://work.aone.alibaba-inc.com/issue/47186369
|
||||
#Bugfix:
|
||||
--explain_protocol 0
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
|
||||
@ -6,7 +6,7 @@ set @@session.explicit_defaults_for_timestamp=off;
|
||||
##tags: ddl, datatype
|
||||
# description:
|
||||
#
|
||||
#bug:http://k3.alibaba-inc.com/issue/6218603?stat=1.5.10&toPage=1&projectId=50518
|
||||
#bug:
|
||||
--disable_warnings
|
||||
drop table if exists stu;
|
||||
--enable_warnings
|
||||
|
||||
@ -39,7 +39,7 @@ select str_val, dt_val, ts_val, d_val, t_val from dt order by dt_val, ts_val, d_
|
||||
set time_zone='-8:00';
|
||||
select str_val, ts_val from dt order by ts_val, str_val;
|
||||
set time_zone='+8:00';
|
||||
# date_format bug:https://work.aone.alibaba-inc.com/issue/30862145
|
||||
# date_format bug:
|
||||
select str_val, date_format(dt_val, '%Y-%b-%D %T %a'), date_format(ts_val, '%Y-%b-%D %T %a') from dt order by dt_val, ts_val, str_val;
|
||||
|
||||
drop table dt;
|
||||
|
||||
@ -104,7 +104,7 @@ select * from
|
||||
where rn = 1;
|
||||
|
||||
# mysql 8.0 window_function bug:
|
||||
# aone: https://aone.alibaba-inc.com/project/81079/issue/15336343
|
||||
# aone:
|
||||
# select c_birth_month, c_birth_year, c_customer_sk, c_first_name,
|
||||
#first_value(c_first_name) over (partition by c_birth_month order by c_birth_year, c_customer_sk),
|
||||
# last_value(c_first_name) over (partition by c_birth_month order by c_birth_year, c_customer_sk) ,
|
||||
|
||||
Reference in New Issue
Block a user