databendlabs / databend

๐——๐—ฎ๐˜๐—ฎ, ๐—”๐—ป๐—ฎ๐—น๐˜†๐˜๐—ถ๐—ฐ๐˜€ & ๐—”๐—œ. Modern alternative to Snowflake. Cost-effective and simple for massive-scale analytics. https://databend.com
https://docs.databend.com
Other
7.85k stars 750 forks source link

chore(query): introduce EmptyResultScan plan #16411

Closed sundy-li closed 2 months ago

sundy-li commented 2 months ago

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

EmptyResultScan is a subtype of ConstantTableScan if rows is zero.

Example:

statement ok
create table t2(a int, b int);

query T
explain select * from t1 where a = 1 and a = 2;
----
EmptyResultScan

Add more test codes about udf server.

Tests

Type of change


This change isโ€‚Reviewable

github-actions[bot] commented 2 months ago

Docker Image for PR

note: this image tag is only available for internal use, please check the internal doc for more details.

github-actions[bot] commented 2 months ago

ClickBench Report

github-actions[bot] commented 2 months ago

Docker Image for PR

note: this image tag is only available for internal use, please check the internal doc for more details.

github-actions[bot] commented 2 months ago

ClickBench Report