From b96b4358d4c88a06a5f4c15f10da64c97e3a6dae Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Sun, 27 Mar 2022 17:36:53 +0800 Subject: [PATCH] [TD-14342] fix error if nchar condition in subquery like "select * from (select * from table) where nchar = '0'" --- tests/pytest/query/nestedQuery/nestedQuery_datacheck.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/pytest/query/nestedQuery/nestedQuery_datacheck.py b/tests/pytest/query/nestedQuery/nestedQuery_datacheck.py index 311133b8c8..20452cd886 100755 --- a/tests/pytest/query/nestedQuery/nestedQuery_datacheck.py +++ b/tests/pytest/query/nestedQuery/nestedQuery_datacheck.py @@ -619,8 +619,11 @@ class TDTestCase: sql += "%s )" % random.choice(t_join_where) datacheck = self.stable_join_checkall_0(sql) tdSql.checkRows(100) - datacheck = self.stable_join_checkall_100(sql) - + datacheck = self.stable_join_checkall_100(sql) + + # for TD-14342 + sql = "select * from ( select * from stable_1 ) where t_nchar like 'nchar%' or t_nchar = '0'" + datacheck = self.stable1_checkall_0(sql) endTime = time.time() print("total time %ds" % (endTime - startTime)) -- GitLab