Skip to content

ISSUES-16605 fix without returning affected rows when insert select query in MySQL handler#16715

Merged
tavplubix merged 6 commits intoClickHouse:masterfrom
zhang2014:fix/ISSUES-16605
Nov 23, 2020
Merged

ISSUES-16605 fix without returning affected rows when insert select query in MySQL handler#16715
tavplubix merged 6 commits intoClickHouse:masterfrom
zhang2014:fix/ISSUES-16605

Conversation

@zhang2014
Copy link
Copy Markdown
Contributor

@zhang2014 zhang2014 commented Nov 5, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Return number of affected rows for INSERT queries via MySQL protocol. Previously ClickHouse used to always return 0, it's fixed.
Fixes #16605

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Nov 5, 2020
@tavplubix tavplubix self-assigned this Nov 20, 2020
@tavplubix
Copy link
Copy Markdown
Member

Integration tests (thread) - failure is related, data race on affected_rows: https://gist.github.com/tavplubix/638666056d7a067b8938eb4cccb6a128
Seems like we can just make it atomic.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is it possible that connection_context already have some progress callback? Maybe do something similar to this?

@zhang2014
Copy link
Copy Markdown
Contributor Author

zhang2014 commented Nov 23, 2020

Performance — 5 errors, 5 too long, 2 faster, 72 unstable - unrelated

The test 'materialized_view_parallel_insert' is too slow to run as a whole. Investigate whether the create and fill queries can be sped up
Some query of the test 'materialized_view_parallel_insert' is too slow to run. See the all queries report
The test 'parallel_insert' is too slow to run as a whole. Investigate whether the create and fill queries can be sped up
Some query of the test 'parallel_insert' is too slow to run. See the all queries report
The test 'array_index_low_cardinality_numbers' is too slow to run as a whole. Investigate whether the create and fill queries can be sped up

Integration tests (asan) — fail: 1, not started: 0, passed: 946, error: 0 - unrelated

test_odbc_interaction/test.py::test_postgres_odbc_hached_dictionary_with_schema

Integration tests (release) — fail: 2, not started: 0, passed: 945, error: 0 - unrelated

test_storage_s3/test.py::test_custom_auth_headers
test_odbc_interaction/test.py::test_postgres_odbc_hached_dictionary_with_schema

@tavplubix tavplubix merged commit 7af89cb into ClickHouse:master Nov 23, 2020
robot-clickhouse pushed a commit that referenced this pull request Nov 23, 2020
… rows when insert select query in MySQL handler
robot-clickhouse pushed a commit that referenced this pull request Nov 23, 2020
… rows when insert select query in MySQL handler
robot-clickhouse pushed a commit that referenced this pull request Nov 23, 2020
… rows when insert select query in MySQL handler
robot-clickhouse pushed a commit that referenced this pull request Nov 23, 2020
…rows when insert select query in MySQL handler
tavplubix added a commit that referenced this pull request Nov 24, 2020
Backport #16715 to 20.11: ISSUES-16605 fix without returning affected rows when insert select query in MySQL handler
tavplubix added a commit that referenced this pull request Nov 24, 2020
Backport #16715 to 20.10: ISSUES-16605 fix without returning affected rows when insert select query in MySQL handler
tavplubix added a commit that referenced this pull request Nov 24, 2020
Backport #16715 to 20.12: ISSUES-16605 fix without returning affected rows when insert select query in MySQL handler
tavplubix added a commit that referenced this pull request Nov 24, 2020
Backport #16715 to 20.9: ISSUES-16605 fix without returning affected rows when insert select query in MySQL handler
robot-clickhouse pushed a commit that referenced this pull request Feb 18, 2021
…rows when insert select query in MySQL handler
tavplubix added a commit that referenced this pull request Feb 19, 2021
Backport #16715 to 20.8: ISSUES-16605 fix without returning affected rows when insert select query in MySQL handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClickHouse doesn't return affected rows via MySQL protocol for INSERT queries after 20.5+

3 participants