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