We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1decc16 commit 71f46c0Copy full SHA for 71f46c0
1 file changed
beam_mysql/connector/client.py
@@ -120,7 +120,7 @@ def rough_counts_estimator(self, query: str) -> int:
120
# Query of the argument should be "DERIVED" because it is sub query of explain select.
121
# Count query should be "PRIMARY" or "SIMPLE" because it is not sub query.
122
if record["select_type"] in ("PRIMARY", "SIMPLE"):
123
- total_number = record["rows"]
+ total_number = int(record["rows"])
124
except MySQLConnectorError as e:
125
raise MySQLClientError(f"Failed to execute query: {count_query}, Raise exception: {e}")
126
0 commit comments