This is an automated email from the ASF dual-hosted git repository.

chengpan pushed a commit to branch branch-1.9
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/branch-1.9 by this push:
     new 8d2edc8dc [KYUUBI #6476] Fix incomplete app events deserialization in 
SHS
8d2edc8dc is described below

commit 8d2edc8dc83bf3604dc5064747902f128e4343cd
Author: felixzh <[email protected]>
AuthorDate: Thu Jun 20 10:58:19 2024 +0800

    [KYUUBI #6476] Fix incomplete app events deserialization in SHS
    
    # :mag: Description
    ## Issue References 🔗
    
    This pull request fixes #6476 : spark historyserver -> Show incomplete 
applications -> kyuubi query engine ui error(java.lang.ClassCastException: 
java.lang.Integer cannot be cast to java.lang.Long).
    
    The reason:
    it's related to https://github.com/FasterXML/jackson-module-scala/issues/62
    
    ## Describe Your Solution 🔧
    
    add JsonDeserialize(contentAs = classOf[java.lang.Long]) annotation
    
    ## Types of changes :bookmark:
    
    - [x] Bugfix (non-breaking change which fixes an issue)
    - [ ] New feature (non-breaking change which adds functionality)
    - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
    
    ## Test Plan 🧪
    
    #### Behavior Without This Pull Request :coffin:
    
    #### Behavior With This Pull Request :tada:
    
    #### Related Unit Tests
    
    ---
    
    # Checklist 📝
    
    - [x] This patch was not authored or co-authored using [Generative 
Tooling](https://www.apache.org/legal/generative-tooling.html)
    
    **Be nice. Be informative.**
    
    Closes #6479 from felixzh2020/issues/6476.
    
    Closes #6476
    
    034bfe53c [felixzh] [KYUUBI apache#6476] spark historyserver Show 
incomplete applications kyuubi query engine ui error
    b7b0db278 [felixzh] [KYUUBI apache#6476] spark historyserver Show 
incomplete applications kyuubi query engine ui error
    a66163a5a [felixzh] [KYUUBI apache#6476] spark historyserver Show 
incomplete applications kyuubi query engine ui error
    
    Authored-by: felixzh <[email protected]>
    Signed-off-by: Cheng Pan <[email protected]>
    (cherry picked from commit c6f2ca273c450a0a78f4bc2253c371fc76c6b14a)
    Signed-off-by: Cheng Pan <[email protected]>
---
 .../org/apache/kyuubi/engine/spark/events/SparkOperationEvent.scala    | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/SparkOperationEvent.scala
 
b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/SparkOperationEvent.scala
index caf49fb05..905e355d8 100644
--- 
a/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/SparkOperationEvent.scala
+++ 
b/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/events/SparkOperationEvent.scala
@@ -66,8 +66,11 @@ case class SparkOperationEvent(
     exception: Option[Throwable],
     sessionId: String,
     sessionUser: String,
+    @JsonDeserialize(contentAs = classOf[java.lang.Long])
     executionId: Option[Long],
+    @JsonDeserialize(contentAs = classOf[java.lang.Long])
     operationRunTime: Option[Long],
+    @JsonDeserialize(contentAs = classOf[java.lang.Long])
     operationCpuTime: Option[Long]) extends KyuubiEvent with 
SparkListenerEvent {
 
   override def partitions: Seq[(String, String)] =

Reply via email to