zhangxinyao88 opened a new pull request, #7868:
URL: https://github.com/apache/kyuubi/pull/7868

   ### Why are the changes needed?
   
   Fixes #7848. Listing a session's operations returns HTTP 400 when another 
session has an operation: the response includes a Scala Unit value for every 
nonmatching operation. Filter by session handle before building the response 
and remove the unsafe sequence cast.
   
   Draft pending the human author's line-by-line review.
   
   ### How was this patch tested?
   
   Extended the existing REST test to open a second session. On the unchanged 
production code it returned HTTP 400, with 11 tests passing and this regression 
failing. With the fix, all 12 tests in SessionsResourceSuite passed on macOS 
arm64, JDK 17, Scala 2.12.19 and Spark 3.5.9.
   
   ```sh
   build/mvn -Pscala-2.12 -Pspark-provided -Pflink-provided -Phive-provided \
     -pl kyuubi-server -am test -Dtest=none \
     -DwildcardSuites=org.apache.kyuubi.server.api.v1.SessionsResourceSuite
   ```
   
   `SPARK_HOME` pointed to Spark 3.5.9, with the Kyuubi Spark engine packaged 
locally. Ran `dev/reformat`, Spotless, Scalastyle and the repository license 
check. Other Spark/Scala/platform matrices and the full repository test suite 
have not been run locally.
   
   ### Was this patch assisted by generative AI tooling?
   
   Assisted-by: Codex (GPT-6)
   


-- 
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]

Reply via email to