Cloud-Architect-Emma opened a new pull request, #40190: URL: https://github.com/apache/superset/pull/40190
Fixes #39951 ## Problem ClickHouse (and some other backends) return numeric SUM() columns as strings. The existing `infer_objects()` call does not convert these to numeric types, causing `pandas/core/nanops.py` to raise: `TypeError: Could not convert string '655' to numeric` ## Fix Replace `infer_objects()` with `pd.to_numeric(errors="ignore")` which correctly converts string-encoded numerics while leaving truly non-numeric columns unchanged. ## Testing The existing `df_metrics_to_num` tests cover this path. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
