panbingkun opened a new pull request, #43493:
URL: https://github.com/apache/spark/pull/43493

   ### What changes were proposed in this pull request?
   The pr aims to fix flaky ProtobufCatalystDataConversionSuite.
   
   As can be seen from the GA test below
   https://github.com/panbingkun/spark/actions/runs/6612141762/job/17982780917
   <img width="988" alt="image" 
src="https://github.com/apache/spark/assets/15246973/fd1931ba-d858-4c59-9d5c-3a1353e3e005";>
   
   When `data.get(0)` is null, `data.get(0).asInstanceOf[Array[Byte]].isEmpty` 
will be thrown `java.lang.NullPointerException`.
   
   <img width="491" alt="image" 
src="https://github.com/apache/spark/assets/15246973/4cf83e36-1c4a-4b65-b119-1152b026ed29";>
   
   ### Why are the changes needed?
   Fix flaky ProtobufCatalystDataConversionSuite.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### How was this patch tested?
   Pass GA.
   Manually test:
   ```
   ./build/sbt "protobuf/testOnly 
org.apache.spark.sql.protobuf.ProtobufCatalystDataConversionSuite"
   ```
   <img width="763" alt="image" 
src="https://github.com/apache/spark/assets/15246973/95e76b2e-5b09-4268-81bf-df20dd262b66";>
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No.


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to