zhengruifeng commented on code in PR #50323:
URL: https://github.com/apache/spark/pull/50323#discussion_r2002750892
##########
python/pyspark/pandas/namespace.py:
##########
@@ -1186,9 +1188,29 @@ def read_excel_on_spark(
pdf = pdf_or_pser
psdf = cast(DataFrame, from_pandas(pdf))
- return_schema = force_decimal_precision_scale(
-
as_nullable_spark_type(psdf._internal.spark_frame.drop(*HIDDEN_COLUMNS).schema)
Review Comment:
`as_nullable_spark_type` convert all fields (both index and data) to
nullable=true, while in `InternalFrame` it assert the index field should have
nullable=false
--
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]