innovark37 commented on code in PR #40885:
URL: https://github.com/apache/superset/pull/40885#discussion_r3571237167
##########
superset/charts/client_processing.py:
##########
@@ -403,5 +410,11 @@ def apply_client_processing( # noqa: C901
index=show_default_index,
**current_app.config["CSV_EXPORT"],
)
+ elif query["result_format"] == ChartDataResultFormat.XLSX:
+ excel.apply_column_types(processed_df, query["coltypes"])
+ query["data"] = excel.df_to_excel(
+ processed_df,
+ **current_app.config["EXCEL_EXPORT"],
+ )
Review Comment:
Fixed.
The XLSX serialization path now passes the same computed index policy used
by the CSV branch (`show_default_index`). This suppresses the default
`RangeIndex` for XLSX attachments while still preserving a
meaningful/non-default index.
--
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]