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

[GLUTEN-5061][CH] Fix assert error when writing mergetree data with select * from table limit n #5068

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

zzcclp
Copy link
Contributor

@zzcclp zzcclp commented Mar 21, 2024

What changes were proposed in this pull request?

The below writing mergetree data sql will throw the assert error:

insert into table lineitem_mergetree
select * from lineitem **limit 10**

RC:
with limit n, there is a wrong wrapper logical with the FakeRowAdaptor for the query plan.

Close #5061.

(Fixes: #5061)

How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)

(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

…elect * from table limit n

The below writing mergetree data sql will throw the assert error:
```
insert into table lineitem_mergetree
select * from lineitem **limit 10**
```

RC:
with limit n, there is a wrong wrapper logical with the FakeRowAdaptor for the query plan.

Close apache#5061.
@zzcclp zzcclp requested a review from binmahone March 21, 2024 05:20
Copy link

#5061

Copy link

Run Gluten Clickhouse CI

Copy link
Contributor

@binmahone binmahone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@binmahone binmahone merged commit 9801599 into apache:main Mar 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CH] Fix assert error when writing mergetree data with select * from table limit n.
2 participants