Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(planner): support ExpressionScan and CacheScan #15561

Conversation

Dousir9
Copy link
Member

@Dousir9 Dousir9 commented May 17, 2024

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

Summary

This PR supports ExpressionScan, CacheScan, and CacheSource::HashJoinBuild, The CacheScan can read data from CacheSource::HashJoinBuild to implement lateral semantics.
For a SQL

select t1.a, v1.c1, v1.c2 from t1 
inner join lateral (values('t1_b', t1.b), ('t1_c', t1.c)) as v1 ("c1", "c2") on t1.a = v1.c2
inner join lateral (values('t1_b', t1.b), ('t1_c', v1.c1)) as v2 ("c1", "c2") on t1.a = v2.c2;

its execution is:
截屏2024-05-20 22 25 56

Tests

  • Unit Test
  • Logic Test
  • Benchmark Test
  • No Test - Explain why

Type of change

  • Bug Fix (non-breaking change which fixes an issue)
  • New Feature (non-breaking change which adds functionality)
  • Breaking Change (fix or feature that could cause existing functionality not to work as expected)
  • Documentation Update
  • Refactoring
  • Performance Improvement
  • Other (please describe):

This change is Reviewable

@github-actions github-actions bot added the pr-feature this PR introduces a new feature to the codebase label May 17, 2024
@Dousir9 Dousir9 requested a review from xudong963 May 20, 2024 14:36
@Dousir9 Dousir9 marked this pull request as ready for review May 20, 2024 14:36
@Dousir9 Dousir9 marked this pull request as draft May 20, 2024 14:43
@Dousir9 Dousir9 marked this pull request as ready for review May 21, 2024 08:38
@xudong963 xudong963 requested a review from b41sh May 23, 2024 10:58
@Dousir9 Dousir9 added this pull request to the merge queue May 25, 2024
@BohuTANG BohuTANG removed this pull request from the merge queue due to a manual request May 25, 2024
@BohuTANG BohuTANG merged commit 1152e97 into datafuselabs:main May 25, 2024
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-feature this PR introduces a new feature to the codebase
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: support expression table scan
3 participants