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

Enforce sort order of columns as specified in INSERT #790

Merged
merged 4 commits into from
Oct 20, 2022
Merged

Conversation

gingerwizard
Copy link
Collaborator

Closes #741

This ensures only those columns specified by the user in an INSERT are in the batch.

For native, this means simply sorting the columns according to the requested order - as ClickHouse returns them in table order.

For HTTP, we have to filter the columns as we use DESCRIBE in this case to get the table columns.

We cover the case where no columns are specified - we assume All which means no breaking change.

@gingerwizard gingerwizard changed the title Enforce sort order of native Enforce sort order of columns as specified in INSERT Oct 19, 2022
@gingerwizard gingerwizard self-assigned this Oct 19, 2022
@gingerwizard gingerwizard merged commit 99cf774 into main Oct 20, 2022
@gingerwizard gingerwizard deleted the issue_741 branch October 20, 2022 19:33
@wizzard0
Copy link
Contributor

wizzard0 commented Dec 13, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

http stdBatch AppendRow assumes table columns and insert field order is the same
2 participants