@@ -50,25 +50,6 @@ LogicalProject(a=[$0], b=[$1], c=[$2], d=[$3])
5050 <![CDATA[
5151Calc(select=[a, b, c, d], where=[d IS NOT NULL])
5252+- TableSourceScan(table=[[default_catalog, default_database, MyTable, watermark=[c], watermarkEmitStrategy=[on-periodic], filter=[=(LOWER(d), _UTF-16LE'h':VARCHAR(2147483647) CHARACTER SET "UTF-16LE")]]], fields=[a, b, c, d])
53- ]]>
54- </Resource >
55- </TestCase >
56- <TestCase name =" testPartialFilterMatchWithWatermark" >
57- <Resource name =" sql" >
58- <![CDATA[ SELECT * FROM MyTable WHERE LOWER(d) = 'h' AND d IS NOT NULL]]>
59- </Resource >
60- <Resource name =" ast" >
61- <![CDATA[
62- LogicalProject(a=[$0], b=[$1], c=[$2], d=[$3])
63- +- LogicalFilter(condition=[AND(=(LOWER($3), _UTF-16LE'h'), IS NOT NULL($3))])
64- +- LogicalWatermarkAssigner(rowtime=[c], watermark=[$2])
65- +- LogicalTableScan(table=[[default_catalog, default_database, MyTable]])
66- ]]>
67- </Resource >
68- <Resource name =" optimized exec plan" >
69- <![CDATA[
70- Calc(select=[a, b, c, d], where=[d IS NOT NULL])
71- +- TableSourceScan(table=[[default_catalog, default_database, MyTable, watermark=[$2], filter=[equals(LOWER(d), 'h')]]], fields=[a, b, c, d])
7253]]>
7354 </Resource >
7455 </TestCase >
@@ -145,26 +126,6 @@ LogicalProject(a=[$0], b=[$1], c=[$2], d=[$3], f=[$4])
145126 <![CDATA[
146127Calc(select=[a, b, Reinterpret(c) AS c, func(c, a) AS d, f])
147128+- TableSourceScan(table=[[default_catalog, default_database, UdfTable, watermark=[func(func(func(c, a), a), a)], watermarkEmitStrategy=[on-periodic], filter=[=(UPPER(f), _UTF-16LE'welcome':VARCHAR(2147483647) CHARACTER SET "UTF-16LE")]]], fields=[a, b, c, f])
148- ]]>
149- </Resource >
150- </TestCase >
151- <TestCase name =" testFilterPushdownWithUdf" >
152- <Resource name =" sql" >
153- <![CDATA[ SELECT * FROM UdfTable WHERE UPPER(f) = 'welcome']]>
154- </Resource >
155- <Resource name =" ast" >
156- <![CDATA[
157- LogicalProject(a=[$0], b=[$1], c=[$2], d=[$3], f=[$4])
158- +- LogicalFilter(condition=[=(UPPER($4), _UTF-16LE'welcome')])
159- +- LogicalWatermarkAssigner(rowtime=[c], watermark=[func(func($3, $0), $0)])
160- +- LogicalProject(a=[$0], b=[$1], c=[$2], d=[func($2, $0)], f=[$3])
161- +- LogicalTableScan(table=[[default_catalog, default_database, UdfTable]])
162- ]]>
163- </Resource >
164- <Resource name =" optimized exec plan" >
165- <![CDATA[
166- Calc(select=[a, b, Reinterpret(c) AS c, func(c, a) AS d, f])
167- +- TableSourceScan(table=[[default_catalog, default_database, UdfTable, watermark=[func(func(func(c, a), a), a)], filter=[=(UPPER(f), _UTF-16LE'welcome':VARCHAR(2147483647) CHARACTER SET "UTF-16LE")]]], fields=[a, b, c, f])
168129]]>
169130 </Resource >
170131 </TestCase >
0 commit comments