-
Notifications
You must be signed in to change notification settings - Fork 7k
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
ClickHouse doesn't return affected rows via MySQL protocol for INSERT queries after 20.5+ #16605
Comments
CH simply does not know this. |
@den-crane |
Not sure Why it was working before.
|
@Slach Check this in 20.3 INSERT INTO default.t1(n) SELECT * FROM numbers(1000) where number%3 |
@den-crane
|
add steps to reproduce for python in https://gist.github.com/Slach/aa67440ce856a3a53f64f92eeddfbc1b @zhang2014 @BohuTANG could you help us resolve this issue? |
The problem does exist, but it's not the MySQLHandler/MySQL problem. ClickHouse/src/Processors/Formats/Impl/MySQLOutputFormat.cpp Lines 77 to 82 in 64bd63c
Instead it send directly here: ClickHouse/src/Server/MySQLHandler.cpp Lines 338 to 339 in 64bd63c
I am not sure why, maybe @alexey-milovidov could give some hints. |
@zhang2014 could you look to #16605 (comment) |
Describe the bug
ClickHouse doesn't return affected rows via MySQL protocol for INSERT queries after 20.5+
How to reproduce
i create clear docker-compose environment for reproduce behavior MySQL + clickhouse + php + python
https://gist.github.com/Slach/aa67440ce856a3a53f64f92eeddfbc1b
Queries to run that lead to unexpected result
Expected behavior
MySQL protocol shall return affected rows field for INSERT queries (it works successful in 20.3 and 20.4)
Actual behavior
The text was updated successfully, but these errors were encountered: